Steven Rostedt
e68746a271
ftrace: enable filtering only when a function is filtered on
...
Impact: fix to prevent empty set_ftrace_filter and no ftrace output
The function filter is used to only trace a given set of functions.
The filter is enabled when a function name is echoed into the
set_ftrace_filter file. But if the name has a typo and the function
is not found, the filter is enabled, but no function is listed.
This makes a confusing situation where set_ftrace_filter is empty
but no functions ever get enabled for tracing.
For example:
# cat /debug/tracing/set_ftrace_filter
#### all functions enabled ####
# echo bad_name > set_ftrace_filter
# cat /debug/tracing/set_ftrace_filter
# echo function > current_tracer
# cat trace
# tracer: nop
#
# TASK-PID CPU# TIMESTAMP FUNCTION
# | | | | |
This patch changes that to only enable filtering if a function
is set to be filtered on. Now, the filter is not enabled if
a bad name is echoed into set_ftrace_filter.
Signed-off-by: Steven Rostedt <srostedt@redhat.com >
2009-02-16 17:03:49 -05:00
..
2009-02-04 14:54:56 +01:00
2009-02-07 01:34:56 -05:00
2009-01-30 22:35:29 +01:00
2009-02-16 17:03:49 -05:00
2009-01-14 14:15:19 +01:00
2009-02-08 10:00:26 -08:00
2009-01-04 15:14:42 -05:00
2008-12-09 02:27:41 -05:00
2009-01-04 15:14:41 -05:00
2009-01-04 15:14:42 -05:00
2009-01-04 15:14:42 -05:00
2008-06-27 18:09:16 +02:00
2009-01-14 14:15:19 +01:00
2008-10-20 08:52:38 -07:00
2008-11-12 17:17:16 -08:00
2009-02-11 14:25:36 -08:00
2009-01-06 15:59:13 -08:00
2008-10-20 08:52:34 -07:00
2009-01-07 11:36:14 -08:00
2009-01-19 02:44:00 +01:00
2008-11-14 10:39:23 +11:00
2009-01-09 13:59:25 -08:00
2008-12-18 13:54:01 +01:00
2009-01-21 18:51:53 +09:00
2008-10-16 11:21:30 -07:00
2009-01-14 14:15:19 +01:00
2009-02-05 13:04:33 +01:00
2009-02-09 10:51:38 +01:00
2009-02-11 08:24:32 -08:00
2008-10-30 11:38:45 -07:00
2008-11-14 10:39:19 +11:00
2009-01-14 14:15:31 +01:00
2009-01-30 22:35:34 +01:00
2009-02-05 13:04:33 +01:00
2009-01-14 21:38:20 +01:00
2008-10-20 08:52:34 -07:00
2008-07-28 14:37:38 +02:00
2008-12-25 09:31:28 +01:00
2009-01-14 14:15:20 +01:00
2008-10-06 13:50:59 -05:00
2009-01-06 15:59:27 -08:00
2009-01-16 14:32:17 -05:00
2009-01-06 10:44:31 -08:00
2008-11-16 09:01:36 +01:00
2008-12-10 08:01:54 -08:00
2008-08-13 12:55:10 +02:00
2008-10-20 15:43:10 +02:00
2008-12-30 16:10:19 -08:00
2009-01-14 09:42:11 -08:00
2008-11-16 09:52:03 +01:00
2009-02-09 10:51:38 +01:00
2008-11-24 10:00:28 +01:00
2008-11-26 08:22:50 +01:00
2009-01-08 08:31:02 -08:00
2008-11-24 18:57:41 -05:00
2009-01-06 15:59:12 -08:00
2008-10-23 12:09:00 -07:00
2008-09-02 19:21:38 -07:00
2009-01-08 08:31:12 -08:00
2008-09-02 19:21:40 -07:00
2009-02-11 14:04:21 +01:00
2009-01-14 14:15:20 +01:00
2009-01-14 14:15:29 +01:00
2009-02-10 00:50:37 +01:00
2009-01-14 14:15:29 +01:00
2009-01-14 11:26:40 +01:00
2009-01-05 10:18:08 +01:00
2008-12-18 21:56:04 +01:00
2009-01-05 10:18:08 +01:00
2009-01-07 23:36:25 +01:00
2008-12-18 21:56:04 +01:00
2009-01-14 11:26:40 +01:00
2009-02-03 06:25:38 +01:00
2009-01-08 08:31:05 -08:00
2009-01-15 16:39:38 -08:00
2008-07-21 21:55:02 -07:00
2008-09-05 21:35:13 -07:00
2008-12-31 09:53:21 +01:00
2009-01-06 11:07:15 +01:00
2008-11-24 17:52:22 +01:00
2009-01-11 02:40:32 +01:00
2009-02-11 14:43:35 +01:00
2008-11-05 10:30:14 +01:00
2008-10-22 10:01:52 +02:00
2009-02-01 10:49:52 +01:00
2009-02-05 13:04:33 +01:00
2009-02-13 10:25:18 +01:00
2008-08-05 14:33:47 -07:00
2009-02-05 13:04:33 +01:00
2009-01-30 18:31:08 +01:00
2009-01-23 11:10:57 +01:00
2009-01-14 11:48:07 +01:00
2008-08-13 13:56:51 +02:00
2008-12-25 11:44:43 +01:00
2009-01-05 08:40:14 +10:30
2009-01-14 14:15:16 +01:00
2009-02-05 12:56:47 -08:00
2008-10-30 18:30:09 +11:00
2009-02-11 14:25:35 -08:00
2009-01-01 10:12:28 +10:30
2009-01-06 15:59:20 -08:00
2009-01-14 14:15:18 +01:00
2009-01-14 14:15:29 +01:00
2008-11-16 09:52:03 +01:00
2009-01-06 15:59:09 -08:00
2009-01-14 14:15:26 +01:00
2009-01-12 16:04:37 +01:00
2008-11-24 18:57:41 -05:00
2008-12-28 12:27:58 -08:00
2008-10-16 11:21:47 -07:00
2008-08-23 12:14:12 -07:00
2009-02-05 12:56:48 -08:00
2009-02-03 06:25:38 +01:00