diff options
| author | Frederic Weisbecker <[email protected]> | 2009-11-26 05:35:41 +0100 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2009-11-26 09:29:21 +0100 |
| commit | c6567f642e20bcc79abed030f44be5b0d6da2ded (patch) | |
| tree | eff0dee5075d220b46019019f8e0d8e8a7bd30f3 /scripts/objdiff | |
| parent | d99be40aff88722ab03ee295e4f6c13a4cca9a3d (diff) | |
hw-breakpoints: Improve in-kernel event creation error granularity
In fail case, perf_event_create_kernel_counter() returns NULL
instead of an error, which doesn't help us to inform the user
about the origin of the problem from the outer most callers.
Often we can just return -EINVAL, which doesn't help anyone when
it's eventually about a memory allocation failure.
Then, this patch makes perf_event_create_kernel_counter() always
return a detailed error code.
Signed-off-by: Frederic Weisbecker <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Prasad <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions