blob: e9fb8786da7c83213dc321c18054fe7db9777af8 [file] [log] [blame]
Arnaldo Carvalho de Melofd0db102016-04-04 13:32:20 -03001#ifndef __PERF_SYSCALLTBL_H
2#define __PERF_SYSCALLTBL_H
3
4struct syscalltbl {
5 union {
6 int audit_machine;
Arnaldo Carvalho de Melo5af56fa2016-04-04 17:52:18 -03007 struct {
8 int nr_entries;
9 void *entries;
10 } syscalls;
Arnaldo Carvalho de Melofd0db102016-04-04 13:32:20 -030011 };
12};
13
14struct syscalltbl *syscalltbl__new(void);
15void syscalltbl__delete(struct syscalltbl *tbl);
16
17const char *syscalltbl__name(const struct syscalltbl *tbl, int id);
18int syscalltbl__id(struct syscalltbl *tbl, const char *name);
19
Arnaldo Carvalho de Melo89be3f82017-08-31 11:46:49 -030020int syscalltbl__strglobmatch_first(struct syscalltbl *tbl, const char *syscall_glob, int *idx);
21int syscalltbl__strglobmatch_next(struct syscalltbl *tbl, const char *syscall_glob, int *idx);
22
Arnaldo Carvalho de Melofd0db102016-04-04 13:32:20 -030023#endif /* __PERF_SYSCALLTBL_H */