restricting counted/sampled events
I don't believe there is current support to do this, but maybe I'm overlooking something?
I'd like to be able to restrict the pmu (or filter results) to report counting/sampling between two arbitrary code points, such as a tracepoint or kprobe.
I believe it will require core perf changes and was curious on peoples thoughts?
Tony
Quoted 1 line · Tony Jones
I don't believe there is current support to do this, but maybe I'm overlooking something?
It may be possible in systemtap, but not in the builtin tracers yes.
Quoted 4 lines
I'd like to be able to restrict the pmu (or filter results) to report counting/sampling between two arbitrary code points, such as a tracepoint or kprobe.
I believe it will require core perf changes and was curious on peoples thoughts?
I'm not sure about messing with sampling (you can always filter that later).
But able to collect PMU counter values are kprobes/tracepoints would be fairly useful yes. It shouldn't be that difficult to do.
-Andi
Signature · 1 line
[email protected] -- Speaking for myself only
Em Thu, Nov 12, 2015 at 10:18:02AM -0800, Tony Jones escreveu:
Quoted 9 lines
I don't believe there is current support to do this, but maybe I'm overlooking something?
I'd like to be able to restrict the pmu (or filter results) to report counting/sampling between two arbitrary code points, such as a tracepoint or kprobe.
I believe it will require core perf changes and was curious on peoples thoughts?
Something like this:
https://lkml.org/lkml/2013/9/25/227
Jiri?
- Arnaldo
Quoted 9 lines · Arnaldo Carvalho de Melo
Em Thu, Nov 12, 2015 at 10:18:02AM -0800, Tony Jones escreveu:
Quoted 6 lines
I don't believe there is current support to do this, but maybe I'm overlooking something?
I'd like to be able to restrict the pmu (or filter results) to report counting/sampling between two arbitrary code points, such as a tracepoint or kprobe.
Quoted 6 lines
Quoted 2 lines
I believe it will require core perf changes and was curious on peoples thoughts?
Something like this:
Yes, I'd not found that in my searching. Thanks for the ptr.
Quoted 9 lines · Arnaldo Carvalho de Melo
Em Thu, Nov 12, 2015 at 10:18:02AM -0800, Tony Jones escreveu:
Quoted 6 lines
I don't believe there is current support to do this, but maybe I'm overlooking something?
I'd like to be able to restrict the pmu (or filter results) to report counting/sampling between two arbitrary code points, such as a tracepoint or kprobe.
Quoted 8 lines
Quoted 2 lines
I believe it will require core perf changes and was curious on peoples thoughts?
Something like this:
https://lkml.org/lkml/2013/9/25/227
Jiri?
yep.. sounds like toggling ;-) this code was put aside ATM
not sure it'll be ressurected soon, but I remember Stephane asked me about that some time ago (CC-ed), maybe he has more info
jirka
Quoted 17 lines · Jiri Olsa
Quoted 16 lines · Arnaldo Carvalho de Melo
Em Thu, Nov 12, 2015 at 10:18:02AM -0800, Tony Jones escreveu:
Quoted 9 lines
I don't believe there is current support to do this, but maybe I'm overlooking something?
I'd like to be able to restrict the pmu (or filter results) to report counting/sampling between two arbitrary code points, such as a tracepoint or kprobe.
I believe it will require core perf changes and was curious on peoples thoughts?
Something like this:
Quoted 8 lines
Quoted 1 line
Jiri?
yep.. sounds like toggling ;-) this code was put aside ATM
not sure it'll be ressurected soon, but I remember Stephane asked me about that some time ago (CC-ed), maybe he has more info
jirka
If noone is currently working on it, I'd be interested in taking it over.
Tony