linux-stable/tools
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
..
firewire
hv Tools: hv: Support enumeration from all the pools 2012-03-16 13:36:04 -07:00
include/tools tools/include: Add byteshift headers for endian access 2012-02-28 10:22:51 -08:00
lguest lguest: move the lguest tool to the tools directory 2012-01-12 15:44:47 +10:30
lib/traceevent tools lib traceevent: Introduce extend_token() 2012-07-04 13:40:31 +09:00
nfsd
perf perf bench: Fix confused variable namings and descriptions in mem subsystem 2012-07-02 14:35:45 -03:00
power tools/power turbostat: fix IVB support 2012-06-03 23:47:49 -04:00
scripts perf: Build libtraceevent.a 2012-04-25 13:01:40 +02:00
testing syscalls, x86: add __NR_kcmp syscall 2012-05-31 17:49:32 -07:00
usb USB: testusb: add path /dev/bus/usb to default search paths for usbfs 2012-05-15 08:41:13 -07:00
virtio virtio/tools: add delayed interupt mode 2012-05-02 18:22:14 +03:00
vm tools/vm/page-types.c: cleanups 2012-05-29 16:22:21 -07:00
Makefile tools: Connect to the kernel build system 2012-04-11 15:00:17 -03:00