<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/tools/testing/selftests/media_tests/media_device_test.c, branch master</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=master</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2025-11-27T22:24:31Z</updated>
<entry>
<title>selftests: complete kselftest include centralization</title>
<updated>2025-11-27T22:24:31Z</updated>
<author>
<name>Bala-Vignesh-Reddy</name>
</author>
<published>2025-10-16T10:44:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e6fbd1759c9ece5044d3470f30a5e2166dc9de89'/>
<id>urn:sha1:e6fbd1759c9ece5044d3470f30a5e2166dc9de89</id>
<content type='text'>
This follow-up patch completes centralization of kselftest.h and
ksefltest_harness.h includes in remaining seltests files, replacing all
relative paths with a non-relative paths using shared -I include path in
lib.mk

Tested with gcc-13.3 and clang-18.1, and cross-compiled successfully on
riscv, arm64, x86_64 and powerpc arch.

[reddybalavignesh9979@gmail.com: add selftests include path for kselftest.h]
  Link: https://lkml.kernel.org/r/20251017090201.317521-1-reddybalavignesh9979@gmail.com
Link: https://lkml.kernel.org/r/20251016104409.68985-1-reddybalavignesh9979@gmail.com
Signed-off-by: Bala-Vignesh-Reddy &lt;reddybalavignesh9979@gmail.com&gt;
Suggested-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Link: https://lore.kernel.org/lkml/20250820143954.33d95635e504e94df01930d0@linux-foundation.org/
Reviewed-by: Wei Yang &lt;richard.weiyang@gmail.com&gt;
Cc: David Hildenbrand &lt;david@redhat.com&gt;
Cc: David S. Miller &lt;davem@davemloft.net&gt;
Cc: Eric Dumazet &lt;edumazet@google.com&gt;
Cc: Günther Noack &lt;gnoack@google.com&gt;
Cc: Jakub Kacinski &lt;kuba@kernel.org&gt;
Cc: Liam Howlett &lt;liam.howlett@oracle.com&gt;
Cc: Lorenzo Stoakes &lt;lorenzo.stoakes@oracle.com&gt;
Cc: Michal Hocko &lt;mhocko@suse.com&gt;
Cc: Mickael Salaun &lt;mic@digikod.net&gt;
Cc: Ming Lei &lt;ming.lei@redhat.com&gt;
Cc: Paolo Abeni &lt;pabeni@redhat.com&gt;
Cc: Shuah Khan &lt;shuah@kernel.org&gt;
Cc: Simon Horman &lt;horms@kernel.org&gt;
Cc: Suren Baghdasaryan &lt;surenb@google.com&gt;
Cc: Vlastimil Babka &lt;vbabka@suse.cz&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>selftests: media_tests: return Kselftest Skip code for skipped tests</title>
<updated>2018-05-30T21:29:06Z</updated>
<author>
<name>Shuah Khan (Samsung OSG)</name>
</author>
<published>2018-05-04T18:06:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=113812868c40c5bb09b0e2cc7d168dee5649952f'/>
<id>urn:sha1:113812868c40c5bb09b0e2cc7d168dee5649952f</id>
<content type='text'>
When media_tests test is skipped because of unmet dependencies and/or
unsupported configuration, it exits with error which is treated as a
fail by the Kselftest framework. This leads to false negative result
even when the test could not be run.

Change it to return kselftest skip code when a test gets skipped to
clearly report that the test could not be run.

Change it to use ksft_exit_skip() when the test is skipped.

Signed-off-by: Shuah Khan (Samsung OSG) &lt;shuah@kernel.org&gt;
</content>
</entry>
<entry>
<title>selftests: media_tests: fix spelling mistake: "iternations" -&gt; "iterations"</title>
<updated>2018-05-30T21:21:51Z</updated>
<author>
<name>Colin Ian King</name>
</author>
<published>2018-05-02T15:00:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=16378efaf3069cc53f2cd56011d985338a8c0f6c'/>
<id>urn:sha1:16378efaf3069cc53f2cd56011d985338a8c0f6c</id>
<content type='text'>
Trivial fix to spelling mistake in message text

Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Signed-off-by: Shuah Khan (Samsung OSG) &lt;shuah@kernel.org&gt;
</content>
</entry>
<entry>
<title>selftests: media_tests: Add SPDX license identifier</title>
<updated>2018-01-12T18:46:56Z</updated>
<author>
<name>Shuah Khan</name>
</author>
<published>2018-01-10T01:38:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a4f0e38e1d0d87849e22cb2f9c3f0bbe87729f5d'/>
<id>urn:sha1:a4f0e38e1d0d87849e22cb2f9c3f0bbe87729f5d</id>
<content type='text'>
Replace GPL license statement with SPDX GPL-2.0 license identifier.

Signed-off-by: Shuah Khan &lt;shuahkh@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>selftests: media_device_test change it to randomize loop count</title>
<updated>2016-06-27T19:21:26Z</updated>
<author>
<name>Shuah Khan</name>
</author>
<published>2016-06-18T00:05:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e9c0d44f5328ba844f7e037791b9cc72ee3ef964'/>
<id>urn:sha1:e9c0d44f5328ba844f7e037791b9cc72ee3ef964</id>
<content type='text'>
Change it to randomize the loop count instead of hardcoded number of times
ioctl is called.

Signed-off-by: Shuah Khan &lt;shuahkh@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>selftests: media_dcevice_test fix usage information</title>
<updated>2016-02-26T00:22:42Z</updated>
<author>
<name>Shuah Khan</name>
</author>
<published>2016-02-25T17:35:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6accd8e9bf22749f621fb7fb57995fa65f4cd873'/>
<id>urn:sha1:6accd8e9bf22749f621fb7fb57995fa65f4cd873</id>
<content type='text'>
Fix the incorrect usage information.

Signed-off-by: Shuah Khan &lt;shuahkh@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>selftests: media_dcevice_test fix to handle ioctl failure case</title>
<updated>2016-02-26T00:22:36Z</updated>
<author>
<name>Shuah Khan</name>
</author>
<published>2016-02-25T17:17:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=36d3f7d8204dabc225febdeca9db8a3114cc9b6d'/>
<id>urn:sha1:36d3f7d8204dabc225febdeca9db8a3114cc9b6d</id>
<content type='text'>
Fix to print information returned by ioctl only when
it returns success.

Signed-off-by: Shuah Khan &lt;shuahkh@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>selftests: add a new test for Media Controller API</title>
<updated>2016-02-25T16:47:02Z</updated>
<author>
<name>Shuah Khan</name>
</author>
<published>2016-02-13T00:43:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9d22f6e14e249713108c8adcc8705c39303f0628'/>
<id>urn:sha1:9d22f6e14e249713108c8adcc8705c39303f0628</id>
<content type='text'>
This test opens user specified Media Device and calls
MEDIA_IOC_DEVICE_INFO ioctl in a loop once every 10
seconds. This test is for detecting errors in device
removal path.

Usage:
    sudo ./media_device_test -d /dev/mediaX

While test is running, remove the device and
ensure there are no use after free errors and
other Oops in the dmesg. Enable KaSan kernel
config option for use-after-free error detection.

Signed-off-by: Shuah Khan &lt;shuahkh@osg.samsung.com&gt;
</content>
</entry>
</feed>
