diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-06-15 04:26:29 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-06-15 04:26:29 -0400 |
commit | 4c5e8fc62d6a63065eeae80808c498d1dcfea4f4 (patch) | |
tree | d7ea64043c11c1c935249bff7e9a2d2760974730 | |
parent | 2f6e24d3151fb9967774f9721b288f216f3180df (diff) | |
parent | 53c3daf8cfeae4b1289723c7abeb9540c1630cf8 (diff) |
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
3 files changed, 17 insertions, 2 deletions
diff --git a/tools/testing/selftests/cgroup/cgroup_util.c b/tools/testing/selftests/cgroup/cgroup_util.c index b69bdeb4b9fe..1e9e3c470561 100644 --- a/tools/testing/selftests/cgroup/cgroup_util.c +++ b/tools/testing/selftests/cgroup/cgroup_util.c | |||
@@ -35,7 +35,7 @@ out: | |||
35 | return len; | 35 | return len; |
36 | } | 36 | } |
37 | 37 | ||
38 | static ssize_t write_text(const char *path, char *buf, size_t len) | 38 | static ssize_t write_text(const char *path, char *buf, ssize_t len) |
39 | { | 39 | { |
40 | int fd; | 40 | int fd; |
41 | 41 | ||
@@ -140,7 +140,7 @@ long cg_read_key_long(const char *cgroup, const char *control, const char *key) | |||
140 | int cg_write(const char *cgroup, const char *control, char *buf) | 140 | int cg_write(const char *cgroup, const char *control, char *buf) |
141 | { | 141 | { |
142 | char path[PATH_MAX]; | 142 | char path[PATH_MAX]; |
143 | size_t len = strlen(buf); | 143 | ssize_t len = strlen(buf); |
144 | 144 | ||
145 | snprintf(path, sizeof(path), "%s/%s", cgroup, control); | 145 | snprintf(path, sizeof(path), "%s/%s", cgroup, control); |
146 | 146 | ||
diff --git a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_string.tc b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_string.tc index 5ba73035e1d9..a0002563e9ee 100644 --- a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_string.tc +++ b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_string.tc | |||
@@ -24,6 +24,14 @@ arm*) | |||
24 | ARG2=%r1 | 24 | ARG2=%r1 |
25 | OFFS=4 | 25 | OFFS=4 |
26 | ;; | 26 | ;; |
27 | ppc64*) | ||
28 | ARG2=%r4 | ||
29 | OFFS=8 | ||
30 | ;; | ||
31 | ppc*) | ||
32 | ARG2=%r4 | ||
33 | OFFS=4 | ||
34 | ;; | ||
27 | *) | 35 | *) |
28 | echo "Please implement other architecture here" | 36 | echo "Please implement other architecture here" |
29 | exit_untested | 37 | exit_untested |
diff --git a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_syntax.tc b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_syntax.tc index 231bcd2c4eb5..d026ff4e562f 100644 --- a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_syntax.tc +++ b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_syntax.tc | |||
@@ -34,6 +34,13 @@ arm*) | |||
34 | GOODREG=%r0 | 34 | GOODREG=%r0 |
35 | BADREG=%ax | 35 | BADREG=%ax |
36 | ;; | 36 | ;; |
37 | ppc*) | ||
38 | GOODREG=%r3 | ||
39 | BADREG=%msr | ||
40 | ;; | ||
41 | *) | ||
42 | echo "Please implement other architecture here" | ||
43 | exit_untested | ||
37 | esac | 44 | esac |
38 | 45 | ||
39 | test_goodarg() # Good-args | 46 | test_goodarg() # Good-args |