Commit-ID: 7346195e8643482968f547483e0d823ec1982fab
Gitweb: https://git.kernel.org/tip/7346195e8643482968f547483e0d823ec1982fab
Author: He Kuang
AuthorDate: Tue, 19 Feb 2019 21:05:31 +0800
Committer: Arnaldo Carvalho de Melo
CommitDate: Tue, 19 Feb 2019 12:30:12 -0300
perf report
be within the range of [sym.start, sym.end].
The error message is like: "0x36aea60 [0x8]: failed to process type: 68".
The second parameter of symbol__new() is the length of the fake symbol for
the inline frame, which is the subtraction of the end and start address of
base_sym.
Signed-
Commit-ID: da06d568386877809532e8ec678f4a5e300f0951
Gitweb: https://git.kernel.org/tip/da06d568386877809532e8ec678f4a5e300f0951
Author: He Kuang
AuthorDate: Mon, 21 Jan 2019 00:05:22 +0800
Committer: Arnaldo Carvalho de Melo
CommitDate: Mon, 21 Jan 2019 11:29:07 -0300
perf top: Fix
ngs right.
The problem can be reproduced by pressing 'H' in perf top annotation view.
It should highlight the instruction line which has the highest sampling
percentage.
Signed-off-by: He Kuang
---
tools/perf/ui/browsers/annotate.c | 16 ++--
1 file changed, 10 insertions(+), 6 deleti
Commit-ID: 3bb53c9f124bd9297f18d58a395cff59dfaf8541
Gitweb: http://git.kernel.org/tip/3bb53c9f124bd9297f18d58a395cff59dfaf8541
Author: He Kuang <heku...@huawei.com>
AuthorDate: Tue, 7 Feb 2017 07:34:11 +
Committer: Arnaldo Carvalho de Melo <a...@redhat.com>
CommitDate
Commit-ID: 3bb53c9f124bd9297f18d58a395cff59dfaf8541
Gitweb: http://git.kernel.org/tip/3bb53c9f124bd9297f18d58a395cff59dfaf8541
Author: He Kuang
AuthorDate: Tue, 7 Feb 2017 07:34:11 +
Committer: Arnaldo Carvalho de Melo
CommitDate: Wed, 8 Feb 2017 08:55:01 -0300
perf tools arm64
These two debug messages are missing the trailing newline.
Signed-off-by: He Kuang <heku...@huawei.com>
---
tools/perf/util/bpf-loader.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/perf/util/bpf-loader.c b/tools/perf/util/bpf-loader.c
index 36c8611..b
These two debug messages are missing the trailing newline.
Signed-off-by: He Kuang
---
tools/perf/util/bpf-loader.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/perf/util/bpf-loader.c b/tools/perf/util/bpf-loader.c
index 36c8611..bc6bc70 100644
--- a/tools/perf
Since HAVE_KPROBES can be enabled in arm64, this patch introduces
regs_query_register_offset() to convert register name to offset for
arm64, so the BPF prologue feature is ready to use.
Signed-off-by: He Kuang <heku...@huawei.com>
---
tools/perf/arch/arm64/Makefile | 1 +
tool
Since HAVE_KPROBES can be enabled in arm64, this patch introduces
regs_query_register_offset() to convert register name to offset for
arm64, so the BPF prologue feature is ready to use.
Signed-off-by: He Kuang
---
tools/perf/arch/arm64/Makefile | 1 +
tools/perf/arch/arm64/util/dwarf
Since HAVE_KPROBES can be enabled in arm64, this patch introduces
regs_query_register_offset() to convert register name to offset for
arm64, so the BPF prologue feature is ready to use.
Signed-off-by: He Kuang <heku...@huawei.com>
---
tools/perf/arch/arm64/Makefile | 1 +
tool
Since HAVE_KPROBES can be enabled in arm64, this patch introduces
regs_query_register_offset() to convert register name to offset for
arm64, so the BPF prologue feature is ready to use.
Signed-off-by: He Kuang
---
tools/perf/arch/arm64/Makefile | 1 +
tools/perf/arch/arm64/util/dwarf
These two debug messages are missing the trailing newline.
Signed-off-by: He Kuang <heku...@huawei.com>
---
tools/perf/util/bpf-loader.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/perf/util/bpf-loader.c b/tools/perf/util/bpf-loader.c
index 36c8611..b
86.
Acked-by: Masami Hiramatsu <mhira...@kernel.org>
Signed-off-by: He Kuang <heku...@huawei.com>
---
tools/perf/arch/arm64/util/dwarf-regs.c | 107
1 file changed, 52 insertions(+), 55 deletions(-)
diff --git a/tools/perf/arch/arm64/util/dwarf-regs.c
b/tool
These two debug messages are missing the trailing newline.
Signed-off-by: He Kuang
---
tools/perf/util/bpf-loader.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/perf/util/bpf-loader.c b/tools/perf/util/bpf-loader.c
index 36c8611..bc6bc70 100644
--- a/tools/perf
86.
Acked-by: Masami Hiramatsu
Signed-off-by: He Kuang
---
tools/perf/arch/arm64/util/dwarf-regs.c | 107
1 file changed, 52 insertions(+), 55 deletions(-)
diff --git a/tools/perf/arch/arm64/util/dwarf-regs.c
b/tools/perf/arch/arm64/util/dwarf-regs.c
index d49efeb..090f
Since HAVE_KPROBES can be enabled in arm64, this patch introduces
regs_query_register_offset() to convert register name to offset for
arm64, so the BPF prologue feature is ready to use.
Acked-by: Masami Hiramatsu <mhira...@kernel.org>
Signed-off-by: He Kuang <heku...@huawei.com>
---
Since HAVE_KPROBES can be enabled in arm64, this patch introduces
regs_query_register_offset() to convert register name to offset for
arm64, so the BPF prologue feature is ready to use.
Acked-by: Masami Hiramatsu
Signed-off-by: He Kuang
---
tools/perf/arch/arm64/Makefile | 1 +
tools
Commit-ID: 1b29dfbba124be5077a24996a272205baec1c008
Gitweb: http://git.kernel.org/tip/1b29dfbba124be5077a24996a272205baec1c008
Author: He Kuang <heku...@huawei.com>
AuthorDate: Tue, 24 Jan 2017 10:30:14 +
Committer: Arnaldo Carvalho de Melo <a...@redhat.com>
CommitDate:
Commit-ID: 1b29dfbba124be5077a24996a272205baec1c008
Gitweb: http://git.kernel.org/tip/1b29dfbba124be5077a24996a272205baec1c008
Author: He Kuang
AuthorDate: Tue, 24 Jan 2017 10:30:14 +
Committer: Arnaldo Carvalho de Melo
CommitDate: Thu, 26 Jan 2017 11:42:43 -0300
perf probe: Fix
with x86.
Signed-off-by: He Kuang <heku...@huawei.com>
---
tools/perf/arch/arm64/Makefile | 1 +
tools/perf/arch/arm64/util/dwarf-regs.c | 124 ++--
2 files changed, 72 insertions(+), 53 deletions(-)
diff --git a/tools/perf/arch/arm64/Makefile b/tool
with x86.
Signed-off-by: He Kuang
---
tools/perf/arch/arm64/Makefile | 1 +
tools/perf/arch/arm64/util/dwarf-regs.c | 124 ++--
2 files changed, 72 insertions(+), 53 deletions(-)
diff --git a/tools/perf/arch/arm64/Makefile b/tools/perf/arch/arm64/Makefile
count=86
Signed-off-by: He Kuang <heku...@huawei.com>
---
tools/perf/arch/arm64/include/dwarf-regs-table.h | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/tools/perf/arch/arm64/include/dwarf-regs-table.h
b/tools/perf/arch/arm64/include/dwarf-regs-table.
Two patches here makes bpf prologue available for arm64.
He Kuang (2):
perf probe: Fix wrong register name for arm64
perf tools: Introduce regs_query_register_offset() for arm64
tools/perf/arch/arm64/Makefile | 1 +
tools/perf/arch/arm64/include/dwarf-regs-table.h | 12
count=86
Signed-off-by: He Kuang
---
tools/perf/arch/arm64/include/dwarf-regs-table.h | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/tools/perf/arch/arm64/include/dwarf-regs-table.h
b/tools/perf/arch/arm64/include/dwarf-regs-table.h
index 2675936..36e37
Two patches here makes bpf prologue available for arm64.
He Kuang (2):
perf probe: Fix wrong register name for arm64
perf tools: Introduce regs_query_register_offset() for arm64
tools/perf/arch/arm64/Makefile | 1 +
tools/perf/arch/arm64/include/dwarf-regs-table.h | 12
with x86.
Signed-off-by: He Kuang <heku...@huawei.com>
---
tools/perf/arch/arm64/Makefile | 1 +
tools/perf/arch/arm64/util/dwarf-regs.c | 123 ++--
2 files changed, 71 insertions(+), 53 deletions(-)
diff --git a/tools/perf/arch/arm64/Makefile b/tool
with x86.
Signed-off-by: He Kuang
---
tools/perf/arch/arm64/Makefile | 1 +
tools/perf/arch/arm64/util/dwarf-regs.c | 123 ++--
2 files changed, 71 insertions(+), 53 deletions(-)
diff --git a/tools/perf/arch/arm64/Makefile b/tools/perf/arch/arm64/Makefile
Commit-ID: 71ac899b5ed7edfd8fa2a4e075194380b1de2d7f
Gitweb: http://git.kernel.org/tip/71ac899b5ed7edfd8fa2a4e075194380b1de2d7f
Author: He Kuang <heku...@huawei.com>
AuthorDate: Thu, 4 Aug 2016 11:25:43 +
Committer: Arnaldo Carvalho de Melo <a...@redhat.com>
CommitDate:
Commit-ID: 71ac899b5ed7edfd8fa2a4e075194380b1de2d7f
Gitweb: http://git.kernel.org/tip/71ac899b5ed7edfd8fa2a4e075194380b1de2d7f
Author: He Kuang
AuthorDate: Thu, 4 Aug 2016 11:25:43 +
Committer: Arnaldo Carvalho de Melo
CommitDate: Mon, 15 Aug 2016 13:23:49 -0300
perf script: Don't
Commit-ID: 88ded4d8d94a550624e1827478e13fecf97a7b0a
Gitweb: http://git.kernel.org/tip/88ded4d8d94a550624e1827478e13fecf97a7b0a
Author: He Kuang <heku...@huawei.com>
AuthorDate: Thu, 4 Aug 2016 11:25:42 +
Committer: Arnaldo Carvalho de Melo <a...@redhat.com>
CommitDate:
Commit-ID: 88ded4d8d94a550624e1827478e13fecf97a7b0a
Gitweb: http://git.kernel.org/tip/88ded4d8d94a550624e1827478e13fecf97a7b0a
Author: He Kuang
AuthorDate: Thu, 4 Aug 2016 11:25:42 +
Committer: Arnaldo Carvalho de Melo
CommitDate: Mon, 15 Aug 2016 13:17:10 -0300
perf script: Show
-off-by: He Kuang <heku...@huawei.com>
---
tools/perf/builtin-script.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c
index d47aef9..ec8df8f 100644
--- a/tools/perf/builtin-script.c
+++ b/tools/perf/builtin-sc
-off-by: He Kuang
---
tools/perf/builtin-script.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c
index d47aef9..ec8df8f 100644
--- a/tools/perf/builtin-script.c
+++ b/tools/perf/builtin-script.c
@@ -371,14 +371,16
Perf shows the usage message when perf scripts folder failed to open,
which misleads users to let them think the command is mistyped. This
patch shows proper message and guide the users to check PERF_EXEC_PATH
environment in that case.
Before:
$ perf script --list
Usage: perf script []
Perf shows the usage message when perf scripts folder failed to open,
which misleads users to let them think the command is mistyped. This
patch shows proper message and guide the users to check PERF_EXEC_PATH
environment in that case.
Before:
$ perf script --list
Usage: perf script []
This patch is a preparation for compiling bpf vm into external
libraries. Parts of the instruction handlers are wrapped into macros
or functions so that userspace libraries can override them. There's no
functionality change without UBPF_BUILD flag.
Signed-off-by: He Kuang <heku...@huawei.
t;wangn...@huawei.com>
Signed-off-by: He Kuang <heku...@huawei.com>
---
tools/include/linux/byteorder/generic.h | 48 +
tools/perf/MANIFEST | 1 +
2 files changed, 49 insertions(+)
create mode 100644 tools/include/linux/byteorder/gener
This patch is a preparation for compiling bpf vm into external
libraries. Parts of the instruction handlers are wrapped into macros
or functions so that userspace libraries can override them. There's no
functionality change without UBPF_BUILD flag.
Signed-off-by: He Kuang
Signed-off-by: Wang Nan
From: Wang Nan
This patch adopts the macros for byte order conversion from
"include/linux/byteorder/generic.h" to
"tools/include/linux/byteorder/generic.h"
tools/perf/MANIFEST is also updated for 'make perf-*-src-pkg'.
Signed-off-by: Wang Nan
Signed-off-by: He Kuang
---
From: Wang Nan <wangn...@huawei.com>
Split out function __bpf_prog_run() and related macros from bpf/core.c
into bpf/vm.c.
Signed-off-by: Wang Nan <wangn...@huawei.com>
Signed-off-by: He Kuang <heku...@huawei.com>
---
include/linux/filter.h | 1 +
kernel/bpf/Makefile|
off-by: Wang Nan <wangn...@huawei.com>
Signed-off-by: He Kuang <heku...@huawei.com>
---
tools/include/linux/kernel.h| 7 +--
tools/perf/util/intel-bts.c | 5 -
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c | 7
From: Wang Nan
Split out function __bpf_prog_run() and related macros from bpf/core.c
into bpf/vm.c.
Signed-off-by: Wang Nan
Signed-off-by: He Kuang
---
include/linux/filter.h | 1 +
kernel/bpf/Makefile| 2 +-
kernel/bpf/core.c | 487
From: Wang Nan
The cpu_to_le* macros in kernel.h are defined without considering
endianese. This patch includes "byteoder/generic.h" instead to fix the
bug, and removes redundant definitions of those macros in intel-bts.c
and intel-pt-pkt-decoder.c.
Signed-off-by: Wang Nan
Signed-
_end_ctx {
+ int samples;
+ int dummy;
+};
+int perf_record_end(struct perf_record_end_ctx *ctx)
And the argument 'samples' should be referenced as 'ctx->samples'.
Thank you.
He Kuang (17):
bpf: extract jmp and default handler and introduce UBPF_BUILD flag
tools include: Add (atomic|
_end_ctx {
+ int samples;
+ int dummy;
+};
+int perf_record_end(struct perf_record_end_ctx *ctx)
And the argument 'samples' should be referenced as 'ctx->samples'.
Thank you.
He Kuang (17):
bpf: extract jmp and default handler and introduce UBPF_BUILD flag
tools include: Add (atomic|
defined in them.
tools/perf/MANIFEST is also updated for 'make perf-*-src-pkg'.
Signed-off-by: Wang Nan <wangn...@huawei.com>
Signed-off-by: He Kuang <heku...@huawei.com>
---
tools/include/asm-generic/div64.h | 234
tools/include/linux/math64.h
/MANIFEST is also updated for 'make perf-*-src-pkg'.
Signed-off-by: Wang Nan
Signed-off-by: He Kuang
---
tools/include/asm-generic/div64.h | 234
tools/include/linux/math64.h | 247 ++
tools/perf/MANIFEST
Clean up unnecessary assignments to local variable 'result.pfd', and
remove 'pfd' field in 'struct bpf_prog_prep_result' since no one else
uses it.
Signed-off-by: He Kuang <heku...@huawei.com>
---
tools/lib/bpf/libbpf.c | 4
tools/lib/bpf/libbpf.h | 3 ---
tools/perf/ut
Clean up unnecessary assignments to local variable 'result.pfd', and
remove 'pfd' field in 'struct bpf_prog_prep_result' since no one else
uses it.
Signed-off-by: He Kuang
---
tools/lib/bpf/libbpf.c | 4
tools/lib/bpf/libbpf.h | 3 ---
tools/perf/util/bpf-loader.c | 1 -
3
Supporting different bpf program types loaded into kernel and
userspace, this patch abstracts the operations to related to bpf
program into bpf_engine. The methods set for bpf loaded into kernel
are included in engine-kbpf.c, which is used as the default value.
Signed-off-by: He Kuang <h
Add methods to set ubpf engine for a bpf program and to check whether
a program's engine is ubpf.
Signed-off-by: He Kuang <heku...@huawei.com>
Signed-off-by: Wang Nan <wangn...@huawei.com>
---
tools/lib/bpf/engine-ubpf.c | 12
tools/lib/bpf/libbpf.h | 17
Split part of codes in libbpf.c out for internal usage, debug print
functions are changed to non-static for other files to use.
Signed-off-by: He Kuang <heku...@huawei.com>
---
tools/lib/bpf/libbpf-internal.h | 65 +++
tools/lib/bpf/libbpf.c
Supporting different bpf program types loaded into kernel and
userspace, this patch abstracts the operations to related to bpf
program into bpf_engine. The methods set for bpf loaded into kernel
are included in engine-kbpf.c, which is used as the default value.
Signed-off-by: He Kuang
Signed-off
Add methods to set ubpf engine for a bpf program and to check whether
a program's engine is ubpf.
Signed-off-by: He Kuang
Signed-off-by: Wang Nan
---
tools/lib/bpf/engine-ubpf.c | 12
tools/lib/bpf/libbpf.h | 17 +
2 files changed, 29 insertions(+)
diff --git
Split part of codes in libbpf.c out for internal usage, debug print
functions are changed to non-static for other files to use.
Signed-off-by: He Kuang
---
tools/lib/bpf/libbpf-internal.h | 65 +++
tools/lib/bpf/libbpf.c | 68
Fill up the run_ubpf_program slot by fetching the ubpf entry and call
__bpf_prog_run().
Signed-off-by: He Kuang <heku...@huawei.com>
Signed-off-by: Wang Nan <wangn...@huawei.com>
---
tools/perf/util/ubpf-hooks.c | 19 ---
1 file changed, 16 insertions(+), 3 deleti
Fill up the run_ubpf_program slot by fetching the ubpf entry and call
__bpf_prog_run().
Signed-off-by: He Kuang
Signed-off-by: Wang Nan
---
tools/perf/util/ubpf-hooks.c | 19 ---
1 file changed, 16 insertions(+), 3 deletions(-)
diff --git a/tools/perf/util/ubpf-hooks.c b/tools
A boundary check is added before each store/load instruction, since we
don't have a verifier in userspace bpf. There's no functionality
change without UBPF_BUILD flag.
Signed-off-by: He Kuang <heku...@huawei.com>
---
kernel/bpf/vm.c | 11 +--
1 file changed, 9 insertions(+), 2 del
A boundary check is added before each store/load instruction, since we
don't have a verifier in userspace bpf. There's no functionality
change without UBPF_BUILD flag.
Signed-off-by: He Kuang
---
kernel/bpf/vm.c | 11 +--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git
Let ubpf invoke function calls. The function index is stored in
insns->imm, use it to fetch the corresponding functions in libbpf and
make the function call.
Signed-off-by: He Kuang <heku...@huawei.com>
---
tools/perf/util/bpf-vm.c | 24 ++--
1 file changed, 22 i
Let ubpf invoke function calls. The function index is stored in
insns->imm, use it to fetch the corresponding functions in libbpf and
make the function call.
Signed-off-by: He Kuang
---
tools/perf/util/bpf-vm.c | 24 ++--
1 file changed, 22 insertions(+), 2 deleti
mail.com>
Cc: Jiri Olsa <jo...@kernel.org>
Cc: Li Zefan <lize...@huawei.com>
Signed-off-by: He Kuang <heku...@huawei.com>
---
tools/perf/perf.c | 3 ++
tools/perf/util/Build | 1 +
tools/perf/util/ubpf-helpers-list.h | 11
From: Wang Nan
Reigster basic extern functions for uBPF programs.
Signed-off-by: Wang Nan
Cc: Arnaldo Carvalho de Melo
Cc: Alexei Starovoitov
Cc: Brendan Gregg
Cc: Jiri Olsa
Cc: Li Zefan
Signed-off-by: He Kuang
---
tools/perf/perf.c | 3 ++
tools/perf/util/Build
-by: He Kuang <heku...@huawei.com>
Signed-off-by: Wang Nan <wangn...@huawei.com>
---
tools/lib/bpf/Build | 1 +
tools/lib/bpf/engine-ubpf.c | 97 +
tools/lib/bpf/libbpf.c | 1 +
tools/lib/bpf/libbpf.h | 6 +++
4 files
Make sure that ubpf load/store instructions only access the context
and stack region.
Signed-off-by: He Kuang <heku...@huawei.com>
---
tools/perf/util/bpf-vm.c | 35 +++
tools/perf/util/bpf-vm.h | 3 ++-
2 files changed, 37 insertions(+), 1 deletion(-)
From: Wang Nan <wangn...@huawei.com>
UBPF are not built by default, unless user explicitly build perf with
UBPF defined.
Signed-off-by: Wang Nan <wangn...@huawei.com>
Signed-off-by: He Kuang <heku...@huawei.com>
---
tools/lib/bpf/Makefile | 4
tools/perf/Makefile.pe
-by: He Kuang
Signed-off-by: Wang Nan
---
tools/lib/bpf/Build | 1 +
tools/lib/bpf/engine-ubpf.c | 97 +
tools/lib/bpf/libbpf.c | 1 +
tools/lib/bpf/libbpf.h | 6 +++
4 files changed, 105 insertions(+)
create mode 100644 tools/lib/bpf
Make sure that ubpf load/store instructions only access the context
and stack region.
Signed-off-by: He Kuang
---
tools/perf/util/bpf-vm.c | 35 +++
tools/perf/util/bpf-vm.h | 3 ++-
2 files changed, 37 insertions(+), 1 deletion(-)
diff --git a/tools/perf/util
From: Wang Nan
UBPF are not built by default, unless user explicitly build perf with
UBPF defined.
Signed-off-by: Wang Nan
Signed-off-by: He Kuang
---
tools/lib/bpf/Makefile | 4
tools/perf/Makefile.perf | 2 ++
tools/perf/config/Makefile | 4
3 files changed, 10 insertions
Since -Wextra is used in perf tools, this patch adopts this cflags
into lib/bpf. It also fixes 'comparison between signed and unsigned
integer' errors reported afterward.
Signed-off-by: He Kuang <heku...@huawei.com>
---
tools/lib/bpf/Makefile | 2 +-
tools/lib/bpf/libbpf.c | 7 ---
2
Same as bpf_program__fd() and bpf_program__nth_fd(), add methods for
fetching the nth ubpf entry.
Signed-off-by: He Kuang <heku...@huawei.com>
Signed-off-by: Wang Nan <wangn...@huawei.com>
---
tools/lib/bpf/libbpf.c | 14 ++
tools/lib/bpf/libbpf.h | 1 +
2 files
slots.
Signed-off-by: Wang Nan <wangn...@huawei.com>
Signed-off-by: He Kuang <heku...@huawei.com>
---
tools/lib/bpf/engine-ubpf.c | 25 +
tools/lib/bpf/libbpf.h | 16
2 files changed, 41 insertions(+)
diff --git a/tools/lib/bpf/engine-ubpf.c
Since -Wextra is used in perf tools, this patch adopts this cflags
into lib/bpf. It also fixes 'comparison between signed and unsigned
integer' errors reported afterward.
Signed-off-by: He Kuang
---
tools/lib/bpf/Makefile | 2 +-
tools/lib/bpf/libbpf.c | 7 ---
2 files changed, 5 insertions
Same as bpf_program__fd() and bpf_program__nth_fd(), add methods for
fetching the nth ubpf entry.
Signed-off-by: He Kuang
Signed-off-by: Wang Nan
---
tools/lib/bpf/libbpf.c | 14 ++
tools/lib/bpf/libbpf.h | 1 +
2 files changed, 15 insertions(+)
diff --git a/tools/lib/bpf
slots.
Signed-off-by: Wang Nan
Signed-off-by: He Kuang
---
tools/lib/bpf/engine-ubpf.c | 25 +
tools/lib/bpf/libbpf.h | 16
2 files changed, 41 insertions(+)
diff --git a/tools/lib/bpf/engine-ubpf.c b/tools/lib/bpf/engine-ubpf.c
index 9a0b425..e63a267
From: Wang Nan <wangn...@huawei.com>
Introduce a BPF script use uBPF, test compiling, helper and hook.
Validate passing information through helper and hooks.
Signed-off-by: Wang Nan <wangn...@huawei.com>
Signed-off-by: He Kuang <heku...@huawei.com>
---
tool
Like tracepoint in kernel code, uBPF hooks can be added in perf code and
trigger uBPF programs passed by BPF scripts. The first two uBPF hooks
added are record start/end. uBPF scripts can initial BPF maps in
record start, and report result when record finished.
Signed-off-by: He Kuang <h
From: Wang Nan
Introduce a BPF script use uBPF, test compiling, helper and hook.
Validate passing information through helper and hooks.
Signed-off-by: Wang Nan
Signed-off-by: He Kuang
---
tools/perf/tests/Build | 8 +++
tools/perf/tests/bpf-script-test-ubpf.c | 88
Like tracepoint in kernel code, uBPF hooks can be added in perf code and
trigger uBPF programs passed by BPF scripts. The first two uBPF hooks
added are record start/end. uBPF scripts can initial BPF maps in
record start, and report result when record finished.
Signed-off-by: He Kuang
Signed-off
The bpf progs loaded into kernel are represented by fd, but we need
new types for storing the entity of userspace bpf progs. This patch
uses a void pointer to make it more generic so we can store any new
types and cast back to its original type when used.
Signed-off-by: He Kuang <h
Uses the arch/x86/ kernel code for x86_64/i386, fallbacking to a gcc
intrinsics implementation.
Signed-off-by: He Kuang <heku...@huawei.com>
Signed-off-by: Wang Nan <wangn...@huawei.com>
---
tools/arch/x86/include/asm/atomic.h| 28
tools/include
The bpf progs loaded into kernel are represented by fd, but we need
new types for storing the entity of userspace bpf progs. This patch
uses a void pointer to make it more generic so we can store any new
types and cast back to its original type when used.
Signed-off-by: He Kuang
Signed-off
Uses the arch/x86/ kernel code for x86_64/i386, fallbacking to a gcc
intrinsics implementation.
Signed-off-by: He Kuang
Signed-off-by: Wang Nan
---
tools/arch/x86/include/asm/atomic.h| 28
tools/include/asm-generic/atomic-gcc.h | 10 ++
tools/include
ldo Carvalho de Melo <a...@redhat.com>
Cc: Alexei Starovoitov <a...@kernel.org>
Cc: Brendan Gregg <brendan.d.gr...@gmail.com>
Cc: Jiri Olsa <jo...@kernel.org>
Cc: Li Zefan <lize...@huawei.com>
Signed-off-by: He Kuang <heku...@huawei.com>
---
tools/lib/bpf/bp
structures and headers.
CFLAGS are modified for supressing warnings of the existing bpf code.
Signed-off-by: Wang Nan <wangn...@huawei.com>
Signed-off-by: He Kuang <heku...@huawei.com>
---
tools/perf/util/Build| 2 ++
tools/perf/util/bpf-vm.c | 34 +
c: Jiri Olsa <jo...@kernel.org>
Cc: Li Zefan <lize...@huawei.com>
Signed-off-by: He Kuang <heku...@huawei.com>
---
tools/perf/util/bpf-loader.c | 22 ++
1 file changed, 22 insertions(+)
diff --git a/tools/perf/util/bpf-loader.c b/tools/perf/util/bpf-loader.c
in
structures and headers.
CFLAGS are modified for supressing warnings of the existing bpf code.
Signed-off-by: Wang Nan
Signed-off-by: He Kuang
---
tools/perf/util/Build| 2 ++
tools/perf/util/bpf-vm.c | 34 ++
tools/perf/util/bpf-vm.h | 7 +++
3 files c
llo! receive %d samples\n";
ubpf_printf(fmt, *samples);
}
Signed-off-by: Wang Nan
Cc: Arnaldo Carvalho de Melo
Cc: Alexei Starovoitov
Cc: Brendan Gregg
Cc: Jiri Olsa
Cc: Li Zefan
Signed-off-by: He Kuang
---
tools/perf/util/bpf-loader.c | 22 ++
1 file changed, 22
: Brendan Gregg
Cc: Jiri Olsa
Cc: Li Zefan
Signed-off-by: He Kuang
---
tools/lib/bpf/bpf.c | 24
tools/lib/bpf/bpf.h | 2 ++
2 files changed, 26 insertions(+)
diff --git a/tools/lib/bpf/bpf.c b/tools/lib/bpf/bpf.c
index 1f91cc9..337d9dc 100644
--- a/tools/lib/bpf/bpf.c
Commit-ID: 3bd03c9583bfb22cb82eeb09d8445bb79d27ae78
Gitweb: http://git.kernel.org/tip/3bd03c9583bfb22cb82eeb09d8445bb79d27ae78
Author: He Kuang <heku...@huawei.com>
AuthorDate: Wed, 22 Jun 2016 06:57:04 +
Committer: Arnaldo Carvalho de Melo <a...@redhat.com>
CommitDate:
Commit-ID: 3bd03c9583bfb22cb82eeb09d8445bb79d27ae78
Gitweb: http://git.kernel.org/tip/3bd03c9583bfb22cb82eeb09d8445bb79d27ae78
Author: He Kuang
AuthorDate: Wed, 22 Jun 2016 06:57:04 +
Committer: Arnaldo Carvalho de Melo
CommitDate: Thu, 23 Jun 2016 10:30:31 -0300
perf unwind: Fix
Commit-ID: 5dafea097ac65bd01cc86801c399ae41dce79756
Gitweb: http://git.kernel.org/tip/5dafea097ac65bd01cc86801c399ae41dce79756
Author: He Kuang <heku...@huawei.com>
AuthorDate: Wed, 22 Jun 2016 06:57:03 +
Committer: Arnaldo Carvalho de Melo <a...@redhat.com>
CommitDate:
Commit-ID: 5dafea097ac65bd01cc86801c399ae41dce79756
Gitweb: http://git.kernel.org/tip/5dafea097ac65bd01cc86801c399ae41dce79756
Author: He Kuang
AuthorDate: Wed, 22 Jun 2016 06:57:03 +
Committer: Arnaldo Carvalho de Melo
CommitDate: Thu, 23 Jun 2016 10:30:21 -0300
perf unwind: Fix
Commit-ID: 78ff1d6d8bf6bb3ee2b3781bbd88355a322435a4
Gitweb: http://git.kernel.org/tip/78ff1d6d8bf6bb3ee2b3781bbd88355a322435a4
Author: He Kuang <heku...@huawei.com>
AuthorDate: Wed, 22 Jun 2016 06:57:02 +
Committer: Arnaldo Carvalho de Melo <a...@redhat.com>
CommitDate:
Commit-ID: 78ff1d6d8bf6bb3ee2b3781bbd88355a322435a4
Gitweb: http://git.kernel.org/tip/78ff1d6d8bf6bb3ee2b3781bbd88355a322435a4
Author: He Kuang
AuthorDate: Wed, 22 Jun 2016 06:57:02 +
Committer: Arnaldo Carvalho de Melo
CommitDate: Thu, 23 Jun 2016 10:30:17 -0300
perf unwind
Commit-ID: 76c588f1f6b560c510953b390bc0a26c27cbfbd0
Gitweb: http://git.kernel.org/tip/76c588f1f6b560c510953b390bc0a26c27cbfbd0
Author: He Kuang <heku...@huawei.com>
AuthorDate: Tue, 17 May 2016 09:04:54 +
Committer: Arnaldo Carvalho de Melo <a...@redhat.com>
CommitDate:
Commit-ID: 76c588f1f6b560c510953b390bc0a26c27cbfbd0
Gitweb: http://git.kernel.org/tip/76c588f1f6b560c510953b390bc0a26c27cbfbd0
Author: He Kuang
AuthorDate: Tue, 17 May 2016 09:04:54 +
Committer: Arnaldo Carvalho de Melo
CommitDate: Thu, 23 Jun 2016 10:25:58 -0300
perf tools: Find
Commit-ID: 48d8d5db4ac454e590ef7d440f456743d6cbaa94
Gitweb: http://git.kernel.org/tip/48d8d5db4ac454e590ef7d440f456743d6cbaa94
Author: He Kuang <heku...@huawei.com>
AuthorDate: Wed, 22 Jun 2016 06:57:05 +
Committer: Arnaldo Carvalho de Melo <a...@redhat.com>
CommitDate:
Commit-ID: 48d8d5db4ac454e590ef7d440f456743d6cbaa94
Gitweb: http://git.kernel.org/tip/48d8d5db4ac454e590ef7d440f456743d6cbaa94
Author: He Kuang
AuthorDate: Wed, 22 Jun 2016 06:57:05 +
Committer: Arnaldo Carvalho de Melo
CommitDate: Wed, 22 Jun 2016 16:11:42 -0300
perf tools: Let
1 - 100 of 834 matches
Mail list logo