blob: c8e7e9ce0f01e12e2b0b8825cca5c83c7d901662 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Arnaldo Carvalho de Melofd0db102016-04-04 13:32:20 -03002#ifndef __PERF_SYSCALLTBL_H
3#define __PERF_SYSCALLTBL_H
4
5struct syscalltbl {
6 union {
7 int audit_machine;
Arnaldo Carvalho de Melo5af56fa2016-04-04 17:52:18 -03008 struct {
9 int nr_entries;
10 void *entries;
11 } syscalls;
Arnaldo Carvalho de Melofd0db102016-04-04 13:32:20 -030012 };
13};
14
15struct syscalltbl *syscalltbl__new(void);
16void syscalltbl__delete(struct syscalltbl *tbl);
17
18const char *syscalltbl__name(const struct syscalltbl *tbl, int id);
19int syscalltbl__id(struct syscalltbl *tbl, const char *name);
20
Arnaldo Carvalho de Melo89be3f82017-08-31 11:46:49 -030021int syscalltbl__strglobmatch_first(struct syscalltbl *tbl, const char *syscall_glob, int *idx);
22int syscalltbl__strglobmatch_next(struct syscalltbl *tbl, const char *syscall_glob, int *idx);
23
Arnaldo Carvalho de Melofd0db102016-04-04 13:32:20 -030024#endif /* __PERF_SYSCALLTBL_H */