aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/futex-contention.py
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2012-04-09 11:54:30 +0900
committerNamhyung Kim <[email protected]>2012-07-04 13:40:31 +0900
commitdeba3fb26fd1ed3235b00dccced9784a7f76ec3c (patch)
tree03708b0edc3f380e316cb130d822d377032e9d69 /tools/perf/scripts/python/futex-contention.py
parent0fc45ef5202a34b5862ca246740e6ab50bc3e3e1 (diff)
tools lib traceevent: Introduce extend_token()
The __read_token() function has some duplicated code to handle internal buffer overflow. Factor them out to new extend_token(). According to the man pages of realloc/free(3), they can handle NULL pointer input so that it can be ended up to compact the code. Also handle error path correctly. Signed-off-by: Namhyung Kim <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: David Ahern <[email protected]> Link: http://lkml.kernel.org/r/[email protected] [[email protected]: added some extra whitespace] Signed-off-by: Steven Rostedt <[email protected]> Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions