如何使用perf_event_open()检索呼叫链?我不想使用oprofile和perf提供的调用链。我想直接拿到它们。似乎我需要mmap()由perf_event_open()返回的文件描述符。我不知道mmap()的大小以及如何从中读取。
perf_event_open()
mmap()
this book的第8章举例说明如何在[[counting和sampling模式下使用perf_event_open()。