mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
linux-kselftest-4.18-rc1-2
This second Kselftest update for Linux 4.18-rc1: - fixes a signedness bug in cgroups test - adds ppc support for kprobe args tests -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEPZKym/RZuOCGeA/kCwJExA0NQxwFAlshTxYACgkQCwJExA0N Qxy4ZA//WUeH4DqnpZmFKQ7fYAzyuKGHgilRXZ3kDf7jW+VPzYtxn5/4xIJWzEKZ 76JfnZkL/zd+JgAz86UKLyUNSPEgS0W7wHW+MQgITMTdtjqaks7EW9jLpvsWBf0m K5Wmzre7BezvpOCO4z91u7N4rsmmfzAgaGmVl2jUleXEkCBtaxQNNgfSkXzkhyua Q2+WxVqvTcWfPTGSYtxIDNM5OiLAJ/mB+FureVuKTbFGc0aWYNIudldohNBejiLt sGKwriaD8RMNKQCdKHZxRZoEKZGe3hpKsfxReU+KkUAtzIbmisfwiO5ohjncxp0t OE42VMQixe2DZO3PfN58DNJeqvzPgGbILRqjRXLRL6jAS23jI5gYYicxyb0Ex8zm +c7KEEzG4L7yAM4Z8idkKykWritjQTn02Rfwri08OvT84NtESmCadQpXsv3inIOo 6N2Ypm0+Hpe2sPocrQVQQTFO6h6xbS+pDPRR3FkZbLlcjWIAFHC9mqmP2XdvVJdq D1vuDMfL7bHqCBQoqWcSUhPmAxiBtzEDK7TCP7txNjUguB/MGBhEPf0gailuPFMK pJdsOY8ynnezrcA5mklKTVIAZd6hbMkdBftJRKigHRZBtZ6em+oyQcoaHhMuxUdr LjyCDlN4HduHqxzRAx3ytbiVTcT4k12yC6+sv23YHsYZxRfpKqg= =5i77 -----END PGP SIGNATURE----- Merge tag 'linux-kselftest-4.18-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest Pull more Kselftest updates from Shuah Khan: - fix a signedness bug in cgroups test - add ppc support for kprobe args tests * tag 'linux-kselftest-4.18-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: kselftest/cgroup: fix a signedness bug selftests/ftrace: Add ppc support for kprobe args tests
This commit is contained in:
commit
4c5e8fc62d
3 changed files with 17 additions and 2 deletions
|
@ -35,7 +35,7 @@ out:
|
||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
|
||||||
static ssize_t write_text(const char *path, char *buf, size_t len)
|
static ssize_t write_text(const char *path, char *buf, ssize_t len)
|
||||||
{
|
{
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
|
@ -140,7 +140,7 @@ long cg_read_key_long(const char *cgroup, const char *control, const char *key)
|
||||||
int cg_write(const char *cgroup, const char *control, char *buf)
|
int cg_write(const char *cgroup, const char *control, char *buf)
|
||||||
{
|
{
|
||||||
char path[PATH_MAX];
|
char path[PATH_MAX];
|
||||||
size_t len = strlen(buf);
|
ssize_t len = strlen(buf);
|
||||||
|
|
||||||
snprintf(path, sizeof(path), "%s/%s", cgroup, control);
|
snprintf(path, sizeof(path), "%s/%s", cgroup, control);
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,14 @@ arm*)
|
||||||
ARG2=%r1
|
ARG2=%r1
|
||||||
OFFS=4
|
OFFS=4
|
||||||
;;
|
;;
|
||||||
|
ppc64*)
|
||||||
|
ARG2=%r4
|
||||||
|
OFFS=8
|
||||||
|
;;
|
||||||
|
ppc*)
|
||||||
|
ARG2=%r4
|
||||||
|
OFFS=4
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Please implement other architecture here"
|
echo "Please implement other architecture here"
|
||||||
exit_untested
|
exit_untested
|
||||||
|
|
|
@ -34,6 +34,13 @@ arm*)
|
||||||
GOODREG=%r0
|
GOODREG=%r0
|
||||||
BADREG=%ax
|
BADREG=%ax
|
||||||
;;
|
;;
|
||||||
|
ppc*)
|
||||||
|
GOODREG=%r3
|
||||||
|
BADREG=%msr
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Please implement other architecture here"
|
||||||
|
exit_untested
|
||||||
esac
|
esac
|
||||||
|
|
||||||
test_goodarg() # Good-args
|
test_goodarg() # Good-args
|
||||||
|
|
Loading…
Add table
Reference in a new issue