>> Could someone clarify the behaviour of the -p PID flag of perf-record?
>> In our experiments (3.2.0-27 #43-Ubuntu SMP x86_64),
>> it ignores events on threads spawned after perf-record is started.
>> Is this the intended behaviour, and is there any work-around?

Anybody? We'd love to use a proven, standard workaround
for this issue, preferably without forcing our users to upgrade
the kernel or wait for any future release. Do we even diagnose
the problem correctly? The best workaround we can come up with
right now is to use the "--filter 'pid==NNNN'" option, but it has
a couple of downsides. Any help would be sincerely appreciated.

> Can you try perf from Linus' current tree? perf should be tracking threads
> created after the record starts.

Thanks for the tip, David. But are you sure there's
anything new and relevant in the Linus' current tree?
Could you perhaps point me to the commit that contains
the relevant changes?

The version of perf-record that we use already contains the separate
-p PID and -t TID options, so the initial PID patch is already in.
It's just that the -p PID option ignores all threads spawned
after the process is started, AFAICT.

OTOTH, chenggang qin, you say

> I submitted a patch to fix this problem. and the patch is waitting for
> reviewing.

Could you give me a link to this patch? Does it improve
the -p PID option or replace it or solve our problem
in some other way? Thank you for your kind interest.

Cheers,
Mikolaj
--
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