diff options
| author | Mathieu Desnoyers <[email protected]> | 2018-03-15 12:44:24 +0000 |
|---|---|---|
| committer | Steven Rostedt (VMware) <[email protected]> | 2018-04-30 16:09:56 +0000 |
| commit | d66a270be3310d7aa132fec0cea77d3d32a0ff75 (patch) | |
| tree | f429edf70b65f7e4b42971b6a67ef919fbfc1a5c /lib/pm-notifier-error-inject.c | |
| parent | tracing: Add field modifier parsing hist error for hist triggers (diff) | |
| download | kernel-d66a270be3310d7aa132fec0cea77d3d32a0ff75.tar.gz kernel-d66a270be3310d7aa132fec0cea77d3d32a0ff75.zip | |
tracepoint: Do not warn on ENOMEM
Tracepoint should only warn when a kernel API user does not respect the
required preconditions (e.g. same tracepoint enabled twice, or called
to remove a tracepoint that does not exist).
Silence warning in out-of-memory conditions, given that the error is
returned to the caller.
This ensures that out-of-memory error-injection testing does not trigger
warnings in tracepoint.c, which were seen by syzbot.
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Link: http://lkml.kernel.org/r/[email protected]
CC: Peter Zijlstra <[email protected]>
CC: Jiri Olsa <[email protected]>
CC: Arnaldo Carvalho de Melo <[email protected]>
CC: Alexander Shishkin <[email protected]>
CC: Namhyung Kim <[email protected]>
CC: [email protected]
Fixes: de7b2973903c6 ("tracepoint: Use struct pointer instead of name hash for reg/unreg tracepoints")
Reported-by: [email protected]
Reported-by: [email protected]
Signed-off-by: Mathieu Desnoyers <[email protected]>
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'lib/pm-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions
