qemu-e2k/trace
Stefan Hajnoczi fd9858317a trace: handle tracefs path truncation
If the tracefs mountpoint has a very long path we may exceed PATH_MAX.
This is a system misconfiguration and the user must resolve it so that
applications can perform path-based system calls successfully.

This issue does not occur on real-world systems since tracefs is mounted
on /sys/kernel/debug/tracing/, but the compiler is smart enough to
foresee the possibility and warn about the unchecked snprintf(3) return
value.  This patch fixes the compiler warning.

Reported-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Liam Merwick <liam.merwick@oracle.com>
Message-id: 20190321170831.6539-2-stefanha@redhat.com
Message-Id: <20190321170831.6539-2-stefanha@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2019-03-22 15:55:50 +00:00
..
control-internal.h Clean up includes 2018-02-09 05:05:11 +01:00
control-target.c move public invalidate APIs out of translate-all.{c,h}, clean up 2018-06-28 19:05:30 +02:00
control.c tracing: Use double-dash spelling for trace option 2018-07-19 13:09:04 +01:00
control.h tracing: Use double-dash spelling for trace option 2018-07-19 13:09:04 +01:00
event-internal.h
ftrace.c trace: handle tracefs path truncation 2019-03-22 15:55:50 +00:00
ftrace.h
Makefile.objs build: get rid of target-obj-y 2019-03-11 16:33:49 +01:00
mem-internal.h trace: add trace_mem_build_info_no_se_be/le 2018-06-27 11:09:24 +01:00
mem.h trace: simplify trace_mem functions 2018-06-27 11:09:24 +01:00
qmp.c trace: use local path for local headers 2018-06-01 19:20:37 +03:00
simple.c trace: simple style changes 2018-12-12 10:04:59 +00:00
simple.h trace: get rid of generated-events.h/generated-events.c 2016-10-12 09:54:52 +02:00