treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / tools / perf / util / syscalltbl.h
blob9172613028d00f4ccca3a836f8585dfe7b8fcf9b
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __PERF_SYSCALLTBL_H
3 #define __PERF_SYSCALLTBL_H
5 struct syscalltbl {
6 union {
7 int audit_machine;
8 struct {
9 int max_id;
10 int nr_entries;
11 void *entries;
12 } syscalls;
16 struct syscalltbl *syscalltbl__new(void);
17 void syscalltbl__delete(struct syscalltbl *tbl);
19 const char *syscalltbl__name(const struct syscalltbl *tbl, int id);
20 int syscalltbl__id(struct syscalltbl *tbl, const char *name);
22 int syscalltbl__strglobmatch_first(struct syscalltbl *tbl, const char *syscall_glob, int *idx);
23 int syscalltbl__strglobmatch_next(struct syscalltbl *tbl, const char *syscall_glob, int *idx);
25 #endif /* __PERF_SYSCALLTBL_H */