linux/Documentation
Tom Zanussi f404da6e1d tracing: Add 'last error' error facility for hist triggers
With the addition of variables and actions, it's become necessary to
provide more detailed error information to users about syntax errors.

Add a 'last error' facility accessible via the erroring event's 'hist'
file.  Reading the hist file after an error will display more detailed
information about what went wrong, if information is available.  This
extended error information will be available until the next hist
trigger command for that event.

  # echo xxx > /sys/kernel/debug/tracing/events/sched/sched_wakeup/trigger
  echo: write error: Invalid argument

  # cat /sys/kernel/debug/tracing/events/sched/sched_wakeup/hist

  ERROR: Couldn't yyy: zzz
  Last command: xxx

Also add specific error messages for variable and action errors.

Link: http://lkml.kernel.org/r/64e9c422fc8aeafcc2f7a3b4328c0cffe7969129.1516069914.git.tom.zanussi@linux.intel.com

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
2018-03-10 16:06:02 -05:00
..
2018-02-15 14:50:32 -08:00
2018-01-27 20:02:24 +11:00
2017-09-22 21:57:09 +02:00
2018-01-30 13:57:43 -08:00
2017-09-07 21:11:05 -07:00
2018-02-06 16:41:29 -05:00
2017-11-17 17:51:33 -08:00
2018-02-02 10:47:15 +01:00
2017-11-18 11:32:27 +09:00
2018-01-27 20:02:24 +11:00
2017-05-02 17:34:32 -07:00
2018-02-22 15:00:43 -06:00
2018-01-29 11:32:44 -08:00
2017-07-07 13:55:45 -07:00
2017-05-16 08:44:18 -03:00
2017-11-14 18:01:46 -08:00
2018-01-22 08:17:16 -08:00
2017-09-26 14:58:23 -06:00
2017-12-16 22:37:12 -08:00
2017-07-14 13:51:29 -06:00
2017-08-19 11:02:53 -07:00
2017-07-14 13:51:34 -06:00
2017-07-14 13:51:42 -06:00
2017-07-14 13:51:43 -06:00
2017-07-14 13:51:43 -06:00
2017-07-14 13:51:45 -06:00
2017-07-14 13:51:45 -06:00
2017-07-14 13:51:46 -06:00
2017-07-14 13:57:58 -06:00
2017-07-14 13:57:59 -06:00
2017-07-06 08:23:30 +02:00
2017-07-14 13:58:04 -06:00
2017-07-14 13:58:14 -06:00
2017-07-14 13:58:10 -06:00
2017-07-14 13:58:11 -06:00