Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752102AbcCGD5S (ORCPT ); Sun, 6 Mar 2016 22:57:18 -0500 Received: from szxga02-in.huawei.com ([119.145.14.65]:23459 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751341AbcCGD5J (ORCPT ); Sun, 6 Mar 2016 22:57:09 -0500 From: Wang Nan To: , CC: , Wang Nan , He Kuang , Alexei Starovoitov , "Arnaldo Carvalho de Melo" , Brendan Gregg , "Jiri Olsa" , Masami Hiramatsu , Namhyung Kim , Zefan Li , Subject: [RESEND PATCH 0/5] perf core: Support overwrite ring buffer Date: Mon, 7 Mar 2016 03:50:14 +0000 Message-ID: <1457322619-170254-1-git-send-email-wangnan0@huawei.com> X-Mailer: git-send-email 1.8.3.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.107.193.248] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090202.56DCFA8E.0009,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: ae753fc713046500d4a2e49633369425 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1595 Lines: 38 This patch set has been posted multiple times (with and without corresponding 'perf tool' patches), and doesn't receive further comment. I think it should be okay to merge them into mainline. There are many perf's improvement depend on it. However, Peter is not responsive after I fixed some problems he pointed out. Introduces 'write_backward' into perf_event_attr, allows kernel writing the ring buffer from the end of it. This feature allows extracting data from overwritable ring buffer. Wang Nan (5): 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 backward attribute to perf event perf core: Reduce perf event output overhead by new overflow handler include/linux/perf_event.h | 22 +++++++++++-- include/uapi/linux/perf_event.h | 4 ++- kernel/events/core.c | 73 +++++++++++++++++++++++++++++++++++------ kernel/events/internal.h | 11 +++++++ kernel/events/ring_buffer.c | 63 +++++++++++++++++++++++++++++++---- 5 files changed, 153 insertions(+), 20 deletions(-) Cc: He Kuang Cc: Alexei Starovoitov Cc: Arnaldo Carvalho de Melo Cc: Brendan Gregg Cc: Ingo Molnar Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Zefan Li Cc: pi3orama@163.com -- 1.8.3.4