lkml.org 
[lkml]   [2016]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2 1/3] perf: add PERF_RECORD_NAMESPACES to include namespaces related info
From
Date
Hi Peter,


On Friday 09 December 2016 07:39 PM, Peter Zijlstra wrote:
> On Fri, Dec 09, 2016 at 12:10:20AM +0530, Hari Bathini wrote:
>> Hi Peter,
>>
>>
>> Sorry for taking so long to respond...
>>
>>
>> On Thursday 24 November 2016 08:40 PM, Peter Zijlstra wrote:
>>> On Thu, Nov 24, 2016 at 08:14:29PM +0530, Hari Bathini wrote:
>>>> @@ -862,6 +875,19 @@ enum perf_event_type {
>>>> */
>>>> PERF_RECORD_SWITCH_CPU_WIDE = 15,
>>>> + /*
>>>> + * struct {
>>>> + * struct perf_event_header header;
>>>> + *
>>>> + * u32 pid, tid;
>>>> + * u64 time;
>>> pid,tid and time are already present in sample_id. Many of the 'legacy'
>>> record have redundant information since we added sample_id, but most of
>>> the new ones haven't and rely on sample_all being set.
>> I tried using pid/tid from sample data, but realized that pid/tid in
>> event_id
>> could be different from the one in sample data, at least for fork/namespaces
>> events, since __perf_event_header__init_id( ) that updates the sample data
>> is getting the pid/tid of current task.
> Ah indeed. Yes please disregard my comment then.

Posted v3 addressing the TODOs & fixing the error reported by kbuild
test robot.

Thanks
Hari

\
 
 \ /
  Last update: 2016-12-12 19:26    [W:0.055 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site