summaryrefslogtreecommitdiff
path: root/tests/prctl-sched-core-success-Xraw.c
diff options
context:
space:
mode:
authorEugene Syromyatnikov <evgsyr@gmail.com>2021-08-14 20:48:51 +0200
committerDmitry V. Levin <ldv@strace.io>2021-08-18 19:48:38 +0000
commitc550246161ad2af220e4d84103fd303edbb19759 (patch)
tree9e5e32f1ab70ea236008046187190d0c0bea2aec /tests/prctl-sched-core-success-Xraw.c
parent23244e2d5b53c322907bc65a8af73b6bbd2a9c2d (diff)
downloadstrace-c550246161ad2af220e4d84103fd303edbb19759.tar.gz
prctl: implement PR_SCHED_CORE op decoding
Introduced by Linux commit v5.14-rc1~6^2~50. * src/xlat/pr_sched_core_cmds.in: New file. * src/xlat/pr_sched_core_pidtypes.in: Likewise. * src/xlat/prctl_options.in (PR_SCHED_CORE): New constant. * src/prctl.c: Include "xlat/pr_sched_core_cmds.h", "xlat/pr_sched_core_pidtypes.h". (SYS_FUNC(prctl)) <case PR_SCHED_CORE>: Implement decoding. * tests/prctl-sched-core--pidns-translation-Xabbrev.c: New file. * tests/prctl-sched-core--pidns-translation-Xraw.c: Likewise. * tests/prctl-sched-core--pidns-translation-Xverbose.c: Likewise. * tests/prctl-sched-core--pidns-translation.c: Likewise. * tests/prctl-sched-core-Xabbrev.c: Likewise. * tests/prctl-sched-core-Xraw.c: Likewise. * tests/prctl-sched-core-Xverbose.c: Likewise. * tests/prctl-sched-core-success--pidns-translation-Xabbrev.c: Likewise. * tests/prctl-sched-core-success--pidns-translation-Xraw.c: Likewise. * tests/prctl-sched-core-success--pidns-translation-Xverbose.c: Likewise. * tests/prctl-sched-core-success--pidns-translation.c: Likewise. * tests/prctl-sched-core-success-Xabbrev.c: Likewise. * tests/prctl-sched-core-success-Xraw.c: Likewise. * tests/prctl-sched-core-success-Xverbose.c: Likewise. * tests/prctl-sched-core-success.c: Likewise. * tests/prctl-sched-core.c: Likewise. * tests/.gitignore: Add prctl-sched-core, prctl-sched-core-Xabbrev, prctl-sched-core-Xraw, prctl-sched-core-Xverbose, prctl-sched-core--pidns-translation, prctl-sched-core--pidns-translation-Xabbrev, prctl-sched-core--pidns-translation-Xraw, prctl-sched-core--pidns-translation-Xverbose, prctl-sched-core-success, prctl-sched-core-success-Xabbrev, prctl-sched-core-success-Xraw, prctl-sched-core-success-Xverbose, prctl-sched-core-success--pidns-translation, prctl-sched-core-success--pidns-translation-Xabbrev, prctl-sched-core-success--pidns-translation-Xraw, and prctl-sched-core-success--pidns-translation-Xverbose. * tests/Makefile.am (check_PROGRAMS): Add prctl-sched-core--pidns-translation, prctl-sched-core--pidns-translation-Xabbrev, prctl-sched-core--pidns-translation-Xraw, prctl-sched-core--pidns-translation-Xverbose, prctl-sched-core-success, prctl-sched-core-success-Xabbrev, prctl-sched-core-success-Xraw, prctl-sched-core-success-Xverbose, prctl-sched-core-success--pidns-translation, prctl-sched-core-success--pidns-translation-Xabbrev, prctl-sched-core-success--pidns-translation-Xraw, and prctl-sched-core-success--pidns-translation-Xverbose. * tests/gen_tests.in (prctl-sched-core, prctl-sched-core-Xabbrev, prctl-sched-core-Xraw, prctl-sched-core-Xverbose, prctl-sched-core--pidns-translation, prctl-sched-core--pidns-translation-Xabbrev, prctl-sched-core--pidns-translation-Xraw, prctl-sched-core--pidns-translation-Xverbose, prctl-sched-core-success, prctl-sched-core-success-Xabbrev, prctl-sched-core-success-Xraw, prctl-sched-core-success-Xverbose, prctl-sched-core-success--pidns-translation, prctl-sched-core-success--pidns-translation-Xabbrev, prctl-sched-core-success--pidns-translation-Xraw, and prctl-sched-core-success--pidns-translation-Xverbose): New tests. * tests/pure_executables.list: Add prctl-sched-core, prctl-sched-core-Xabbrev, prctl-sched-core-Xraw, and prctl-sched-core-Xverbose.
Diffstat (limited to 'tests/prctl-sched-core-success-Xraw.c')
-rw-r--r--tests/prctl-sched-core-success-Xraw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/prctl-sched-core-success-Xraw.c b/tests/prctl-sched-core-success-Xraw.c
new file mode 100644
index 000000000..0da42cf23
--- /dev/null
+++ b/tests/prctl-sched-core-success-Xraw.c
@@ -0,0 +1,2 @@
+#define XLAT_RAW 1
+#include "prctl-sched-core-success.c"