Searched refs:trace_fd (Results 1 – 3 of 3) sorted by relevance
/Linux-v4.19/tools/perf/ |
D | builtin-ftrace.c | 279 int trace_fd; in __cmd_ftrace() local 343 trace_fd = open(trace_file, O_RDONLY); in __cmd_ftrace() 347 if (trace_fd < 0) { in __cmd_ftrace() 352 fcntl(trace_fd, F_SETFL, O_NONBLOCK); in __cmd_ftrace() 353 pollfd.fd = trace_fd; in __cmd_ftrace() 367 int n = read(trace_fd, buf, sizeof(buf)); in __cmd_ftrace() 379 int n = read(trace_fd, buf, sizeof(buf)); in __cmd_ftrace() 387 close(trace_fd); in __cmd_ftrace()
|
/Linux-v4.19/samples/bpf/ |
D | bpf_load.c | 655 int trace_fd; in read_trace_pipe() local 657 trace_fd = open(DEBUGFS "trace_pipe", O_RDONLY, 0); in read_trace_pipe() 658 if (trace_fd < 0) in read_trace_pipe() 665 sz = read(trace_fd, buf, sizeof(buf)); in read_trace_pipe()
|
/Linux-v4.19/Documentation/trace/ |
D | ftrace.rst | 501 if (trace_fd < 0) 508 write(trace_fd, buf, n); 513 trace_fd = open("trace_marker", WR_ONLY); 2149 int trace_fd; 2153 trace_fd = open(tracing_file("tracing_on"), O_WRONLY); 2156 write(trace_fd, "0", 1);
|