aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/syscalltbl.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/syscalltbl.c')
-rw-r--r--tools/perf/util/syscalltbl.c52
1 files changed, 0 insertions, 52 deletions
diff --git a/tools/perf/util/syscalltbl.c b/tools/perf/util/syscalltbl.c
index 210f61b0a7a2..928aca4cd6e9 100644
--- a/tools/perf/util/syscalltbl.c
+++ b/tools/perf/util/syscalltbl.c
@@ -10,20 +10,12 @@
#include <linux/compiler.h>
#include <linux/zalloc.h>
-#ifdef HAVE_SYSCALL_TABLE_SUPPORT
#include <string.h>
#include "string2.h"
-#if defined(GENERIC_SYSCALL_TABLE)
#include <syscall_table.h>
const int syscalltbl_native_max_id = SYSCALLTBL_MAX_ID;
static const char *const *syscalltbl_native = syscalltbl;
-#else
-const int syscalltbl_native_max_id = 0;
-static const char *const syscalltbl_native[] = {
- [0] = "unknown",
-};
-#endif
struct syscall {
int id;
@@ -131,47 +123,3 @@ int syscalltbl__strglobmatch_first(struct syscalltbl *tbl, const char *syscall_g
*idx = -1;
return syscalltbl__strglobmatch_next(tbl, syscall_glob, idx);
}
-
-#else /* HAVE_SYSCALL_TABLE_SUPPORT */
-
-#include <libaudit.h>
-
-struct syscalltbl *syscalltbl__new(void)
-{
- struct syscalltbl *tbl = zalloc(sizeof(*tbl));
- if (tbl)
- tbl->audit_machine = audit_detect_machine();
- return tbl;
-}
-
-void syscalltbl__delete(struct syscalltbl *tbl)
-{
- free(tbl);
-}
-
-const char *syscalltbl__name(const struct syscalltbl *tbl, int id)
-{
- return audit_syscall_to_name(id, tbl->audit_machine);
-}
-
-int syscalltbl__id(struct syscalltbl *tbl, const char *name)
-{
- return audit_name_to_syscall(name, tbl->audit_machine);
-}
-
-int syscalltbl__id_at_idx(struct syscalltbl *tbl __maybe_unused, int idx)
-{
- return idx;
-}
-
-int syscalltbl__strglobmatch_next(struct syscalltbl *tbl __maybe_unused,
- const char *syscall_glob __maybe_unused, int *idx __maybe_unused)
-{
- return -1;
-}
-
-int syscalltbl__strglobmatch_first(struct syscalltbl *tbl, const char *syscall_glob, int *idx)
-{
- return syscalltbl__strglobmatch_next(tbl, syscall_glob, idx);
-}
-#endif /* HAVE_SYSCALL_TABLE_SUPPORT */
d>Linus Torvalds1-0/+1 2002-11-20[PATCH] kill i_devAndries E. Brouwer14-21/+18 2002-11-21o drivers/net/wan/lmc: fix up header cleanups: remove uneeded sched.h includesArnaldo Carvalho de Melo4-32/+23 2002-11-21o drivers/net/hamradio: fix up header cleanups: remove uneeded sched.h includesArnaldo Carvalho de Melo2-6/+8 2002-11-21o drivers/net: fix up header cleanup: remove unneeded sched.h includesArnaldo Carvalho de Melo137-618/+416 2002-11-21o net: fix up header cleanups: remove unneeded sched.h includeArnaldo Carvalho de Melo28-141/+88 2002-11-20[PATCH] break up fs/devices.cBrian Gerst8-225/+204 2002-11-20[PATCH] Some leftover nsec stat fixes (ADFS,AFS,CIFS)Andi Kleen3-3/+3 2002-11-20[PATCH] Missing unlock_kernel() in fs/block_dev.cDavid S. Miller1-0/+1 2002-11-20[PATCH] advansys.c buffer overflowRik van Riel1-1/+0 2002-11-20[PATCH] Only set dest addr in NFS/udp reply, not NFS/tcp.Neil Brown1-16/+14 2002-11-20[PATCH] Avoid copying unfragmented udp NFS requests.Neil Brown1-15/+30 2002-11-20[PATCH] Fix bug in svc_udp_recvfromNeil Brown1-2/+8 2002-11-20[PATCH] Fix err in size calculation for readdir response.Neil Brown2-2/+2 2002-11-20[PATCH] NFSv3 to extract large symlinks from paginated requests.Neil Brown1-2/+41 2002-11-20[PATCH] Avoid 'defined but not used' warning with i386/xor.hNeil Brown1-0/+2 2002-11-20[PATCH] Remove unused variable in umem.cNeil Brown1-1/+0 2002-11-20[PATCH] Tidy up some handling of sb_dirty in md.cNeil Brown1-7/+3 2002-11-20[PATCH] Fix r5 bug - wrong variable used.Neil Brown1-1/+1 2002-11-20[PATCH] Fix *_mergeable_bvec routines for linear/raid0.Neil Brown2-12/+9 2002-11-20[PATCH] explicitly initialise kstat per-cpu storageAndrew Morton1-1/+1 2002-11-20[PATCH] detect uninitialised per-cpu storageAndrew Morton2-1/+33 2002-11-20[PATCH] fix the build for egcs-1.1.2Andrew Morton1-1/+1 2002-11-20[PATCH] Via KT400 agp supportNicolas Mailhot3-0/+10 2002-11-20[PATCH] threading enhancements, tid-2.5.48-C0Ingo Molnar6-38/+41 2002-11-20[PATCH] A new Athlon 'bug'.Dave Jones2-2/+14 2002-11-20[PATCH] uClinux bits for /dev/zeroChristoph Hellwig1-0/+24 2002-11-20[PATCH] fix compilation for !CONFIG_SWAPChristoph Hellwig1-2/+2