Home
last modified time | relevance | path

Searched refs:comm_fd (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/
Draw_tp_test_run.c10 int comm_fd = -1, err, nr_online, i, prog_fd; in test_raw_tp_test_run() local
35 comm_fd = open("/proc/self/comm", O_WRONLY|O_TRUNC); in test_raw_tp_test_run()
36 if (!ASSERT_GE(comm_fd, 0, "open /proc/self/comm")) in test_raw_tp_test_run()
39 err = write(comm_fd, buf, sizeof(buf)); in test_raw_tp_test_run()
83 close(comm_fd); in test_raw_tp_test_run()
/Linux-v6.6/tools/tracing/rtla/src/
Dutils.c276 int comm_fd, retval; in procfs_is_workload_pid() local
295 comm_fd = open(buffer, O_RDONLY); in procfs_is_workload_pid()
296 if (comm_fd < 0) in procfs_is_workload_pid()
300 retval = read(comm_fd, buffer, MAX_PATH); in procfs_is_workload_pid()
302 close(comm_fd); in procfs_is_workload_pid()