summaryrefslogtreecommitdiff
path: root/tests/kernel_version-Xabbrev.c
diff options
context:
space:
mode:
authorShankara Pailoor <shankarapailoor@gmail.com>2018-12-09 07:41:43 -0800
committerDmitry V. Levin <ldv@altlinux.org>2018-12-10 23:45:11 +0000
commitbf195a8455c282095a441f8faab18d3eb6b46372 (patch)
treef036f156944b18193e3d67f3c99fa0ad97e072ac /tests/kernel_version-Xabbrev.c
parente1f15583e01b11894481de7b64fb6a8a295cb5be (diff)
downloadstrace-bf195a8455c282095a441f8faab18d3eb6b46372.tar.gz
bpf: honor xlat styles when printing kernel version
* print_kernel_version.c: New file. * Makefile.am (strace_SOURCES): Add it. * defs.h (print_kernel_version): New prototype. * bpf.c (BEGIN_BPF_CMD_DECODER(BPF_PROG_LOAD)): Use print_kernel_version. * tests/kernel_version.c: New file. * tests/kernel_version-Xabbrev.c: Likewise. * tests/kernel_version-Xraw.c: Likewise. * tests/kernel_version-Xverbose.c: Likewise. * tests/gen_tests.in (kernel_version, kernel_version-Xabbrev, kernel_version-Xraw, kernel_version-Xverbose): New tests. * tests/pure_executables.list: Add kernel_version, kernel_version-Xabbrev, kernel_version-Xraw, and kernel_version-Xverbose. * tests/.gitignore: Likewise. Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
Diffstat (limited to 'tests/kernel_version-Xabbrev.c')
-rw-r--r--tests/kernel_version-Xabbrev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/kernel_version-Xabbrev.c b/tests/kernel_version-Xabbrev.c
new file mode 100644
index 000000000..2d6da3581
--- /dev/null
+++ b/tests/kernel_version-Xabbrev.c
@@ -0,0 +1 @@
+#include "kernel_version.c"