<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/tools/testing/selftests/ftrace, branch linux-5.5.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.5.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.5.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-03-05T15:45:20Z</updated>
<entry>
<title>selftests: Install settings files to fix TIMEOUT failures</title>
<updated>2020-03-05T15:45:20Z</updated>
<author>
<name>Michael Ellerman</name>
</author>
<published>2020-02-20T04:42:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0ace3dbb6d285dbd52c73049946f02e809291bde'/>
<id>urn:sha1:0ace3dbb6d285dbd52c73049946f02e809291bde</id>
<content type='text'>
commit b9167c8078c3527de6da241c8a1a75a9224ed90a upstream.

Commit 852c8cbf34d3 ("selftests/kselftest/runner.sh: Add 45 second
timeout per test") added a 45 second timeout for tests, and also added
a way for tests to customise the timeout via a settings file.

For example the ftrace tests take multiple minutes to run, so they
were given longer in commit b43e78f65b1d ("tracing/selftests: Turn off
timeout setting").

This works when the tests are run from the source tree. However if the
tests are installed with "make -C tools/testing/selftests install",
the settings files are not copied into the install directory. When the
tests are then run from the install directory the longer timeouts are
not applied and the tests timeout incorrectly.

So add the settings files to TEST_FILES of the appropriate Makefiles
to cause the settings files to be installed using the existing install
logic.

Fixes: 852c8cbf34d3 ("selftests/kselftest/runner.sh: Add 45 second timeout per test")
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>selftests/ftrace: Fix multiple kprobe testcase</title>
<updated>2019-12-09T17:53:04Z</updated>
<author>
<name>Masami Hiramatsu</name>
</author>
<published>2019-11-26T08:34:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5cc6c8d4a99d0ee4d5466498e258e593df1d3eb6'/>
<id>urn:sha1:5cc6c8d4a99d0ee4d5466498e258e593df1d3eb6</id>
<content type='text'>
Fix multiple kprobe event testcase to work it correctly.
There are 2 bugfixes.
 - Since `wc -l FILE` returns not only line number but also
   FILE filename, following "if" statement always failed.
   Fix this bug by replacing it with 'cat FILE | wc -l'
 - Since "while do-done loop" block with pipeline becomes a
   subshell, $N local variable is not update outside of
   the loop.
   Fix this bug by using actual target number (256) instead
   of $N.

Signed-off-by: Masami Hiramatsu &lt;mhiramat@kernel.org&gt;
Reviewed-by: Steven Rostedt (VMware) &lt;rostedt@goodmis.org&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>selftests/ftrace: Do not to use absolute debugfs path</title>
<updated>2019-12-09T17:53:04Z</updated>
<author>
<name>Masami Hiramatsu</name>
</author>
<published>2019-11-26T08:34:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ba1b9c5048e43716921abe3a1db19cebebf4a5f5'/>
<id>urn:sha1:ba1b9c5048e43716921abe3a1db19cebebf4a5f5</id>
<content type='text'>
Use relative path to trigger file instead of absolute debugfs path,
because if the user uses tracefs instead of debugfs, it can be
mounted at /sys/kernel/tracing.
Anyway, since the ftracetest is designed to be run at the tracing
directory, user doesn't need to use absolute path.

Signed-off-by: Masami Hiramatsu &lt;mhiramat@kernel.org&gt;
Reviewed-by: Steven Rostedt (VMware) &lt;rostedt@goodmis.org&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>selftests/ftrace: Fix ftrace test cases to check unsupported</title>
<updated>2019-12-09T17:53:04Z</updated>
<author>
<name>Masami Hiramatsu</name>
</author>
<published>2019-11-26T23:42:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=25deae098e748d8d36bc35129a66734b8f6925c9'/>
<id>urn:sha1:25deae098e748d8d36bc35129a66734b8f6925c9</id>
<content type='text'>
Since dynamic function tracer can be disabled, set_ftrace_filter
can be disappeared. Test cases which depends on it, must check
whether the set_ftrace_filter exists or not before testing
and if not, return as unsupported.

Also, if the function tracer itself is disabled, we can not
set "function" to current_tracer. Test cases must check it
before testing, and return as unsupported.

Signed-off-by: Masami Hiramatsu &lt;mhiramat@kernel.org&gt;
Reviewed-by: Steven Rostedt (VMware) &lt;rostedt@goodmis.org&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>selftests/ftrace: Fix to check the existence of set_ftrace_filter</title>
<updated>2019-12-09T17:53:04Z</updated>
<author>
<name>Masami Hiramatsu</name>
</author>
<published>2019-11-26T08:34:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fd1baf6ca2ea3550ea47f2bb0bdcf34ec764a779'/>
<id>urn:sha1:fd1baf6ca2ea3550ea47f2bb0bdcf34ec764a779</id>
<content type='text'>
If we run ftracetest on the kernel with CONFIG_DYNAMIC_FTRACE=n,
there is no set_ftrace_filter and all test cases are failed, because
reset_ftrace_filter() returns an error.
Let's check whether set_ftrace_filter exists in reset_ftrace_filter()
and clean up only set_ftrace_notrace in initialize_ftrace().

Signed-off-by: Masami Hiramatsu &lt;mhiramat@kernel.org&gt;
Reviewed-by: Steven Rostedt (VMware) &lt;rostedt@goodmis.org&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>ftrace/selftests: Fix spelling mistake "wakeing" -&gt; "waking"</title>
<updated>2019-11-15T16:30:38Z</updated>
<author>
<name>Colin Ian King</name>
</author>
<published>2019-11-15T08:59:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=760f8bc7c89c87bff9c01a8746e85dcc6e771ea8'/>
<id>urn:sha1:760f8bc7c89c87bff9c01a8746e85dcc6e771ea8</id>
<content type='text'>
There is a spelling mistake in a trace_printk message. As well as in
the selftests that search for this string.

Link: http://lkml.kernel.org/r/20191115085938.38947-1-colin.king@canonical.com
Link: http://lkml.kernel.org/r/20191115090356.39572-1-colin.king@canonical.com

Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Signed-off-by: Steven Rostedt (VMware) &lt;rostedt@goodmis.org&gt;
</content>
</entry>
<entry>
<title>tracing/selftests: Turn off timeout setting</title>
<updated>2019-11-14T18:15:11Z</updated>
<author>
<name>Steven Rostedt (VMware)</name>
</author>
<published>2019-11-13T16:48:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b43e78f65b1d35fd3e13c7b23f9b64ea83c9ad3a'/>
<id>urn:sha1:b43e78f65b1d35fd3e13c7b23f9b64ea83c9ad3a</id>
<content type='text'>
As the ftrace selftests can run for a long period of time, disable the
timeout that the general selftests have. If a selftest hangs, then it
probably means the machine will hang too.

Link: https://lore.kernel.org/r/alpine.LSU.2.21.1911131604170.18679@pobox.suse.cz

Suggested-by: Miroslav Benes &lt;mbenes@suse.cz&gt;
Tested-by: Miroslav Benes &lt;mbenes@suse.cz&gt;
Reviewed-by: Miroslav Benes &lt;mbenes@suse.cz&gt;
Signed-off-by: Steven Rostedt (VMware) &lt;rostedt@goodmis.org&gt;
</content>
</entry>
<entry>
<title>ftrace/selftests: Update the direct call selftests to test two direct calls</title>
<updated>2019-11-13T14:36:49Z</updated>
<author>
<name>Steven Rostedt (VMware)</name>
</author>
<published>2019-11-08T21:08:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ed9dafebce52206382de96bd5bbdff22335930f6'/>
<id>urn:sha1:ed9dafebce52206382de96bd5bbdff22335930f6</id>
<content type='text'>
The register_ftrace_direct() takes a different path if there's already a
direct call registered, but this was not tested in the self tests. Now that
there's a second direct caller test module, we can use this to test not only
one direct caller, but two.

Signed-off-by: Steven Rostedt (VMware) &lt;rostedt@goodmis.org&gt;
</content>
</entry>
<entry>
<title>ftrace/selftest: Add tests to test register_ftrace_direct()</title>
<updated>2019-11-13T14:36:49Z</updated>
<author>
<name>Steven Rostedt (VMware)</name>
</author>
<published>2019-11-08T17:19:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=646f01ccdd59f989f0a1866d2b3503e1855358d8'/>
<id>urn:sha1:646f01ccdd59f989f0a1866d2b3503e1855358d8</id>
<content type='text'>
Add two test cases that test the new ftrace direct functionality if the
ftrace-direct sample module is available. One test case tests against each
available tracer (function, function_graph, mmiotrace, etc), and the other
test tests against a kprobe at the same location as the direct caller. Both
tests follow the same pattern of testing combinations:

  enable test (either the tracer or the kprobe)
  load direct function module
  unload direct function module
  disable test

  enable test
  load direct function module
  disable test
  unload direct function module

  load direct function module
  enable test
  disable test
  unload direct function module

  load direct function module
  enable test
  unload direct function module
  disable test

As most the bugs in development happened with various ways of enabling or
disabling the direct calls with function tracer in one of these
combinations.

Signed-off-by: Steven Rostedt (VMware) &lt;rostedt@goodmis.org&gt;
</content>
</entry>
<entry>
<title>Merge tag 'trace-v5.4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace</title>
<updated>2019-09-30T16:29:53Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2019-09-30T16:29:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cf4f493b102399adea3cf65cdde7161c17fb605c'/>
<id>urn:sha1:cf4f493b102399adea3cf65cdde7161c17fb605c</id>
<content type='text'>
Pull tracing fixes from Steven Rostedt:
 "A few more tracing fixes:

   - Fix a buffer overflow by checking nr_args correctly in probes

   - Fix a warning that is reported by clang

   - Fix a possible memory leak in error path of filter processing

   - Fix the selftest that checks for failures, but wasn't failing

   - Minor clean up on call site output of a memory trace event"

* tag 'trace-v5.4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
  selftests/ftrace: Fix same probe error test
  mm, tracing: Print symbol name for call_site in trace events
  tracing: Have error path in predicate_parse() free its allocated memory
  tracing: Fix clang -Wint-in-bool-context warnings in IF_ASSIGN macro
  tracing/probe: Fix to check the difference of nr_args before adding probe
</content>
</entry>
</feed>
