linux/tools/lib/traceevent
Namhyung Kim e1aa7c30c5 tools lib traceevent: Fix strerror_r() use in pevent_strerror
glibc-2.16 starts to mark the function with attribute warn_unused_result
so that it can cause a build warning.

Since GNU version of strerror_r() can return a pointer to a string
without setting @buf, check the return value and copy/truncate it to our
buffer if needed.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Kirill A. Shutemov <kirill@shutemov.name>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Kirill A. Shutemov <kirill@shutemov.name>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/1345618831-9148-5-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2012-08-22 16:04:05 -03:00
..
.gitignore tools lib traceevent: Ignore TRACEEVENT-CFLAGS file 2012-07-25 11:54:44 -03:00
event-parse.c tools lib traceevent: Fix strerror_r() use in pevent_strerror 2012-08-22 16:04:05 -03:00
event-parse.h tools lib traceevent: Introduce pevent_strerror 2012-08-22 16:03:39 -03:00
event-utils.h tools lib traceevent: Fix strerror_r() use in pevent_strerror 2012-08-22 16:04:05 -03:00
Makefile tools lib traceevent: Detect build environment changes 2012-07-25 11:54:06 -03:00
parse-filter.c tools lib traceevent: Cleanup realloc use 2012-07-04 13:40:31 +09:00
parse-utils.c
trace-seq.c events: Update tools/lib/traceevent to work with perf 2012-04-25 13:12:26 +02:00