diff options
author | 2016-11-22 18:32:03 -0500 | |
---|---|---|
committer | 2016-11-22 18:32:03 -0500 | |
commit | 7d436400223bb46e9f88e6bba6f8d867acf0d82c (patch) | |
tree | 7b4a3f9b4fc7f9e328616a01b9593f9db0197e6b /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | stm: Mark the functions of writing STM with notrace (diff) | |
download | linux-dev-7d436400223bb46e9f88e6bba6f8d867acf0d82c.tar.xz linux-dev-7d436400223bb46e9f88e6bba6f8d867acf0d82c.zip |
tracing: Add error checks to creation of event files
The creation of the set_event_pid file was assigned to a variable "entry"
but that variable was never used. Ideally, it should be used to check if the
file was created and warn if it was not.
The files header_page, header_event should also be checked and a warning if
they fail to be created.
The "enable" file was moved up, as it is a more crucial file to have and a
hard failure (return -ENOMEM) should be returned if it is not created.
Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions