[lkml]   [2016]   [Jan]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[PATCH 0/6] perf core: Read from overwrite ring buffer
This patchset introduces two methods to support reading from overwrite.

1) Tailsize: write the size of an event at the end of it
2) Backward writing: write the ring buffer from the end of it to the

Patch 1/6 introduces a new ioctl operation to pause and resume ring
buffer since reading from a overwrite ring buffer is not reliable.

To reduce overhead as much as possible, force setting overflow_handler
and create specific function for backward writing and onward writing.

Cc: He Kuang <>
Cc: Alexei Starovoitov <>
Cc: Arnaldo Carvalho de Melo <>
Cc: Brendan Gregg <>
Cc: Jiri Olsa <>
Cc: Masami Hiramatsu <>
Cc: Namhyung Kim <>
Cc: Peter Zijlstra <>
Cc: Zefan Li <>

Wang Nan (6):
perf core: Introduce new ioctl options to pause and resume ring buffer
perf core: Set event's default overflow_handler
perf core: Prepare writing into ring buffer from end
perf core: Add backwork attribute to perf event
perf core: Reduce perf event output overhead by setting overwrite
perf/core: Put size of a sample at the end of it by

include/linux/perf_event.h | 39 +++++++---
include/uapi/linux/perf_event.h | 7 +-
kernel/events/core.c | 155 +++++++++++++++++++++++++++++++---------
kernel/events/internal.h | 11 +++
kernel/events/ring_buffer.c | 65 ++++++++++++++---
5 files changed, 223 insertions(+), 54 deletions(-)


 \ /
  Last update: 2016-01-19 12:21    [W:0.171 / U:1.724 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site