Skip to contentSkip to conversation

restricting counted/sampled events

DISCUSSION Tony Jones 4 participants 6 messages Nov 12, 2015 – Nov 16, 2015

lore
Share & tools
lore

Tony Jones

author
#0 lore raw

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

#1 lore raw
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
#2 lore raw
In reply to Tony Jones

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

author
#3 lore raw
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:

https://lkml.org/lkml/2013/9/25/227

Yes, I'd not found that in my searching. Thanks for the ptr.

#4 lore raw
In reply to Arnaldo Carvalho de Melo
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

author
#5 lore raw
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:

https://lkml.org/lkml/2013/9/25/227

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