Lines Matching refs:pid
125 static int write_comm(int fd, pid_t pid, pid_t tid, const char *comm_str)
134 comm.pid = pid;
146 static int write_mmap(int fd, pid_t pid, pid_t tid, u64 start, u64 len, u64 pgoff,
158 mmap->pid = pid;
173 static int write_sample(struct test_data *td, u64 sample_type, u64 id, pid_t pid, pid_t tid)
183 .pid = pid,
323 pid_t pid = 12345;
370 if (write_comm(td->fd, pid, tid, "test-prog"))
373 if (write_mmap(td->fd, pid, tid, MAP_START, 0x10000, 0, td->prog_file_name))
376 if (write_sample(td, sample_type, id, pid, tid) != TEST_OK)
409 int pid = getpid();
418 snprintf(td.perf_data_file_name, PATH_MAX, "/tmp/dlfilter-test-%u-perf-data", pid);
419 snprintf(td.c_file_name, PATH_MAX, "/tmp/dlfilter-test-%u-prog.c", pid);
420 snprintf(td.prog_file_name, PATH_MAX, "/tmp/dlfilter-test-%u-prog", pid);