linux.perf config question - followers #2984
-
|
Hi, I can collect callstack samples using the following cfg at 97Hz. My further goal (not sure if supported) is to collect callstack sample when we have page faults - so I added the "followers" sections - but surprisingly, all the prev callback are gone in the trace when uncommented, and I do not see any additional effects of the two "followers" sections. BTW, the "page fault user" events are visible in the ftrace tracks in the collected pftrace. My question is if my goal is doable or if the cfg has problems, thx. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
The correct way to "collect stack samples based on multiple different tracepoints" should be done by creating multiple data sources, each one targeting the event you want to collect. Here's an example from a config we use internally [1] The use of followers for this is a misunderstanding of the API: followers are a very advanced feature and are rarely useful: they require deep knowledge of both perf and the hardware you're running on to figure out whether what you're doing makes sense. [1] |
Beta Was this translation helpful? Give feedback.
The correct way to "collect stack samples based on multiple different tracepoints" should be done by creating multiple data sources, each one targeting the event you want to collect. Here's an example from a config we use internally [1]
The use of followers for this is a misunderstanding of the API: followers are a very advanced feature and are rarely useful: they require deep knowledge of both perf and the hardware you're running on to figure out whether what you're doing makes sense.
[1]