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()
2155 if (id > trace->sctbl->syscalls.max_id) {
2157 if (id >= trace->sctbl->syscalls.max_id) {
2169 if ((trace->syscalls.table == NULL || trace->syscalls.table[id].name == NULL) &&
2173 if (trace->syscalls.table && trace->syscalls.table[id].nonexistent)
2176 return &trace->syscalls.table[id];
2182 if (id <= trace->sctbl->syscalls.max_id && trace->syscalls.table[id].name != NULL)
2183 fprintf(trace->output, "(%s)", trace->syscalls.table[id].name);
2372 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,
3941 if (trace->syscalls.events.sys_exit) {
3943 trace->syscalls.events.sys_exit->filter);
4162 trace->syscalls.events.sys_enter = evsel;
4175 trace->syscalls.events.sys_exit = evsel;
4260 sc = &trace->syscalls.table[syscall_stats_entry->syscall];
4654 if (trace->syscalls.table) {
4655 for (i = 0; i <= trace->sctbl->syscalls.max_id; i++)
4656 syscall__exit(&trace->syscalls.table[i]);
4657 zfree(&trace->syscalls.table);
4901 trace.syscalls.events.bpf_output = evlist__last(trace.evlist);
4902 assert(!strcmp(evsel__name(trace.syscalls.events.bpf_output), "__augmented_syscalls__"));
4957 if (trace.syscalls.events.bpf_output) {
4966 if (trace.syscalls.events.bpf_output->priv == NULL &&
4968 struct evsel *augmented = trace.syscalls.events.bpf_output;