Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965409AbbKEE1X (ORCPT ); Wed, 4 Nov 2015 23:27:23 -0500 Received: from szxga03-in.huawei.com ([119.145.14.66]:54908 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932655AbbKEE1W (ORCPT ); Wed, 4 Nov 2015 23:27:22 -0500 From: Wang Nan To: , CC: , , , Wang Nan Subject: [PATCH 0/5] perf tools: improve BPF related error delivering and testing Date: Thu, 5 Nov 2015 04:26:57 +0000 Message-ID: <1446697622-4072-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.0A020202.563ADAA6.00E7,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: e150da48c3cc0323296aeff716872fc0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1885 Lines: 43 This patchset is based on Arnaldo's perf/core. Patch 1/5 - 2/5 improve BPF related error delivering and reporting. Libbpf and bpf-loader define their own error code sets so can deliever precise reason of failure. Corresponding strerror functions are improved accordingly. Patch 3/5 - 5/5 improve 'perf test LLVM' and 'perf test BPF'. Code structure improved so new test case can be introduced easier. Wang Nan (5): bpf tools: Improve libbpf error reporting perf tools: Improve BPF related error messages output perf test: Enforce LLVM test: update basic BPF test program perf test: Enforce LLVM test: add kbuild test perf test: Add 'perf test BPF' tools/lib/bpf/libbpf.c | 149 ++++++++++++++------- tools/lib/bpf/libbpf.h | 12 ++ tools/perf/tests/Build | 17 ++- tools/perf/tests/bpf-script-example.c | 4 + tools/perf/tests/bpf-script-test-kbuild.c | 21 +++ tools/perf/tests/bpf.c | 209 ++++++++++++++++++++++++++++++ tools/perf/tests/builtin-test.c | 4 + tools/perf/tests/llvm.c | 137 +++++++++++++++----- tools/perf/tests/llvm.h | 18 +++ tools/perf/tests/tests.h | 1 + tools/perf/util/bpf-loader.c | 130 ++++++++++++++++--- tools/perf/util/bpf-loader.h | 28 ++++ tools/perf/util/parse-events.c | 11 +- 13 files changed, 640 insertions(+), 101 deletions(-) create mode 100644 tools/perf/tests/bpf-script-test-kbuild.c create mode 100644 tools/perf/tests/bpf.c create mode 100644 tools/perf/tests/llvm.h -- 1.8.3.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/