使用perf_event_open()检索呼叫链

问题描述 投票:2回答:1

如何使用perf_event_open()检索呼叫链?我不想使用oprofile和perf提供的调用链。我想直接拿到它们。似乎我需要mmap()perf_event_open()返回的文件描述符。我不知道mmap()的大小以及如何从中读取。

c debugging linux-kernel trace
1个回答
0
投票

this book的第8章举例说明如何在[[counting和sampling模式下使用perf_event_open()

© www.soinside.com 2019 - 2024. All rights reserved.