Lines Matching refs:syscalls
133 } syscalls; member
1752 if (trace->syscalls.table == NULL) { in trace__read_syscall_info()
1753 trace->syscalls.table = calloc(trace->sctbl->syscalls.max_id + 1, sizeof(*sc)); in trace__read_syscall_info()
1754 if (trace->syscalls.table == NULL) in trace__read_syscall_info()
1758 if (id > trace->sctbl->syscalls.max_id || (id == 0 && trace->syscalls.table == NULL)) { in trace__read_syscall_info()
1760 struct syscall *table = realloc(trace->syscalls.table, (id + 1) * sizeof(*sc)); in trace__read_syscall_info()
1766 if (trace->syscalls.table == NULL) in trace__read_syscall_info()
1769 …memset(table + trace->sctbl->syscalls.max_id + 1, 0, (id - trace->sctbl->syscalls.max_id) * sizeof… in trace__read_syscall_info()
1771 trace->syscalls.table = table; in trace__read_syscall_info()
1772 trace->sctbl->syscalls.max_id = id; in trace__read_syscall_info()
1775 sc = trace->syscalls.table + id; in trace__read_syscall_info()
2099 if (id > trace->sctbl->syscalls.max_id) {
2101 if (id >= trace->sctbl->syscalls.max_id) {
2113 if ((trace->syscalls.table == NULL || trace->syscalls.table[id].name == NULL) &&
2117 if (trace->syscalls.table[id].name == NULL) {
2118 if (trace->syscalls.table[id].nonexistent)
2123 return &trace->syscalls.table[id];
2129 if (id <= trace->sctbl->syscalls.max_id && trace->syscalls.table[id].name != NULL)
2130 fprintf(trace->output, "(%s)", trace->syscalls.table[id].name);
2313 if (evsel != trace->syscalls.events.sys_enter)
2783 if (evsel == trace->syscalls.events.augmented) {
3168 trace->syscalls.events.sys_enter = sys_enter;
3169 trace->syscalls.events.sys_exit = sys_exit;
3193 if (!evsel__append_tp_filter(trace->syscalls.events.sys_enter, filter)) {
3194 sys_exit = trace->syscalls.events.sys_exit;
3222 trace->syscalls.map = trace__find_bpf_map_by_name(trace, "syscalls");
3223 trace->syscalls.prog_array.sys_enter = trace__find_bpf_map_by_name(trace, "syscalls_sys_enter");
3224 trace->syscalls.prog_array.sys_exit = trace__find_bpf_map_by_name(trace, "syscalls_sys_exit");
3265 return trace->syscalls.unaugmented_prog;
3282 …return sc ? bpf_program__fd(sc->bpf_prog.sys_enter) : bpf_program__fd(trace->syscalls.unaugmented_…
3288 …return sc ? bpf_program__fd(sc->bpf_prog.sys_exit) : bpf_program__fd(trace->syscalls.unaugmented_p…
3312 int fd = bpf_map__fd(trace->syscalls.map);
3337 int fd = bpf_map__fd(trace->syscalls.map);
3343 for (key = 0; key < trace->sctbl->syscalls.nr_entries; ++key) {
3381 for (id = 0; id < trace->sctbl->syscalls.nr_entries; ++id) {
3387 pair->bpf_prog.sys_enter == trace->syscalls.unaugmented_prog)
3440 if (pair_prog == trace->syscalls.unaugmented_prog)
3455 int map_enter_fd = bpf_map__fd(trace->syscalls.prog_array.sys_enter),
3456 map_exit_fd = bpf_map__fd(trace->syscalls.prog_array.sys_exit);
3459 for (key = 0; key < trace->sctbl->syscalls.nr_entries; ++key) {
3506 for (key = 0; key < trace->sctbl->syscalls.nr_entries; ++key) {
3518 if (sc->bpf_prog.sys_enter != trace->syscalls.unaugmented_prog)
3549 evlist__remove(trace->evlist, trace->syscalls.events.augmented);
3550 evsel__delete(trace->syscalls.events.augmented);
3551 trace->syscalls.events.augmented = NULL;
3610 if (evsel == trace->syscalls.events.augmented ||
3622 if (trace->syscalls.map)
3624 if (trace->syscalls.events.sys_enter)
3998 if (trace->syscalls.map)
4001 if (trace->syscalls.prog_array.sys_enter)
4009 if (trace->syscalls.events.sys_exit) {
4011 trace->syscalls.events.sys_exit->filter);
4333 sc = &trace->syscalls.table[syscall_stats_entry->syscall];
4908 trace.syscalls.events.augmented = evsel;
4960 …trace.syscalls.unaugmented_prog = trace__find_bpf_program_by_title(&trace, "!raw_syscalls:unaugmen…
5031 if (trace.syscalls.events.augmented) {
5040 if (trace.syscalls.events.augmented->priv == NULL &&
5042 struct evsel *augmented = trace.syscalls.events.augmented;