1 From 52ff74be2f01182ed9d4fcc3da059512fad63d72 Mon Sep 17 00:00:00 2001
2 From: Han Chao <chan@windriver.com>
3 Date: Thu, 27 Feb 2014 14:58:57 +0800
4 Subject: [PATCH] add system call table for ARM.
6 This change enable audit system call on ARM.
7 Add arm System call table on machinetabs.h.
8 Audit system call need enable kernel config CONFIG_AUDITSYSCALL.
10 Signed-off-by: Han Chao <chan@windriver.com>
12 lib/machinetabs.h | 11 ++++++-----
13 1 file changed, 6 insertions(+), 5 deletions(-)
15 diff --git a/lib/machinetabs.h b/lib/machinetabs.h
16 index ec2d033..1c2e284 100644
17 --- a/lib/machinetabs.h
18 +++ b/lib/machinetabs.h
20 -/* This is a generated file, see Makefile.am for its inputs. */
21 -static const char machine_strings[] = "i386\0i486\0i586\0i686\0ia64\0ppc\0ppc64\0s390\0s390x\0x86_64";
22 +/* Such is aways generated file, see Makefile.am for its inputs.
23 + * But this version is not generated file, which is for ARM. */
24 +static const char machine_strings[] = "armeb\0armv5tejl\0armv5tel\0armv6l\0armv7l";
25 static const unsigned machine_s2i_s[] = {
26 - 0,5,10,15,20,25,29,35,40,46,
29 static const int machine_s2i_i[] = {
30 - 0,0,0,0,2,4,3,6,5,1,
33 static int machine_s2i(const char *s, int *value) {
35 @@ -19,7 +20,7 @@ static int machine_s2i(const char *s, int *value) {
38 static const unsigned machine_i2s_direct[] = {
39 - 0,46,20,29,25,40,35,
42 static const char *machine_i2s(int v) {
43 return i2s_direct__(machine_strings, machine_i2s_direct, 0, 6, v);