mbox series

[v1,0/4] perf augmented_raw_syscalls: Support for arm64

Message ID 20190606075617.14327-1-leo.yan@linaro.org
Headers show
Series perf augmented_raw_syscalls: Support for arm64 | expand

Message

Leo Yan June 6, 2019, 7:56 a.m. UTC
When I tried to run the trace on arm64 platform with eBPF program
augmented_raw_syscalls, it reports several failures for eBPF program
compilation.  So tried to resolve these issues and this patch set is
the working result.

0001 patch lets perf command to exit directly if find eBPF program
building failure.

0002 patch is minor refactoring code to remove duplicate macro.

0003 patch is to add support arm64 raw syscalls numbers.

0004 patch is to document clang configuration so that can easily use
this program on both x86_64 and aarch64 platforms.


Leo Yan (4):
  perf trace: Exit when build eBPF program failure
  perf augmented_raw_syscalls: Remove duplicate macros
  perf augmented_raw_syscalls: Support arm64 raw syscalls
  perf augmented_raw_syscalls: Document clang configuration

 tools/perf/builtin-trace.c                    |   8 ++
 .../examples/bpf/augmented_raw_syscalls.c     | 102 +++++++++++++++++-
 2 files changed, 109 insertions(+), 1 deletion(-)

-- 
2.17.1

Comments

Leo Yan June 6, 2019, 9:52 a.m. UTC | #1
Hi all,

On Thu, Jun 06, 2019 at 03:56:13PM +0800, Leo Yan wrote:
> When I tried to run the trace on arm64 platform with eBPF program

> augmented_raw_syscalls, it reports several failures for eBPF program

> compilation.  So tried to resolve these issues and this patch set is

> the working result.

> 

> 0001 patch lets perf command to exit directly if find eBPF program

> building failure.

> 

> 0002 patch is minor refactoring code to remove duplicate macro.

> 

> 0003 patch is to add support arm64 raw syscalls numbers.


I found minor issues in patch 0003, so sent out v2 for reviewing.

Sorry for spamming.

Thanks,
Leo Yan

> 0004 patch is to document clang configuration so that can easily use

> this program on both x86_64 and aarch64 platforms.

> 

> 

> Leo Yan (4):

>   perf trace: Exit when build eBPF program failure

>   perf augmented_raw_syscalls: Remove duplicate macros

>   perf augmented_raw_syscalls: Support arm64 raw syscalls

>   perf augmented_raw_syscalls: Document clang configuration

> 

>  tools/perf/builtin-trace.c                    |   8 ++

>  .../examples/bpf/augmented_raw_syscalls.c     | 102 +++++++++++++++++-

>  2 files changed, 109 insertions(+), 1 deletion(-)

> 

> -- 

> 2.17.1

>