Lines Matching refs:syscalls

138 	} syscalls;  member
1801 if (trace->syscalls.table == NULL) { in trace__read_syscall_info()
1802 trace->syscalls.table = calloc(trace->sctbl->syscalls.max_id + 1, sizeof(*sc)); in trace__read_syscall_info()
1803 if (trace->syscalls.table == NULL) in trace__read_syscall_info()
1807 if (id > trace->sctbl->syscalls.max_id || (id == 0 && trace->syscalls.table == NULL)) { in trace__read_syscall_info()
1809 struct syscall *table = realloc(trace->syscalls.table, (id + 1) * sizeof(*sc)); in trace__read_syscall_info()
1815 if (trace->syscalls.table == NULL) in trace__read_syscall_info()
1818 …memset(table + trace->sctbl->syscalls.max_id + 1, 0, (id - trace->sctbl->syscalls.max_id) * sizeof… in trace__read_syscall_info()
1820 trace->syscalls.table = table; in trace__read_syscall_info()
1821 trace->sctbl->syscalls.max_id = id; in trace__read_syscall_info()
1824 sc = trace->syscalls.table + id; in trace__read_syscall_info()
2159 if (id > trace->sctbl->syscalls.max_id) {
2161 if (id >= trace->sctbl->syscalls.max_id) {
2173 if ((trace->syscalls.table == NULL || trace->syscalls.table[id].name == NULL) &&
2177 if (trace->syscalls.table && trace->syscalls.table[id].nonexistent)
2180 return &trace->syscalls.table[id];
2186 if (id <= trace->sctbl->syscalls.max_id && trace->syscalls.table[id].name != NULL)
2187 fprintf(trace->output, "(%s)", trace->syscalls.table[id].name);
2376 if (evsel != trace->syscalls.events.sys_enter)
2846 if (evsel == trace->syscalls.events.bpf_output) {
3241 trace->syscalls.events.sys_enter = sys_enter;
3242 trace->syscalls.events.sys_exit = sys_exit;
3266 if (!evsel__append_tp_filter(trace->syscalls.events.sys_enter, filter)) {
3267 sys_exit = trace->syscalls.events.sys_exit;
3371 for (id = 0; id < trace->sctbl->syscalls.nr_entries; ++id) {
3462 for (key = 0; key < trace->sctbl->syscalls.nr_entries; ++key) {
3509 for (key = 0; key < trace->sctbl->syscalls.nr_entries; ++key) {
3550 if (trace->syscalls.events.sys_enter)
3911 if (trace->syscalls.events.bpf_output) {
3918 perf_cpu_map__for_each_cpu(cpu, i, trace->syscalls.events.bpf_output->core.cpus) {
3921 xyarray__entry(trace->syscalls.events.bpf_output->core.fd,
3944 if (trace->syscalls.events.sys_exit) {
3946 trace->syscalls.events.sys_exit->filter);
4165 trace->syscalls.events.sys_enter = evsel;
4178 trace->syscalls.events.sys_exit = evsel;
4263 sc = &trace->syscalls.table[syscall_stats_entry->syscall];
4657 if (trace->syscalls.table) {
4658 for (i = 0; i <= trace->sctbl->syscalls.max_id; i++)
4659 syscall__exit(&trace->syscalls.table[i]);
4660 zfree(&trace->syscalls.table);
4904 trace.syscalls.events.bpf_output = evlist__last(trace.evlist);
4905 assert(!strcmp(evsel__name(trace.syscalls.events.bpf_output), "__augmented_syscalls__"));
4960 if (trace.syscalls.events.bpf_output) {
4969 if (trace.syscalls.events.bpf_output->priv == NULL &&
4971 struct evsel *augmented = trace.syscalls.events.bpf_output;