Merge tag 'soc-ep93xx-dt-6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
[linux-2.6-block.git] / tools / perf / util / syscalltbl.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
fd0db102
ACM
2#ifndef __PERF_SYSCALLTBL_H
3#define __PERF_SYSCALLTBL_H
4
5struct syscalltbl {
db6b8cc8
ACM
6 int audit_machine;
7 struct {
8 int max_id;
9 int nr_entries;
10 void *entries;
11 } syscalls;
fd0db102
ACM
12};
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);
7a2fb561 19int syscalltbl__id_at_idx(struct syscalltbl *tbl, int idx);
fd0db102 20
89be3f8a
ACM
21int 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
fd0db102 24#endif /* __PERF_SYSCALLTBL_H */