Searched refs:comm_fd (Results 1 – 2 of 2) sorted by relevance
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/ |
A 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.3-rc2/tools/tracing/rtla/src/ |
A D | utils.c | 281 int comm_fd, retval; in procfs_is_workload_pid() local 300 comm_fd = open(buffer, O_RDONLY); in procfs_is_workload_pid() 301 if (comm_fd < 0) in procfs_is_workload_pid() 305 retval = read(comm_fd, buffer, MAX_PATH); in procfs_is_workload_pid() 307 close(comm_fd); in procfs_is_workload_pid()
|
Completed in 6 milliseconds