linux_dsm_epyc7002/tools/lib/traceevent
Namhyung Kim deba3fb26f 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 <namhyung.kim@lge.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Arnaldo Carvalho de Melo <acme@infradead.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: David Ahern <dsahern@gmail.com>
Link: http://lkml.kernel.org/r/1333940074-19052-4-git-send-email-namhyung.kim@lge.com
[rostedt@goodmis.org: added some extra whitespace]
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
2012-07-04 13:40:31 +09:00
..
event-parse.c tools lib traceevent: Introduce extend_token() 2012-07-04 13:40:31 +09:00
event-parse.h tools lib traceevent: Add support for __print_hex() 2012-06-29 13:28:12 -03:00
event-utils.h events: Update tools/lib/traceevent to work with perf 2012-04-25 13:12:26 +02:00
Makefile tools lib traceevent: Make dependency files regeneratable 2012-06-29 13:28:12 -03:00
parse-filter.c tools lib traceevent: Let filtering numbers by string use function names 2012-07-04 13:40:30 +09:00
parse-utils.c tools/events: Add files to create libtraceevent.a 2012-04-25 12:28:28 +02:00
trace-seq.c events: Update tools/lib/traceevent to work with perf 2012-04-25 13:12:26 +02:00