Searched refs:comm_fd (Results 1 – 2 of 2) sorted by relevance
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | raw_tp_test_run.c | 10 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-6.12.1/tools/tracing/rtla/src/ |
D | utils.c | 270 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()
|