Home
last modified time | relevance | path

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

/tools/perf/
Dbuiltin-ftrace.c281 int trace_fd; in __cmd_ftrace() local
351 trace_fd = open(trace_file, O_RDONLY); in __cmd_ftrace()
355 if (trace_fd < 0) { in __cmd_ftrace()
360 fcntl(trace_fd, F_SETFL, O_NONBLOCK); in __cmd_ftrace()
361 pollfd.fd = trace_fd; in __cmd_ftrace()
375 int n = read(trace_fd, buf, sizeof(buf)); in __cmd_ftrace()
387 int n = read(trace_fd, buf, sizeof(buf)); in __cmd_ftrace()
395 close(trace_fd); in __cmd_ftrace()
Dbuiltin-record.c148 static int record__aio_write(struct aiocb *cblock, int trace_fd, in record__aio_write() argument
153 cblock->aio_fildes = trace_fd; in record__aio_write()
308 int trace_fd = rec->session->data->file.fd; in record__aio_push() local
323 ret = record__aio_write(&(map->aio.cblocks[idx]), trace_fd, aio.data, aio.size, *off); in record__aio_push()
342 static off_t record__aio_get_pos(int trace_fd) in record__aio_get_pos() argument
344 return lseek(trace_fd, 0, SEEK_CUR); in record__aio_get_pos()
347 static void record__aio_set_pos(int trace_fd, off_t pos) in record__aio_set_pos() argument
349 lseek(trace_fd, pos, SEEK_SET); in record__aio_set_pos()
398 static off_t record__aio_get_pos(int trace_fd __maybe_unused) in record__aio_get_pos()
403 static void record__aio_set_pos(int trace_fd __maybe_unused, off_t pos __maybe_unused) in record__aio_set_pos()
[all …]