diff options
| author | Davidlohr Bueso <[email protected]> | 2013-09-08 19:19:14 -0700 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2013-10-09 11:23:32 -0300 |
| commit | b33492ade49a223a666e582d0c63566609e7014b (patch) | |
| tree | c1708b0d19a8d1acdce8f5560b6a4575a836ef57 /tools/perf/scripts/python | |
| parent | 02ad0702e54f9b82b697718e7e8662eb3f2266ee (diff) | |
perf lock: Return proper code in report_lock_*_event
The report_lock_*_event() functions return -1 when lock_stat_findnew(),
thread_stat_findnew() or get_seq() return NULL. These functions only
return this value when failing to allocate memory, this return -ENOMEM
instead.
Signed-off-by: Davidlohr Bueso <[email protected]>
Cc: Aswin Chandramouleeswaran <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Hitoshi Mitake <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions