Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1262886

[PATCH 0/5] perf tools: improve BPF related error delivering and testing

From Wang Nan <wangnan0@huawei.com>
Newsgroups linux.kernel
Subject [PATCH 0/5] perf tools: improve BPF related error delivering and testing
Date 2015-11-05 05:30 +0100
Message-ID <qrkls-1IA-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 0/5] perf tools: improve BPF related error delivering and testing Wang Nan <wangnan0@huawei.com> - 2015-11-05 05:30 +0100
  [PATCH 1/5] bpf tools: Improve libbpf error reporting Wang Nan <wangnan0@huawei.com> - 2015-11-05 05:30 +0100
    Re: [PATCH 1/5] bpf tools: Improve libbpf error reporting Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-11-05 16:30 +0100
      Re: [PATCH 1/5] bpf tools: Improve libbpf error reporting Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-11-05 16:40 +0100
        Re: [PATCH 1/5] bpf tools: Improve libbpf error reporting Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-11-05 16:40 +0100
  [PATCH 2/5] perf tools: Improve BPF related error messages output Wang Nan <wangnan0@huawei.com> - 2015-11-05 05:30 +0100
    Re: [PATCH 2/5] perf tools: Improve BPF related error messages output Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-11-05 16:40 +0100
  [PATCH 3/5] perf test: Enforce LLVM test: update basic BPF test program Wang Nan <wangnan0@huawei.com> - 2015-11-05 05:30 +0100
  [PATCH 4/5] perf test: Enforce LLVM test: add kbuild test Wang Nan <wangnan0@huawei.com> - 2015-11-05 05:30 +0100
  [PATCH 5/5] perf test: Add 'perf test BPF' Wang Nan <wangnan0@huawei.com> - 2015-11-05 05:30 +0100

csiph-web