0001
0002 #ifndef __PERF_SYSCALLTBL_H
0003 #define __PERF_SYSCALLTBL_H
0004
0005 struct syscalltbl {
0006 int audit_machine;
0007 struct {
0008 int max_id;
0009 int nr_entries;
0010 void *entries;
0011 } syscalls;
0012 };
0013
0014 struct syscalltbl *syscalltbl__new(void);
0015 void syscalltbl__delete(struct syscalltbl *tbl);
0016
0017 const char *syscalltbl__name(const struct syscalltbl *tbl, int id);
0018 int syscalltbl__id(struct syscalltbl *tbl, const char *name);
0019
0020 int syscalltbl__strglobmatch_first(struct syscalltbl *tbl, const char *syscall_glob, int *idx);
0021 int syscalltbl__strglobmatch_next(struct syscalltbl *tbl, const char *syscall_glob, int *idx);
0022
0023 #endif