linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* tracing child threads with address filtering using intel_pt
@ 2018-10-03  0:23 Mansour Alharthi
       [not found] ` <5267CD8C-A8B1-416E-BCCD-5DD87DCA4FB1@gatech.edu>
  0 siblings, 1 reply; 4+ messages in thread
From: Mansour Alharthi @ 2018-10-03  0:23 UTC (permalink / raw)
  To: peterz, mingo, acme; +Cc: linux-kernel

Hello all,

I am having trouble tracing child threads when using address filtering
with intel_pt ..

Assume this test code:

thread_start(){
...
test();
...
}

test(){
printf("test");
}

main(){
...
pthread_create(......, thread_start,....);
}


Tracing the above program with the following command:
perf record -v -m 512,10000 -e intel_pt//u -T --switch-events --filter
'filter * @ ./test' -- ./test

Returns zero trace for code executed by child thread, i.e.
thread_start() and test() functions..
While tracing without the filter does include the threads trace:
perf record -v -m 512,10000 -e intel_pt//u -T --switch-events -- ./test

Is this intended? or is it a bug?

Thanks!
Mansour.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-10-09  6:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-03  0:23 tracing child threads with address filtering using intel_pt Mansour Alharthi
     [not found] ` <5267CD8C-A8B1-416E-BCCD-5DD87DCA4FB1@gatech.edu>
2018-10-08 11:52   ` tracing child threads with address filtering using intel_pt in perf Alexander Shishkin
2018-10-08 14:25     ` Alexander Shishkin
2018-10-09  6:31       ` Mansour Alharthi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).