1 static size_t syscall_arg__scnprintf_pid(char *bf, size_t size, struct syscall_arg *arg)
4 struct trace *trace = arg->trace;
5 size_t printed = scnprintf(bf, size, "%d", pid);
6 struct thread *thread = machine__findnew_thread(trace->host, pid, pid);
10 thread__set_comm_from_proc(thread);
13 printed += scnprintf(bf + printed, size - printed,
14 " (%s)", thread__comm_str(thread));
21 #define SCA_PID syscall_arg__scnprintf_pid