xref: /kernel/linux/linux-6.6/tools/perf/util/syscalltbl.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/tools/perf/util/
162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci#ifndef __PERF_SYSCALLTBL_H
362306a36Sopenharmony_ci#define __PERF_SYSCALLTBL_H
462306a36Sopenharmony_ci
562306a36Sopenharmony_cistruct syscalltbl {
662306a36Sopenharmony_ci	int audit_machine;
762306a36Sopenharmony_ci	struct {
862306a36Sopenharmony_ci		int max_id;
962306a36Sopenharmony_ci		int nr_entries;
1062306a36Sopenharmony_ci		void *entries;
1162306a36Sopenharmony_ci	} syscalls;
1262306a36Sopenharmony_ci};
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_cistruct syscalltbl *syscalltbl__new(void);
1562306a36Sopenharmony_civoid syscalltbl__delete(struct syscalltbl *tbl);
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ciconst char *syscalltbl__name(const struct syscalltbl *tbl, int id);
1862306a36Sopenharmony_ciint syscalltbl__id(struct syscalltbl *tbl, const char *name);
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ciint syscalltbl__strglobmatch_first(struct syscalltbl *tbl, const char *syscall_glob, int *idx);
2162306a36Sopenharmony_ciint syscalltbl__strglobmatch_next(struct syscalltbl *tbl, const char *syscall_glob, int *idx);
2262306a36Sopenharmony_ci
2362306a36Sopenharmony_ci#endif /* __PERF_SYSCALLTBL_H */
24

Indexes created Thu Nov 07 10:32:03 CST 2024