<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/tools/testing/selftests/livepatch/test-ftrace.sh, branch linux-5.13.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.13.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.13.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-07-15T06:54:35Z</updated>
<entry>
<title>selftests/livepatch: adopt to newer sysctl error format</title>
<updated>2020-07-15T06:54:35Z</updated>
<author>
<name>Petr Mladek</name>
</author>
<published>2020-07-14T09:10:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5e4d46881f29a93f35f3aefeebc80cebfb44ef71'/>
<id>urn:sha1:5e4d46881f29a93f35f3aefeebc80cebfb44ef71</id>
<content type='text'>
With procfs v3.3.16, the sysctl command doesn't print the set key and
value on error.  This change breaks livepatch selftest test-ftrace.sh,
that tests the interaction of sysctl ftrace_enabled:

Make it work with all sysctl versions using '-q' option.

Explicitly print the final status on success so that it can be verified
in the log. The error message is enough on failure.

Reported-by: Kamalesh Babulal &lt;kamalesh@linux.vnet.ibm.com&gt;
Signed-off-by: Petr Mladek &lt;pmladek@suse.com&gt;
Reviewed-by: Kamalesh Babulal &lt;kamalesh@linux.vnet.ibm.com&gt;
Reviewed-by: Joe Lawrence &lt;joe.lawrence@redhat.com&gt;
Acked-by: Miroslav Benes &lt;mbenes@suse.cz&gt;
Link: https://lore.kernel.org/r/20200714091030.1611-1-pmladek@suse.com
</content>
</entry>
<entry>
<title>selftests/livepatch: Don't clear dmesg when running tests</title>
<updated>2020-06-19T08:46:42Z</updated>
<author>
<name>Joe Lawrence</name>
</author>
<published>2020-06-18T18:10:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2eeb0d457d13ed7b170e13cd99d15509d0dd832d'/>
<id>urn:sha1:2eeb0d457d13ed7b170e13cd99d15509d0dd832d</id>
<content type='text'>
Inspired by commit f131d9edc29d ("selftests/lkdtm: Don't clear dmesg
when running tests"), keep a reference dmesg copy when beginning each
test.  This way check_result() can compare against the initial copy
rather than relying upon an empty log.

Signed-off-by: Joe Lawrence &lt;joe.lawrence@redhat.com&gt;
Reviewed-by: Kamalesh Babulal &lt;kamalesh@linux.vnet.ibm.com&gt;
Reviewed-by: Yannick Cote &lt;ycote@redhat.com&gt;
Reviewed-by: Petr Mladek &lt;pmladek@suse.com&gt;
Acked-by: Miroslav Benes &lt;mbenes@suse.cz&gt;
Signed-off-by: Petr Mladek &lt;pmladek@suse.com&gt;
Link: https://lore.kernel.org/r/20200618181040.21132-2-joe.lawrence@redhat.com
</content>
</entry>
<entry>
<title>selftests/livepatch: Test interaction with ftrace_enabled</title>
<updated>2019-11-04T14:33:16Z</updated>
<author>
<name>Joe Lawrence</name>
</author>
<published>2019-10-16T11:33:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8c666d2ab5762280cb5ef43df4decb2a25450d54'/>
<id>urn:sha1:8c666d2ab5762280cb5ef43df4decb2a25450d54</id>
<content type='text'>
Since livepatching depends upon ftrace handlers to implement "patched"
code functionality, verify that the ftrace_enabled sysctl value
interacts with livepatch registration as expected.  At the same time,
ensure that ftrace_enabled is set and part of the test environment
configuration that is saved and restored when running the selftests.

Link: http://lkml.kernel.org/r/20191016113316.13415-4-mbenes@suse.cz

Signed-off-by: Joe Lawrence &lt;joe.lawrence@redhat.com&gt;
Signed-off-by: Miroslav Benes &lt;mbenes@suse.cz&gt;
Signed-off-by: Steven Rostedt (VMware) &lt;rostedt@goodmis.org&gt;
</content>
</entry>
</feed>
