<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/kernel/trace/ftrace.c, branch v2.6.33</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/kernel/trace/ftrace.c?h=v2.6.33</id>
<link rel='self' href='https://git.amat.us/linux/atom/kernel/trace/ftrace.c?h=v2.6.33'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2010-01-15T03:38:03Z</updated>
<entry>
<title>ftrace: Fix MATCH_END_ONLY function filter</title>
<updated>2010-01-15T03:38:03Z</updated>
<author>
<name>Li Zefan</name>
<email>lizf@cn.fujitsu.com</email>
</author>
<published>2010-01-14T02:53:02Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=751e9983ee276cb150e8812b1d995f6035a63878'/>
<id>urn:sha1:751e9983ee276cb150e8812b1d995f6035a63878</id>
<content type='text'>
For '*foo' pattern, we should allow any string ending with
'foo', but ftrace filter incorrectly disallows strings
like bar_foo_foo:

  # echo '*io' &gt; set_ftrace_filter
  # cat set_ftrace_filter | grep 'req_bio_endio'
  # cat available_filter_functions | grep 'req_bio_endio'
  req_bio_endio

Signed-off-by: Li Zefan &lt;lizf@cn.fujitsu.com&gt;
LKML-Reference: &lt;4B4E870E.6060607@cn.fujitsu.com&gt;
Acked-by: Frederic Weisbecker &lt;fweisbec@gmail.com&gt;
Signed-off-by: Steven Rostedt &lt;rostedt@goodmis.org&gt;
</content>
</entry>
<entry>
<title>function-graph: Allow writing the same val to set_graph_function</title>
<updated>2009-12-13T17:37:26Z</updated>
<author>
<name>Li Zefan</name>
<email>lizf@cn.fujitsu.com</email>
</author>
<published>2009-12-08T03:15:45Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=91baf6285be7282cfa487de92f836c50749dffb9'/>
<id>urn:sha1:91baf6285be7282cfa487de92f836c50749dffb9</id>
<content type='text'>
# echo 'do_open' &gt; set_graph_function
 # echo 'do_open' &gt;&gt; set_graph_function
 bash: echo: write error: Invalid argument

Make it valid to write the same value to set_graph_function,
which is consistent with set_ftrace_filter interface.

Signed-off-by: Li Zefan &lt;lizf@cn.fujitsu.com&gt;
Acked-by: Steven Rostedt &lt;rostedt@goodmis.org&gt;
LKML-reference: &lt;4B1DC4E1.1060303@cn.fujitsu.com&gt;
Signed-off-by: Frederic Weisbecker &lt;fweisbec@gmail.com&gt;
</content>
</entry>
<entry>
<title>ftrace: Call trace_parser_clear() properly</title>
<updated>2009-12-13T17:37:26Z</updated>
<author>
<name>Li Zefan</name>
<email>lizf@cn.fujitsu.com</email>
</author>
<published>2009-12-08T03:15:30Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=313254a9400d388b46150c0f355e216418a2f598'/>
<id>urn:sha1:313254a9400d388b46150c0f355e216418a2f598</id>
<content type='text'>
I found a weird behavior:

  # echo 'fuse:*' &gt; set_ftrace_filter
  bash: echo: write error: Invalid argument
  # cat set_ftrace_filter
  fuse_dev_fasync
  fuse_dev_poll
  fuse_copy_do

We should call trace_parser_clear() no matter ftrace_process_regex()
returns 0 or -errno, otherwise we will actually take the unaccepted
records from ftrace_regex_release().

Signed-off-by: Li Zefan &lt;lizf@cn.fujitsu.com&gt;
Acked-by: Steven Rostedt &lt;rostedt@goodmis.org&gt;
LKML-Reference: &lt;4B1DC4D2.3000406@cn.fujitsu.com&gt;
Signed-off-by: Frederic Weisbecker &lt;fweisbec@gmail.com&gt;
</content>
</entry>
<entry>
<title>ftrace: Return EINVAL when writing invalid val to set_ftrace_filter</title>
<updated>2009-12-13T17:37:25Z</updated>
<author>
<name>Li Zefan</name>
<email>lizf@cn.fujitsu.com</email>
</author>
<published>2009-12-08T03:15:11Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=311d16da575f53c3367099579736c1d233efe0dc'/>
<id>urn:sha1:311d16da575f53c3367099579736c1d233efe0dc</id>
<content type='text'>
Currently it doesn't warn user on invald value:

 # echo nonexist_symbol &gt; set_ftrace_filter
or:
 # echo 'nonexist_symbol:mod:fuse' &gt; set_ftrace_filter

Better make it return failure.

Signed-off-by: Li Zefan &lt;lizf@cn.fujitsu.com&gt;
Acked-by: Steven Rostedt &lt;rostedt@goodmis.org&gt;
LKML-Reference: &lt;4B1DC4BF.2070003@cn.fujitsu.com&gt;
Signed-off-by: Frederic Weisbecker &lt;fweisbec@gmail.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'tracing-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip</title>
<updated>2009-12-05T17:53:36Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2009-12-05T17:53:36Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=96fa2b508d2d3fe040cf4ef2fffb955f0a537ea1'/>
<id>urn:sha1:96fa2b508d2d3fe040cf4ef2fffb955f0a537ea1</id>
<content type='text'>
* 'tracing-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (40 commits)
  tracing: Separate raw syscall from syscall tracer
  ring-buffer-benchmark: Add parameters to set produce/consumer priorities
  tracing, function tracer: Clean up strstrip() usage
  ring-buffer benchmark: Run producer/consumer threads at nice +19
  tracing: Remove the stale include/trace/power.h
  tracing: Only print objcopy version warning once from recordmcount
  tracing: Prevent build warning: 'ftrace_graph_buf' defined but not used
  ring-buffer: Move access to commit_page up into function used
  tracing: do not disable interrupts for trace_clock_local
  ring-buffer: Add multiple iterations between benchmark timestamps
  kprobes: Sanitize struct kretprobe_instance allocations
  tracing: Fix to use __always_unused attribute
  compiler: Introduce __always_unused
  tracing: Exit with error if a weak function is used in recordmcount.pl
  tracing: Move conditional into update_funcs() in recordmcount.pl
  tracing: Add regex for weak functions in recordmcount.pl
  tracing: Move mcount section search to front of loop in recordmcount.pl
  tracing: Fix objcopy revision check in recordmcount.pl
  tracing: Check absolute path of input file in recordmcount.pl
  tracing: Correct the check for number of arguments in recordmcount.pl
  ...
</content>
</entry>
<entry>
<title>tracing, function tracer: Clean up strstrip() usage</title>
<updated>2009-11-23T10:04:07Z</updated>
<author>
<name>Ingo Molnar</name>
<email>mingo@elte.hu</email>
</author>
<published>2009-11-23T10:03:28Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=457dc928f586f3f4b930206965e6db270034e97e'/>
<id>urn:sha1:457dc928f586f3f4b930206965e6db270034e97e</id>
<content type='text'>
Clean up strstrip() usage - which also addresses this build warning:

  kernel/trace/ftrace.c: In function 'ftrace_pid_write':
  kernel/trace/ftrace.c:3004: warning: ignoring return value of 'strstrip', declared with attribute warn_unused_result

Cc: Steven Rostedt &lt;rostedt@goodmis.org&gt;
Cc: Frederic Weisbecker &lt;fweisbec@gmail.com&gt;
Cc: Peter Zijlstra &lt;a.p.zijlstra@chello.nl&gt;
Cc: Mike Galbraith &lt;efault@gmx.de&gt;
Cc: Paul Mackerras &lt;paulus@samba.org&gt;
Cc: Arnaldo Carvalho de Melo &lt;acme@redhat.com&gt;
LKML-Reference: &lt;new-submission&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>tracing: Prevent build warning: 'ftrace_graph_buf' defined but not used</title>
<updated>2009-11-17T16:05:49Z</updated>
<author>
<name>Lai Jiangshan</name>
<email>laijs@cn.fujitsu.com</email>
</author>
<published>2009-11-05T03:16:17Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=f6060f46819f313d34a8c8151390cda509c23389'/>
<id>urn:sha1:f6060f46819f313d34a8c8151390cda509c23389</id>
<content type='text'>
Prevent build warning when CONFIG_FUNCTION_GRAPH_TRACER is not set.

Signed-off-by: Lai Jiangshan &lt;laijs@cn.fujitsu.com&gt;
LKML-Reference: &lt;4AF24381.5060307@cn.fujitsu.com&gt;
Signed-off-by: Steven Rostedt &lt;rostedt@goodmis.org&gt;
</content>
</entry>
<entry>
<title>ftrace: Fix unmatched locking in ftrace_regex_write()</title>
<updated>2009-11-04T06:42:10Z</updated>
<author>
<name>Li Zefan</name>
<email>lizf@cn.fujitsu.com</email>
</author>
<published>2009-11-03T00:55:38Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=ed146b25942b428f8e8056587b7638ce76573c2f'/>
<id>urn:sha1:ed146b25942b428f8e8056587b7638ce76573c2f</id>
<content type='text'>
When a command is passed to the set_ftrace_filter, then
the ftrace_regex_lock is still held going back to user space.

 # echo 'do_open : foo' &gt; set_ftrace_filter
 (still holding ftrace_regex_lock when returning to user space!)

Signed-off-by: Li Zefan &lt;lizf@cn.fujitsu.com&gt;
LKML-Reference: &lt;4AEF7F8A.3080300@cn.fujitsu.com&gt;
Signed-off-by: Steven Rostedt &lt;rostedt@goodmis.org&gt;
</content>
</entry>
<entry>
<title>Merge branch 'tracing/urgent' into tracing/core</title>
<updated>2009-10-29T08:02:20Z</updated>
<author>
<name>Ingo Molnar</name>
<email>mingo@elte.hu</email>
</author>
<published>2009-10-29T08:02:15Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=9de09ace8d518141a4375e1d216ab64db4377799'/>
<id>urn:sha1:9de09ace8d518141a4375e1d216ab64db4377799</id>
<content type='text'>
Merge reason: Pick up fixes and move base from -rc1 to -rc5.

Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>tracing: Update *ppos instead of filp-&gt;f_pos</title>
<updated>2009-10-24T09:07:49Z</updated>
<author>
<name>Jiri Olsa</name>
<email>jolsa@redhat.com</email>
</author>
<published>2009-10-23T23:36:16Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=cf8517cf905b5cd31d5790250b9ac39f7cb8aa53'/>
<id>urn:sha1:cf8517cf905b5cd31d5790250b9ac39f7cb8aa53</id>
<content type='text'>
Instead of directly updating filp-&gt;f_pos we should update the *ppos
argument. The filp-&gt;f_pos gets updated within the file_pos_write()
function called from sys_write().

Signed-off-by: Jiri Olsa &lt;jolsa@redhat.com&gt;
Signed-off-by: Steven Rostedt &lt;rostedt@goodmis.org&gt;
Cc: Frederic Weisbecker &lt;fweisbec@gmail.com&gt;
LKML-Reference: &lt;20091023233646.399670810@goodmis.org&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
</feed>
