<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/tools/testing/selftests/vDSO/Makefile, branch linux-6.10.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.10.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.10.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2024-07-05T20:12:34Z</updated>
<entry>
<title>selftests/vDSO: remove duplicate compiler invocations from Makefile</title>
<updated>2024-07-05T20:12:34Z</updated>
<author>
<name>John Hubbard</name>
</author>
<published>2024-07-05T19:57:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=66cde337fa1b7c6cf31f856fa015bd91a4d383e7'/>
<id>urn:sha1:66cde337fa1b7c6cf31f856fa015bd91a4d383e7</id>
<content type='text'>
The Makefile open-codes compiler invocations that ../lib.mk already
provides.

Avoid this by using a Make feature that allows setting per-target
variables, which in this case are: CFLAGS and LDFLAGS. This approach
generates the exact same compiler invocations as before, but removes all
of the code duplication, along with the quirky mangled variable names.
So now the Makefile is smaller, less unusual, and easier to read.

The new dependencies are listed after including lib.mk, in order to
let lib.mk provide the first target ("all:"), and are grouped together
with their respective source file dependencies, for visual clarity.

Signed-off-by: John Hubbard &lt;jhubbard@nvidia.com&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>selftests/vDSO: remove partially duplicated "all:" target in Makefile</title>
<updated>2024-07-05T20:12:28Z</updated>
<author>
<name>John Hubbard</name>
</author>
<published>2024-07-05T19:57:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bb2a605de3757ec8c39e5706cfac3deed5694228'/>
<id>urn:sha1:bb2a605de3757ec8c39e5706cfac3deed5694228</id>
<content type='text'>
There were a couple of errors here:

1. TEST_GEN_PROGS was incorrectly prepending $(OUTPUT) to each program
to be built. However, lib.mk already does that because it assumes "bare"
program names are passed in, so this ended up creating
$(OUTPUT)/$(OUTPUT)/file.c, which of course won't work as intended.

2. lib.mk was included before TEST_GEN_PROGS was set, which led to
lib.mk's "all:" target not seeing anything to rebuild.

So nothing worked, which caused the author to force things by creating
an "all:" target locally--while still including ../lib.mk.

Fix all of this by including ../lib.mk at the right place, and removing
the $(OUTPUT) prefix to the programs to be built, and removing the
duplicate "all:" target.

Reviewed-by: Muhammad Usama Anjum &lt;usama.anjum@collabora.com&gt;
Signed-off-by: John Hubbard &lt;jhubbard@nvidia.com&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>kselftest: Move test_vdso to the vDSO test suite</title>
<updated>2020-10-27T23:58:33Z</updated>
<author>
<name>Vincenzo Frascino</name>
</author>
<published>2020-10-26T11:49:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c7e5789b24d36dd5dddd36ea2b99280a606cac42'/>
<id>urn:sha1:c7e5789b24d36dd5dddd36ea2b99280a606cac42</id>
<content type='text'>
Move test_vdso from x86 to the vDSO test suite.

Suggested-by: Andy Lutomirski &lt;luto@kernel.org&gt;
Cc: Shuah Khan &lt;shuah@kernel.org&gt;
Signed-off-by: Vincenzo Frascino &lt;vincenzo.frascino@arm.com&gt;
Acked-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>kselftest: Extend vDSO selftest to clock_getres</title>
<updated>2020-10-27T23:58:00Z</updated>
<author>
<name>Vincenzo Frascino</name>
</author>
<published>2020-10-26T11:49:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=03f55c7952c92d8577d6e9bc695f3fd20032cfd9'/>
<id>urn:sha1:03f55c7952c92d8577d6e9bc695f3fd20032cfd9</id>
<content type='text'>
The current version of the multiarch vDSO selftest verifies only
gettimeofday.

Extend the vDSO selftest to clock_getres, to verify that the
syscall and the vDSO library function return the same information.

The extension has been used to verify the hrtimer_resoltion fix.

Cc: Shuah Khan &lt;shuah@kernel.org&gt;
Signed-off-by: Vincenzo Frascino &lt;vincenzo.frascino@arm.com&gt;
Acked-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>kselftest: Extend vDSO selftest</title>
<updated>2020-10-27T23:57:08Z</updated>
<author>
<name>Vincenzo Frascino</name>
</author>
<published>2020-10-26T11:49:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=693f5ca08ca0767b407b7ca634dbf1b783676ec3'/>
<id>urn:sha1:693f5ca08ca0767b407b7ca634dbf1b783676ec3</id>
<content type='text'>
The current version of the multiarch vDSO selftest verifies only
gettimeofday.

Extend the vDSO selftest to the other library functions:
 - time
 - clock_getres
 - clock_gettime

The extension has been used to verify the unified vdso library on the
supported architectures.

Cc: Shuah Khan &lt;shuah@kernel.org&gt;
Signed-off-by: Vincenzo Frascino &lt;vincenzo.frascino@arm.com&gt;
Acked-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>kselftest: Enable vDSO test on non x86 platforms</title>
<updated>2020-10-27T23:51:55Z</updated>
<author>
<name>Vincenzo Frascino</name>
</author>
<published>2020-10-26T11:49:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=40723419f4079d0c7de98d0f3149db915557b55a'/>
<id>urn:sha1:40723419f4079d0c7de98d0f3149db915557b55a</id>
<content type='text'>
Currently the vDSO tests are built only on x86 platforms and cannot be
cross compiled.

Enable vDSO TARGET for all the platforms.

Future patches will extend the tests.

Cc: Shuah Khan &lt;shuah@kernel.org&gt;
Signed-off-by: Vincenzo Frascino &lt;vincenzo.frascino@arm.com&gt;
Acked-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>selftests: vdso: Add a selftest for vDSO getcpu()</title>
<updated>2020-05-22T17:05:07Z</updated>
<author>
<name>Mark Brown</name>
</author>
<published>2020-05-22T16:21:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2e9a97256616f2f7280f8bed8c98e57bfd745a4d'/>
<id>urn:sha1:2e9a97256616f2f7280f8bed8c98e57bfd745a4d</id>
<content type='text'>
Provide a very basic selftest for getcpu() which similarly to our existing
test for gettimeofday() looks up the function in the vDSO and prints the
results it gets if the function exists and succeeds.

Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>selftests: vdso: Rename vdso_test to vdso_test_gettimeofday</title>
<updated>2020-05-22T15:49:49Z</updated>
<author>
<name>Mark Brown</name>
</author>
<published>2020-05-21T20:37:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=babf8a978d497af2fe4111cc80866b9e436bf785'/>
<id>urn:sha1:babf8a978d497af2fe4111cc80866b9e436bf785</id>
<content type='text'>
Currently the vDSO kselftests have a test called vdso_test which tests
the vDSO implementation of gettimeofday(). In preparation for adding
tests for other vDSO functionality rename this test to reflect what's
going on.

Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>selftests: vDSO - fix to exclude x86 test on non-x86 platforms</title>
<updated>2018-07-11T16:14:14Z</updated>
<author>
<name>Shuah Khan (Samsung OSG)</name>
</author>
<published>2018-06-22T17:23:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=29ee92397f2c83c489b72a1ba72ec97484a18a67'/>
<id>urn:sha1:29ee92397f2c83c489b72a1ba72ec97484a18a67</id>
<content type='text'>
Fix to exclude vdso_standalone_test_x86 test from building on non-x86
platforms. In addition, fix it to use TEST_GEN_PROGS which is the right
variable to use for generated programs. TEST_PROGS is for shell scripts.

Signed-off-by: Shuah Khan (Samsung OSG) &lt;shuah@kernel.org&gt;
</content>
</entry>
<entry>
<title>selftest/vDSO: fix O=</title>
<updated>2018-02-13T18:35:01Z</updated>
<author>
<name>Dominik Brodowski</name>
</author>
<published>2018-02-11T10:59:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=70b574e7d719bdf96d26528cb289f3e782e83979'/>
<id>urn:sha1:70b574e7d719bdf96d26528cb289f3e782e83979</id>
<content type='text'>
The vDSO selftests ignored the O= or KBUILD_OUTPUT= parameters. Fix it.

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