blob: a41d2ca9e4aebad55f85ed1c33bd27fad57e245d [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 {
Arnaldo Carvalho de Melodb6b8cc2020-05-28 17:12:16 -03006 int audit_machine;
7 struct {
8 int max_id;
9 int nr_entries;
10 void *entries;
11 } syscalls;
Arnaldo Carvalho de Melofd0db102016-04-04 13:32:20 -030012};
13
14struct syscalltbl *syscalltbl__new(void);
15void syscalltbl__delete(struct syscalltbl *tbl);
16
17const char *syscalltbl__name(const struct syscalltbl *tbl, int id);
18int syscalltbl__id(struct syscalltbl *tbl, const char *name);
19
Arnaldo Carvalho de Melo89be3f82017-08-31 11:46:49 -030020int syscalltbl__strglobmatch_first(struct syscalltbl *tbl, const char *syscall_glob, int *idx);
21int syscalltbl__strglobmatch_next(struct syscalltbl *tbl, const char *syscall_glob, int *idx);
22
Arnaldo Carvalho de Melofd0db102016-04-04 13:32:20 -030023#endif /* __PERF_SYSCALLTBL_H */