]> Git Repo - linux.git/commit
perf tools: Do proper comm override error handling
authorFrederic Weisbecker <[email protected]>
Tue, 14 Jan 2014 15:37:14 +0000 (16:37 +0100)
committerArnaldo Carvalho de Melo <[email protected]>
Thu, 16 Jan 2014 19:44:39 +0000 (16:44 -0300)
commit3178f58b989430fd0721df97bf21cf1c0e8cc419
tree26a1d69797a907bedb10bac2a8f84f67e901af0f
parent99ca423387a3e718f9887a99475cb5271bc610f2
perf tools: Do proper comm override error handling

The comm overriding API ignores memory allocation failures by silently
keeping the previous and out of date comm.

As a result, the user may get buggy events without ever being notified
about the problem and its source.

Lets start to fix this by propagating the error from the API. Not all
callers may be doing proper error handling on comm set yet but this is
the first step toward it.

Signed-off-by: Frederic Weisbecker <[email protected]>
Acked-by: Namhyung Kim <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/comm.c
tools/perf/util/comm.h
tools/perf/util/thread.c
This page took 0.051168 seconds and 4 git commands to generate.