Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752824AbcD0CVt (ORCPT ); Tue, 26 Apr 2016 22:21:49 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:35300 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752529AbcD0CVH (ORCPT ); Tue, 26 Apr 2016 22:21:07 -0400 From: Wang Nan To: CC: , Wang Nan , "Arnaldo Carvalho de Melo" , Peter Zijlstra , Zefan Li , Subject: [PATCH v2 0/4] perf tools: Backward ring buffer support Date: Wed, 27 Apr 2016 02:19:19 +0000 Message-ID: <1461723563-67451-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.0A0B0206.572021BC.001A,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 594a07cdca569655e7582b88ca87b621 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1257 Lines: 31 Commit 9ecda41acb97 ("perf/core: Add ::write_backward attribute to perf event") introduces backward ring buffer. This 4 patches add basic support for reading from it, and add a new test case for it. v1 -> v2: Patch 1/5 in v1 has been collected by perf/core, so remove it; Change function names in patch 2/5 in v1 (1/4 in v2): __perf_evlist__mmap_read -> perf_mmap__read Wang Nan (4): perf tools: Extract perf_mmap__read() perf tools: Rename variable in perf_mmap__read() perf tools: Support reading from backward ring buffer perf tests: Add test to check backward ring buffer tools/perf/tests/Build | 1 + tools/perf/tests/backward-ring-buffer.c | 151 ++++++++++++++++++++++++++++++++ tools/perf/tests/builtin-test.c | 4 + tools/perf/tests/tests.h | 1 + tools/perf/util/evlist.c | 95 +++++++++++++++----- tools/perf/util/evlist.h | 4 + 6 files changed, 233 insertions(+), 23 deletions(-) create mode 100644 tools/perf/tests/backward-ring-buffer.c Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Peter Zijlstra Cc: Zefan Li Cc: pi3orama@163.com -- 1.8.3.4