Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Arnaldo Carvalho de Melo | fd0db10 | 2016-04-04 13:32:20 -0300 | [diff] [blame] | 2 | #ifndef __PERF_SYSCALLTBL_H |
| 3 | #define __PERF_SYSCALLTBL_H |
| 4 | |
| 5 | struct syscalltbl { |
Arnaldo Carvalho de Melo | db6b8cc | 2020-05-28 17:12:16 -0300 | [diff] [blame] | 6 | int audit_machine; |
| 7 | struct { |
| 8 | int max_id; |
| 9 | int nr_entries; |
| 10 | void *entries; |
| 11 | } syscalls; |
Arnaldo Carvalho de Melo | fd0db10 | 2016-04-04 13:32:20 -0300 | [diff] [blame] | 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 | |
Arnaldo Carvalho de Melo | 89be3f8 | 2017-08-31 11:46:49 -0300 | [diff] [blame] | 20 | int syscalltbl__strglobmatch_first(struct syscalltbl *tbl, const char *syscall_glob, int *idx); |
| 21 | int syscalltbl__strglobmatch_next(struct syscalltbl *tbl, const char *syscall_glob, int *idx); |
| 22 | |
Arnaldo Carvalho de Melo | fd0db10 | 2016-04-04 13:32:20 -0300 | [diff] [blame] | 23 | #endif /* __PERF_SYSCALLTBL_H */ |