Home
last modified time | relevance | path

Searched refs:comm_fd (Results 1 - 3 of 3) sorted by relevance

/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A 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()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Draw_tp_test_run.c13 int comm_fd = -1, err, nr_online, i, prog_fd; in test_raw_tp_test_run() local
38 comm_fd = open("/proc/self/comm", O_WRONLY|O_TRUNC); in test_raw_tp_test_run()
39 if (CHECK(comm_fd < 0, "open /proc/self/comm", "err %d\n", errno)) in test_raw_tp_test_run()
42 err = write(comm_fd, buf, sizeof(buf)); in test_raw_tp_test_run()
93 close(comm_fd); in test_raw_tp_test_run()
/kernel/linux/linux-6.6/tools/tracing/rtla/src/
H A Dutils.c270 int comm_fd, retval; in procfs_is_workload_pid() local
289 comm_fd = open(buffer, O_RDONLY); in procfs_is_workload_pid()
290 if (comm_fd < 0) in procfs_is_workload_pid()
294 retval = read(comm_fd, buffer, MAX_PATH); in procfs_is_workload_pid()
296 close(comm_fd); in procfs_is_workload_pid()

Completed in 3 milliseconds