Re: tracing child threads with address filtering using intel_pt in perf

From: Alexander Shishkin
Date: Mon Oct 08 2018 - 10:26:49 EST


Alexander Shishkin <alexander.shishkin@xxxxxxxxxxxxxxx> writes:

> "Alharthi, Mansour A" <mansourah@xxxxxxxxxx> writes:
>
>> Hello all,
>
> Hi,
>
>> Assume this test code:
>>
>> thread_start(){
>> ...
>> test();
>> ...
>> }
>>
>> test(){
>> printf("test");
>> }
>>
>> main(){
>> ...
>> pthread_create(......, thread_start,....);
>> }
>
> Can you include the complete test case code?
>
>> 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
>
> Can you run it with -vvv and also include its output?

Scratch that. Instead, can you try the below patch and see if it works
for you?

Thanks,
--
Alex