Revert "perf augmented_syscalls: Drop 'write', 'poll' for testing without self pid...
[linux/fpc-iii.git] / tools / perf / util / syscalltbl.h
blobc8e7e9ce0f01e12e2b0b8825cca5c83c7d901662
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __PERF_SYSCALLTBL_H
3 #define __PERF_SYSCALLTBL_H
5 struct syscalltbl {
6 union {
7 int audit_machine;
8 struct {
9 int nr_entries;
10 void *entries;
11 } syscalls;
15 struct syscalltbl *syscalltbl__new(void);
16 void syscalltbl__delete(struct syscalltbl *tbl);
18 const char *syscalltbl__name(const struct syscalltbl *tbl, int id);
19 int syscalltbl__id(struct syscalltbl *tbl, const char *name);
21 int syscalltbl__strglobmatch_first(struct syscalltbl *tbl, const char *syscall_glob, int *idx);
22 int syscalltbl__strglobmatch_next(struct syscalltbl *tbl, const char *syscall_glob, int *idx);
24 #endif /* __PERF_SYSCALLTBL_H */