^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #ifndef __PERF_SYSCALLTBL_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define __PERF_SYSCALLTBL_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) struct syscalltbl {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) int audit_machine;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) struct {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) int max_id;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) int nr_entries;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) void *entries;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) } syscalls;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) struct syscalltbl *syscalltbl__new(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) void syscalltbl__delete(struct syscalltbl *tbl);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) const char *syscalltbl__name(const struct syscalltbl *tbl, int id);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) int syscalltbl__id(struct syscalltbl *tbl, const char *name);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) int syscalltbl__strglobmatch_first(struct syscalltbl *tbl, const char *syscall_glob, int *idx);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) int syscalltbl__strglobmatch_next(struct syscalltbl *tbl, const char *syscall_glob, int *idx);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) #endif /* __PERF_SYSCALLTBL_H */