Files
linux/Documentation
walimis c072c24975 ftrace: improve documentation
Impact: extend documentation with notice of using wild cards correctly

We know that we can use wild cards to set set_ftrace_filter, but there's
problem when using them naively such as:

   echo h* > /debug/tracing/set_ftrace_filter

If there are files named with "h" prefix in current directory,
echo "h*" will echo these filenames to set_ftrace_filter, not the
intended "h*".

For example:

  $ cat /debug/tracing/available_filter_functions |grep ^hr |wc -l
  23
  $ ls
  $ touch hraa hrdd
  $ ls
  hraa  hrdd
  $ echo hr* > /debug/tracing/set_ftrace_filter
  $ cat /debug/tracing/set_ftrace_filter

No output in /debug/tracing/set_ftrace_filter!

If we use '' to escape wild cards, it works:

  $ ls
  hraa  hrdd
  $ echo "hr*" > /debug/tracing/set_ftrace_filter
  $ cat /debug/tracing/set_ftrace_filter |wc -l
  23

This problem can lead to unexpected result if current directory has a
lot of files.

Signed-off-by: walimis <walimisdev@gmail.com>
Acked-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-11-28 13:15:14 +01:00
..
2008-11-12 17:17:18 -08:00
2008-10-30 11:38:45 -07:00
2008-10-30 11:38:45 -07:00
2008-10-30 11:38:45 -07:00
2007-07-19 10:04:47 -07:00
2008-02-14 00:16:13 -05:00
2008-10-16 11:21:30 -07:00
2008-01-11 08:16:14 +11:00
2008-04-25 13:27:03 +01:00
2008-10-30 11:38:47 -07:00
2008-11-12 17:17:17 -08:00
2008-02-03 15:54:28 +02:00
2008-11-12 17:17:17 -08:00
2008-10-30 15:55:47 +01:00
2008-10-30 11:38:45 -07:00
2008-04-27 15:38:30 +02:00
2008-10-30 11:38:47 -07:00
2008-10-29 15:03:50 -07:00
2008-10-23 00:11:07 -04:00
2008-01-11 18:22:30 -06:00
2008-04-26 22:25:22 +02:00
2007-05-09 08:57:56 +02:00
2008-10-30 11:38:45 -07:00
2008-10-16 11:21:29 -07:00
2008-09-10 08:36:07 +02:00
2008-10-30 11:38:47 -07:00
2008-10-30 11:38:45 -07:00
2008-04-29 02:49:47 -04:00
2006-11-30 04:58:40 +01:00
2008-10-30 11:38:45 -07:00
2008-11-12 17:17:18 -08:00
2008-10-30 11:38:45 -07:00
2008-10-28 16:36:42 +01:00
2008-07-25 10:53:30 -07:00
2008-11-12 17:17:18 -08:00
2007-10-19 11:53:34 -07:00
2006-11-30 04:58:40 +01:00
2008-11-28 13:15:14 +01:00
2008-10-16 11:21:40 -07:00
2008-03-24 19:22:19 -07:00
2007-10-18 14:37:32 -07:00
2008-02-06 10:41:09 -08:00
2007-10-07 16:28:43 -07:00
2008-08-12 16:07:30 -07:00
2008-07-21 14:22:18 +10:00
2008-11-12 17:17:17 -08:00
2007-02-11 10:51:35 -08:00
2006-06-27 17:32:47 -07:00
2008-02-06 10:41:14 -08:00
2007-10-17 08:43:06 -07:00