Lines Matching refs:syscalls
72 entries = tbl->syscalls.entries = malloc(sizeof(struct syscall) * nr_entries); in syscalltbl__init_native()
73 if (tbl->syscalls.entries == NULL) in syscalltbl__init_native()
84 qsort(tbl->syscalls.entries, nr_entries, sizeof(struct syscall), syscallcmp); in syscalltbl__init_native()
85 tbl->syscalls.nr_entries = nr_entries; in syscalltbl__init_native()
86 tbl->syscalls.max_id = syscalltbl_native_max_id; in syscalltbl__init_native()
104 zfree(&tbl->syscalls.entries); in syscalltbl__delete()
115 struct syscall *sc = bsearch(name, tbl->syscalls.entries, in syscalltbl__id()
116 tbl->syscalls.nr_entries, sizeof(*sc), in syscalltbl__id()
125 struct syscall *syscalls = tbl->syscalls.entries; in syscalltbl__strglobmatch_next() local
127 for (i = *idx + 1; i < tbl->syscalls.nr_entries; ++i) { in syscalltbl__strglobmatch_next()
128 if (strglobmatch(syscalls[i].name, syscall_glob)) { in syscalltbl__strglobmatch_next()
130 return syscalls[i].id; in syscalltbl__strglobmatch_next()