diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2016-11-22 18:32:03 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2016-11-22 18:32:03 -0500 |
commit | 7d436400223bb46e9f88e6bba6f8d867acf0d82c (patch) | |
tree | 7b4a3f9b4fc7f9e328616a01b9593f9db0197e6b /drivers/cpuidle/driver.c | |
parent | 9dfed80d87ca2c365cd1004a91ef4ed716c8e44e (diff) | |
download | linux-7d436400223bb46e9f88e6bba6f8d867acf0d82c.tar.bz2 |
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 'drivers/cpuidle/driver.c')
0 files changed, 0 insertions, 0 deletions