Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / tools / perf / util / syscalltbl.h
blob2b53b7ed25a6affefd3d85012198eab2f2af550c
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __PERF_SYSCALLTBL_H
3 #define __PERF_SYSCALLTBL_H
5 struct syscalltbl {
6 int audit_machine;
7 struct {
8 int max_id;
9 int nr_entries;
10 void *entries;
11 } syscalls;
14 struct syscalltbl *syscalltbl__new(void);
15 void syscalltbl__delete(struct syscalltbl *tbl);
17 const char *syscalltbl__name(const struct syscalltbl *tbl, int id);
18 int syscalltbl__id(struct syscalltbl *tbl, const char *name);
19 int syscalltbl__id_at_idx(struct syscalltbl *tbl, int idx);
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 */