> This is incomplete: "multiple events for all CPUS" ok, but for a specific
> thread? Or for all of them?

If i have 2 CPU's, i made it run 2 threads each per CPU. Both threads
have different streams for same tracepoints polling on them. Well, had
to go with this approach since enabling tracepoints on all CPU when
inherit was not working for me :(


> See this, look for the inherit flag, then look for the CPU arg to
> sys_perf_event_open, many tracepoints, a process that creates a process that
> creates a process that makes a networking call that hits net:*skb* 
> tracepoints,
> is something like that that you want?

This is exactly what i want. But things seem to be working in unexpected way.

> [root@zoo ~]# perf stat -vv -e sched:* -e skb:* time time ping -c 1 127.0.0.1
> <SNIP>
> ------------------------------------------------------------
> perf_event_attr:
>   type                             2
>   size                             112
>   config                           10b
>   { sample_period, sample_freq }   1
>   sample_type                      TIME|CPU|PERIOD|RAW
>   read_format                      TOTAL_TIME_ENABLED|TOTAL_TIME_RUNNING
>   disabled                         1
>   inherit                          1
>   enable_on_exec                   1
>   exclude_guest                    1
> ------------------------------------------------------------
> sys_perf_event_open: pid 9944  cpu -1  group_fd -1  flags 0x8
> ------------------------------------------------------------

I think i should figure out why mmap is failing when inherit=1, seeing
this it doesn't make sense. Will get back to you if i find something.

Thank you Arnaldo.
--
To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to