Files
linux/kernel
Frederic Weisbecker c6567f642e 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]>
2009-11-26 09:29:21 +01:00
..
2009-09-21 14:29:21 +02:00
2009-06-24 00:02:38 -04:00
…
2009-10-29 07:39:25 -07:00
…
…
2009-09-18 09:48:52 -07:00
…
…
2009-06-16 19:47:48 -07:00
2009-08-29 14:10:07 +02:00
2009-09-19 13:13:17 -07:00
…
…
2009-07-24 10:53:29 +02:00
…
2009-06-18 13:03:56 -07:00
2009-10-29 08:56:20 +10:30
2009-10-07 08:11:20 +02:00
2009-09-23 07:39:41 -07:00
…
…
…
…
2009-07-12 14:03:27 -07:00
…
2009-09-23 18:13:10 -07:00
…
2009-11-02 16:02:39 +01:00
2009-06-18 13:03:55 -07:00