root@x1:/# man strace 2> /dev/null | grep always-show-pid -A1 --always-show-pid Show PID prefix also for the process started by strace. Implied when -f and -o are both specified. root@x1:/# strace --always-show-pid -s10000 -e ioctl,perf_event_open perf trace --max-events=5 |& grep -E 'PERF_TYPE_TRACEPOINT|SET_FILTER'142032 perf_event_open({type=PERF_TYPE_TRACEPOINT, size=0x88 /* PERF_ATTR_SIZE_??? */, config=365, sample_period=0, sample_type=0, read_format=0, precise_ip=0 /* arbitrary skid */, ...}, -1, 0, -1, PERF_FLAG_FD_CLOEXEC) = 23 142032 perf_event_open({type=PERF_TYPE_TRACEPOINT, size=0x88 /* PERF_ATTR_SIZE_??? */, config=364, sample_period=0, sample_type=0, read_format=0, precise_ip=0 /* arbitrary skid */, ...}, -1, 0, -1, PERF_FLAG_FD_CLOEXEC) = 25 142032 perf_event_open({type=PERF_TYPE_TRACEPOINT, size=0x88 /* PERF_ATTR_SIZE_??? */, config=365, sample_period=1, sample_type=PERF_SAMPLE_IP|PERF_SAMPLE_TID|PERF_SAMPLE_TIME|PERF_SAMPLE_ID|PERF_SAMPLE_CPU|PERF_SAMPLE_PERIOD|PERF_SAMPLE_RAW, read_format=PERF_FORMAT_ID|PERF_FORMAT_LOST, disabled=1, inherit=1, mmap=1, comm=1, task=1, precise_ip=0 /* arbitrary skid */, sample_id_all=1, exclude_guest=1, mmap2=1, comm_exec=1, ksymbol=1, bpf_event=1, ...}, -1, 0, -1, PERF_FLAG_FD_CLOEXEC) = 168 142032 perf_event_open({type=PERF_TYPE_TRACEPOINT, size=0x88 /* PERF_ATTR_SIZE_??? */, config=365, sample_period=1, sample_type=PERF_SAMPLE_IP|PERF_SAMPLE_TID|PERF_SAMPLE_TIME|PERF_SAMPLE_ID|PERF_SAMPLE_CPU|PERF_SAMPLE_PERIOD|PERF_SAMPLE_RAW, read_format=PERF_FORMAT_ID|PERF_FORMAT_LOST, disabled=1, inherit=1, mmap=1, comm=1, task=1, precise_ip=0 /* arbitrary skid */, sample_id_all=1, exclude_guest=1, mmap2=1, comm_exec=1, ksymbol=1, bpf_event=1, ...}, -1, 1, -1, PERF_FLAG_FD_CLOEXEC) = 169 142032 perf_event_open({type=PERF_TYPE_TRACEPOINT, size=0x88 /* PERF_ATTR_SIZE_??? */, config=365, sample_period=1, sample_type=PERF_SAMPLE_IP|PERF_SAMPLE_TID|PERF_SAMPLE_TIME|PERF_SAMPLE_ID|PERF_SAMPLE_CPU|PERF_SAMPLE_PERIOD|PERF_SAMPLE_RAW, read_format=PERF_FORMAT_ID|PERF_FORMAT_LOST, disabled=1, inherit=1, mmap=1, comm=1, task=1, precise_ip=0 /* arbitrary skid */, sample_id_all=1, exclude_guest=1, mmap2=1, comm_exec=1, ksymbol=1, bpf_event=1, ...}, -1, 2, -1, PERF_FLAG_FD_CLOEXEC) = 170 142032 perf_event_open({type=PERF_TYPE_TRACEPOINT, size=0x88 /* PERF_ATTR_SIZE_??? */, config=365, sample_period=1, sample_type=PERF_SAMPLE_IP|PERF_SAMPLE_TID|PERF_SAMPLE_TIME|PERF_SAMPLE_ID|PERF_SAMPLE_CPU|PERF_SAMPLE_PERIOD|PERF_SAMPLE_RAW, read_format=PERF_FORMAT_ID|PERF_FORMAT_LOST, disabled=1, inherit=1, mmap=1, comm=1, task=1, precise_ip=0 /* arbitrary skid */, sample_id_all=1, exclude_guest=1, mmap2=1, comm_exec=1, ksymbol=1, bpf_event=1, ...}, -1, 3, -1, PERF_FLAG_FD_CLOEXEC) = 171 142032 perf_event_open({type=PERF_TYPE_TRACEPOINT, size=0x88 /* PERF_ATTR_SIZE_??? */, config=365, sample_period=1, sample_type=PERF_SAMPLE_IP|PERF_SAMPLE_TID|PERF_SAMPLE_TIME|PERF_SAMPLE_ID|PERF_SAMPLE_CPU|PERF_SAMPLE_PERIOD|PERF_SAMPLE_RAW, read_format=PERF_FORMAT_ID|PERF_FORMAT_LOST, disabled=1, inherit=1, mmap=1, comm=1, task=1, precise_ip=0 /* arbitrary skid */, sample_id_all=1, exclude_guest=1, mmap2=1, comm_exec=1, ksymbol=1, bpf_event=1, ...}, -1, 4, -1, PERF_FLAG_FD_CLOEXEC) = 172 142032 perf_event_open({type=PERF_TYPE_TRACEPOINT, size=0x88 /* PERF_ATTR_SIZE_??? */, config=365, sample_period=1, sample_type=PERF_SAMPLE_IP|PERF_SAMPLE_TID|PERF_SAMPLE_TIME|PERF_SAMPLE_ID|PERF_SAMPLE_CPU|PERF_SAMPLE_PERIOD|PERF_SAMPLE_RAW, read_format=PERF_FORMAT_ID|PERF_FORMAT_LOST, disabled=1, inherit=1, mmap=1, comm=1, task=1, precise_ip=0 /* arbitrary skid */, sample_id_all=1, exclude_guest=1, mmap2=1, comm_exec=1, ksymbol=1, bpf_event=1, ...}, -1, 5, -1, PERF_FLAG_FD_CLOEXEC) = 173 142032 perf_event_open({type=PERF_TYPE_TRACEPOINT, size=0x88 /* PERF_ATTR_SIZE_??? */, config=365, sample_period=1, sample_type=PERF_SAMPLE_IP|PERF_SAMPLE_TID|PERF_SAMPLE_TIME|PERF_SAMPLE_ID|PERF_SAMPLE_CPU|PERF_SAMPLE_PERIOD|PERF_SAMPLE_RAW, read_format=PERF_FORMAT_ID|PERF_FORMAT_LOST, disabled=1, inherit=1, mmap=1, comm=1, task=1, precise_ip=0 /* arbitrary skid */, sample_id_all=1, exclude_guest=1, mmap2=1, comm_exec=1, ksymbol=1, bpf_event=1, ...}, -1, 6, -1, PERF_FLAG_FD_CLOEXEC) = 174 142032 perf_event_open({type=PERF_TYPE_TRACEPOINT, size=0x88 /* PERF_ATTR_SIZE_??? */, config=365, sample_period=1, sample_type=PERF_SAMPLE_IP|PERF_SAMPLE_TID|PERF_SAMPLE_TIME|PERF_SAMPLE_ID|PERF_SAMPLE_CPU|PERF_SAMPLE_PERIOD|PERF_SAMPLE_RAW, read_format=PERF_FORMAT_ID|PERF_FORMAT_LOST, disabled=1, inherit=1, mmap=1, comm=1, task=1, precise_ip=0 /* arbitrary skid */, sample_id_all=1, exclude_guest=1, mmap2=1, comm_exec=1, ksymbol=1, bpf_event=1, ...}, -1, 7, -1, PERF_FLAG_FD_CLOEXEC) = 175 142032 perf_event_open({type=PERF_TYPE_TRACEPOINT, size=0x88 /* PERF_ATTR_SIZE_??? */, config=365, sample_period=1, sample_type=PERF_SAMPLE_IP|PERF_SAMPLE_TID|PERF_SAMPLE_TIME|PERF_SAMPLE_ID|PERF_SAMPLE_CPU|PERF_SAMPLE_PERIOD|PERF_SAMPLE_RAW, read_format=PERF_FORMAT_ID|PERF_FORMAT_LOST, disabled=1, inherit=1, mmap=1, comm=1, task=1, precise_ip=0 /* arbitrary skid */, sample_id_all=1, exclude_guest=1, mmap2=1, comm_exec=1, ksymbol=1, bpf_event=1, ...}, -1, 8, -1, PERF_FLAG_FD_CLOEXEC) = 176 142032 perf_event_open({type=PERF_TYPE_TRACEPOINT, size=0x88 /* PERF_ATTR_SIZE_??? */, config=365, sample_period=1, sample_type=PERF_SAMPLE_IP|PERF_SAMPLE_TID|PERF_SAMPLE_TIME|PERF_SAMPLE_ID|PERF_SAMPLE_CPU|PERF_SAMPLE_PERIOD|PERF_SAMPLE_RAW, read_format=PERF_FORMAT_ID|PERF_FORMAT_LOST, disabled=1, inherit=1, mmap=1, comm=1, task=1, precise_ip=0 /* arbitrary skid */, sample_id_all=1, exclude_guest=1, mmap2=1, comm_exec=1, ksymbol=1, bpf_event=1, ...}, -1, 9, -1, PERF_FLAG_FD_CLOEXEC) = 177 142032 perf_event_open({type=PERF_TYPE_TRACEPOINT, size=0x88 /* PERF_ATTR_SIZE_??? */, config=365, sample_period=1, sample_type=PERF_SAMPLE_IP|PERF_SAMPLE_TID|PERF_SAMPLE_TIME|PERF_SAMPLE_ID|PERF_SAMPLE_CPU|PERF_SAMPLE_PERIOD|PERF_SAMPLE_RAW, read_format=PERF_FORMAT_ID|PERF_FORMAT_LOST, disabled=1, inherit=1, mmap=1, comm=1, task=1, precise_ip=0 /* arbitrary skid */, sample_id_all=1, exclude_guest=1, mmap2=1, comm_exec=1, ksymbol=1, bpf_event=1, ...}, -1, 10, -1, PERF_FLAG_FD_CLOEXEC) = 178 142032 perf_event_open({type=PERF_TYPE_TRACEPOINT, size=0x88 /* PERF_ATTR_SIZE_??? */, config=365, sample_period=1, sample_type=PERF_SAMPLE_IP|PERF_SAMPLE_TID|PERF_SAMPLE_TIME|PERF_SAMPLE_ID|PERF_SAMPLE_CPU|PERF_SAMPLE_PERIOD|PERF_SAMPLE_RAW, read_format=PERF_FORMAT_ID|PERF_FORMAT_LOST, disabled=1, inherit=1, mmap=1, comm=1, task=1, precise_ip=0 /* arbitrary skid */, sample_id_all=1, exclude_guest=1, mmap2=1, comm_exec=1, ksymbol=1, bpf_event=1, ...}, -1, 11, -1, PERF_FLAG_FD_CLOEXEC) = 179 142032 perf_event_open({type=PERF_TYPE_TRACEPOINT, size=0x88 /* PERF_ATTR_SIZE_??? */, config=364, sample_period=1, sample_type=PERF_SAMPLE_IP|PERF_SAMPLE_TID|PERF_SAMPLE_TIME|PERF_SAMPLE_ID|PERF_SAMPLE_CPU|PERF_SAMPLE_PERIOD|PERF_SAMPLE_RAW, read_format=PERF_FORMAT_ID|PERF_FORMAT_LOST, disabled=1, inherit=1, precise_ip=0 /* arbitrary skid */, sample_id_all=1, exclude_guest=1, ...}, -1, 0, -1, PERF_FLAG_FD_CLOEXEC) = 180 142032 perf_event_open({type=PERF_TYPE_TRACEPOINT, size=0x88 /* PERF_ATTR_SIZE_??? */, config=364, sample_period=1, sample_type=PERF_SAMPLE_IP|PERF_SAMPLE_TID|PERF_SAMPLE_TIME|PERF_SAMPLE_ID|PERF_SAMPLE_CPU|PERF_SAMPLE_PERIOD|PERF_SAMPLE_RAW, read_format=PERF_FORMAT_ID|PERF_FORMAT_LOST, disabled=1, inherit=1, precise_ip=0 /* arbitrary skid */, sample_id_all=1, exclude_guest=1, ...}, -1, 1, -1, PERF_FLAG_FD_CLOEXEC) = 181 142032 perf_event_open({type=PERF_TYPE_TRACEPOINT, size=0x88 /* PERF_ATTR_SIZE_??? */, config=364, sample_period=1, sample_type=PERF_SAMPLE_IP|PERF_SAMPLE_TID|PERF_SAMPLE_TIME|PERF_SAMPLE_ID|PERF_SAMPLE_CPU|PERF_SAMPLE_PERIOD|PERF_SAMPLE_RAW, read_format=PERF_FORMAT_ID|PERF_FORMAT_LOST, disabled=1, inherit=1, precise_ip=0 /* arbitrary skid */, sample_id_all=1, exclude_guest=1, ...}, -1, 2, -1, PERF_FLAG_FD_CLOEXEC) = 182 142032 perf_event_open({type=PERF_TYPE_TRACEPOINT, size=0x88 /* PERF_ATTR_SIZE_??? */, config=364, sample_period=1, sample_type=PERF_SAMPLE_IP|PERF_SAMPLE_TID|PERF_SAMPLE_TIME|PERF_SAMPLE_ID|PERF_SAMPLE_CPU|PERF_SAMPLE_PERIOD|PERF_SAMPLE_RAW, read_format=PERF_FORMAT_ID|PERF_FORMAT_LOST, disabled=1, inherit=1, precise_ip=0 /* arbitrary skid */, sample_id_all=1, exclude_guest=1, ...}, -1, 3, -1, PERF_FLAG_FD_CLOEXEC) = 183 142032 perf_event_open({type=PERF_TYPE_TRACEPOINT, size=0x88 /* PERF_ATTR_SIZE_??? */, config=364, sample_period=1, sample_type=PERF_SAMPLE_IP|PERF_SAMPLE_TID|PERF_SAMPLE_TIME|PERF_SAMPLE_ID|PERF_SAMPLE_CPU|PERF_SAMPLE_PERIOD|PERF_SAMPLE_RAW, read_format=PERF_FORMAT_ID|PERF_FORMAT_LOST, disabled=1, inherit=1, precise_ip=0 /* arbitrary skid */, sample_id_all=1, exclude_guest=1, ...}, -1, 4, -1, PERF_FLAG_FD_CLOEXEC) = 184 142032 perf_event_open({type=PERF_TYPE_TRACEPOINT, size=0x88 /* PERF_ATTR_SIZE_??? */, config=364, sample_period=1, sample_type=PERF_SAMPLE_IP|PERF_SAMPLE_TID|PERF_SAMPLE_TIME|PERF_SAMPLE_ID|PERF_SAMPLE_CPU|PERF_SAMPLE_PERIOD|PERF_SAMPLE_RAW, read_format=PERF_FORMAT_ID|PERF_FORMAT_LOST, disabled=1, inherit=1, precise_ip=0 /* arbitrary skid */, sample_id_all=1, exclude_guest=1, ...}, -1, 5, -1, PERF_FLAG_FD_CLOEXEC) = 185 142032 perf_event_open({type=PERF_TYPE_TRACEPOINT, size=0x88 /* PERF_ATTR_SIZE_??? */, config=364, sample_period=1, sample_type=PERF_SAMPLE_IP|PERF_SAMPLE_TID|PERF_SAMPLE_TIME|PERF_SAMPLE_ID|PERF_SAMPLE_CPU|PERF_SAMPLE_PERIOD|PERF_SAMPLE_RAW, read_format=PERF_FORMAT_ID|PERF_FORMAT_LOST, disabled=1, inherit=1, precise_ip=0 /* arbitrary skid */, sample_id_all=1, exclude_guest=1, ...}, -1, 6, -1, PERF_FLAG_FD_CLOEXEC) = 186 142032 perf_event_open({type=PERF_TYPE_TRACEPOINT, size=0x88 /* PERF_ATTR_SIZE_??? */, config=364, sample_period=1, sample_type=PERF_SAMPLE_IP|PERF_SAMPLE_TID|PERF_SAMPLE_TIME|PERF_SAMPLE_ID|PERF_SAMPLE_CPU|PERF_SAMPLE_PERIOD|PERF_SAMPLE_RAW, read_format=PERF_FORMAT_ID|PERF_FORMAT_LOST, disabled=1, inherit=1, precise_ip=0 /* arbitrary skid */, sample_id_all=1, exclude_guest=1, ...}, -1, 7, -1, PERF_FLAG_FD_CLOEXEC) = 187 142032 perf_event_open({type=PERF_TYPE_TRACEPOINT, size=0x88 /* PERF_ATTR_SIZE_??? */, config=364, sample_period=1, sample_type=PERF_SAMPLE_IP|PERF_SAMPLE_TID|PERF_SAMPLE_TIME|PERF_SAMPLE_ID|PERF_SAMPLE_CPU|PERF_SAMPLE_PERIOD|PERF_SAMPLE_RAW, read_format=PERF_FORMAT_ID|PERF_FORMAT_LOST, disabled=1, inherit=1, precise_ip=0 /* arbitrary skid */, sample_id_all=1, exclude_guest=1, ...}, -1, 8, -1, PERF_FLAG_FD_CLOEXEC) = 188 142032 perf_event_open({type=PERF_TYPE_TRACEPOINT, size=0x88 /* PERF_ATTR_SIZE_??? */, config=364, sample_period=1, sample_type=PERF_SAMPLE_IP|PERF_SAMPLE_TID|PERF_SAMPLE_TIME|PERF_SAMPLE_ID|PERF_SAMPLE_CPU|PERF_SAMPLE_PERIOD|PERF_SAMPLE_RAW, read_format=PERF_FORMAT_ID|PERF_FORMAT_LOST, disabled=1, inherit=1, precise_ip=0 /* arbitrary skid */, sample_id_all=1, exclude_guest=1, ...}, -1, 9, -1, PERF_FLAG_FD_CLOEXEC) = 189 142032 perf_event_open({type=PERF_TYPE_TRACEPOINT, size=0x88 /* PERF_ATTR_SIZE_??? */, config=364, sample_period=1, sample_type=PERF_SAMPLE_IP|PERF_SAMPLE_TID|PERF_SAMPLE_TIME|PERF_SAMPLE_ID|PERF_SAMPLE_CPU|PERF_SAMPLE_PERIOD|PERF_SAMPLE_RAW, read_format=PERF_FORMAT_ID|PERF_FORMAT_LOST, disabled=1, inherit=1, precise_ip=0 /* arbitrary skid */, sample_id_all=1, exclude_guest=1, ...}, -1, 10, -1, PERF_FLAG_FD_CLOEXEC) = 190 142032 perf_event_open({type=PERF_TYPE_TRACEPOINT, size=0x88 /* PERF_ATTR_SIZE_??? */, config=364, sample_period=1, sample_type=PERF_SAMPLE_IP|PERF_SAMPLE_TID|PERF_SAMPLE_TIME|PERF_SAMPLE_ID|PERF_SAMPLE_CPU|PERF_SAMPLE_PERIOD|PERF_SAMPLE_RAW, read_format=PERF_FORMAT_ID|PERF_FORMAT_LOST, disabled=1, inherit=1, precise_ip=0 /* arbitrary skid */, sample_id_all=1, exclude_guest=1, ...}, -1, 11, -1, PERF_FLAG_FD_CLOEXEC) = 191 142032 ioctl(168, PERF_EVENT_IOC_SET_FILTER, "common_pid != 142032 && common_pid != 3155") = 0 142032 ioctl(169, PERF_EVENT_IOC_SET_FILTER, "common_pid != 142032 && common_pid != 3155") = 0 142032 ioctl(170, PERF_EVENT_IOC_SET_FILTER, "common_pid != 142032 && common_pid != 3155") = 0 142032 ioctl(171, PERF_EVENT_IOC_SET_FILTER, "common_pid != 142032 && common_pid != 3155") = 0 142032 ioctl(172, PERF_EVENT_IOC_SET_FILTER, "common_pid != 142032 && common_pid != 3155") = 0 142032 ioctl(173, PERF_EVENT_IOC_SET_FILTER, "common_pid != 142032 && common_pid != 3155") = 0 142032 ioctl(174, PERF_EVENT_IOC_SET_FILTER, "common_pid != 142032 && common_pid != 3155") = 0 142032 ioctl(175, PERF_EVENT_IOC_SET_FILTER, "common_pid != 142032 && common_pid != 3155") = 0 142032 ioctl(176, PERF_EVENT_IOC_SET_FILTER, "common_pid != 142032 && common_pid != 3155") = 0 142032 ioctl(177, PERF_EVENT_IOC_SET_FILTER, "common_pid != 142032 && common_pid != 3155") = 0 142032 ioctl(178, PERF_EVENT_IOC_SET_FILTER, "common_pid != 142032 && common_pid != 3155") = 0 142032 ioctl(179, PERF_EVENT_IOC_SET_FILTER, "common_pid != 142032 && common_pid != 3155") = 0 142032 ioctl(180, PERF_EVENT_IOC_SET_FILTER, "common_pid != 142032 && common_pid != 3155") = 0 142032 ioctl(181, PERF_EVENT_IOC_SET_FILTER, "common_pid != 142032 && common_pid != 3155") = 0 142032 ioctl(182, PERF_EVENT_IOC_SET_FILTER, "common_pid != 142032 && common_pid != 3155") = 0 142032 ioctl(183, PERF_EVENT_IOC_SET_FILTER, "common_pid != 142032 && common_pid != 3155") = 0 142032 ioctl(184, PERF_EVENT_IOC_SET_FILTER, "common_pid != 142032 && common_pid != 3155") = 0 142032 ioctl(185, PERF_EVENT_IOC_SET_FILTER, "common_pid != 142032 && common_pid != 3155") = 0 142032 ioctl(186, PERF_EVENT_IOC_SET_FILTER, "common_pid != 142032 && common_pid != 3155") = 0 142032 ioctl(187, PERF_EVENT_IOC_SET_FILTER, "common_pid != 142032 && common_pid != 3155") = 0 142032 ioctl(188, PERF_EVENT_IOC_SET_FILTER, "common_pid != 142032 && common_pid != 3155") = 0 142032 ioctl(189, PERF_EVENT_IOC_SET_FILTER, "common_pid != 142032 && common_pid != 3155") = 0 142032 ioctl(190, PERF_EVENT_IOC_SET_FILTER, "common_pid != 142032 && common_pid != 3155") = 0 142032 ioctl(191, PERF_EVENT_IOC_SET_FILTER, "common_pid != 142032 && common_pid != 3155") = 0 root@x1:/#