Arnaldo Carvalho de Melo | fd0db10 | 2016-04-04 13:32:20 -0300 | [diff] [blame] | 1 | #ifndef __PERF_SYSCALLTBL_H |
| 2 | #define __PERF_SYSCALLTBL_H |
| 3 | |
| 4 | struct syscalltbl { |
| 5 | union { |
| 6 | int audit_machine; |
Arnaldo Carvalho de Melo | 5af56fa | 2016-04-04 17:52:18 -0300 | [diff] [blame] | 7 | struct { |
| 8 | int nr_entries; |
| 9 | void *entries; |
| 10 | } syscalls; |
Arnaldo Carvalho de Melo | fd0db10 | 2016-04-04 13:32:20 -0300 | [diff] [blame] | 11 | }; |
| 12 | }; |
| 13 | |
| 14 | struct syscalltbl *syscalltbl__new(void); |
| 15 | void syscalltbl__delete(struct syscalltbl *tbl); |
| 16 | |
| 17 | const char *syscalltbl__name(const struct syscalltbl *tbl, int id); |
| 18 | int syscalltbl__id(struct syscalltbl *tbl, const char *name); |
| 19 | |
| 20 | #endif /* __PERF_SYSCALLTBL_H */ |