lkml.org 
[lkml]   [2012]   [Apr]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] Prevent crash on missing sysfs attribute group
Peter Zijlstra <peterz@infradead.org> writes:

> On Tue, 2012-04-03 at 00:50 -0700, Eric W. Biederman wrote:
>>
>> So I am asking that since perf is built in a way that actively makes
>> debugging these kinds of problems hard that you please add additional
>> debugging code to perf_pmu_register or some other better location so
>> that simply registering something buggy with perf will show the bug.
>>
>>
> Is there a convenient helper function that we can use that validates the
> attribute_group structure? We could use such a function to do the
> validation at a point where we still know where it came from.

There isn't but I was just thinking before you sent this that we could
really use one.

Eric


\
 
 \ /
  Last update: 2012-04-04 01:21    [W:0.152 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site