syscalltbl.h 664 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __PERF_SYSCALLTBL_H
  3. #define __PERF_SYSCALLTBL_H
  4. struct syscalltbl {
  5. union {
  6. int audit_machine;
  7. struct {
  8. int nr_entries;
  9. void *entries;
  10. } syscalls;
  11. };
  12. };
  13. struct syscalltbl *syscalltbl__new(void);
  14. void syscalltbl__delete(struct syscalltbl *tbl);
  15. const char *syscalltbl__name(const struct syscalltbl *tbl, int id);
  16. int syscalltbl__id(struct syscalltbl *tbl, const char *name);
  17. int syscalltbl__strglobmatch_first(struct syscalltbl *tbl, const char *syscall_glob, int *idx);
  18. int syscalltbl__strglobmatch_next(struct syscalltbl *tbl, const char *syscall_glob, int *idx);
  19. #endif /* __PERF_SYSCALLTBL_H */