1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef __PERF_SYSCALLTBL_H 2 #ifndef __PERF_SYSCALLTBL_H 3 #define __PERF_SYSCALLTBL_H 3 #define __PERF_SYSCALLTBL_H 4 4 5 struct syscalltbl { 5 struct syscalltbl { 6 int audit_machine; !! 6 union { 7 struct { !! 7 int audit_machine; 8 int max_id; !! 8 struct { 9 int nr_entries; !! 9 int max_id; 10 void *entries; !! 10 int nr_entries; 11 } syscalls; !! 11 void *entries; >> 12 } syscalls; >> 13 }; 12 }; 14 }; 13 15 14 struct syscalltbl *syscalltbl__new(void); 16 struct syscalltbl *syscalltbl__new(void); 15 void syscalltbl__delete(struct syscalltbl *tbl 17 void syscalltbl__delete(struct syscalltbl *tbl); 16 18 17 const char *syscalltbl__name(const struct sysc 19 const char *syscalltbl__name(const struct syscalltbl *tbl, int id); 18 int syscalltbl__id(struct syscalltbl *tbl, con 20 int syscalltbl__id(struct syscalltbl *tbl, const char *name); 19 int syscalltbl__id_at_idx(struct syscalltbl *t << 20 21 21 int syscalltbl__strglobmatch_first(struct sysc 22 int syscalltbl__strglobmatch_first(struct syscalltbl *tbl, const char *syscall_glob, int *idx); 22 int syscalltbl__strglobmatch_next(struct sysca 23 int syscalltbl__strglobmatch_next(struct syscalltbl *tbl, const char *syscall_glob, int *idx); 23 24 24 #endif /* __PERF_SYSCALLTBL_H */ 25 #endif /* __PERF_SYSCALLTBL_H */ 25 26
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.