Add support for aarch64
authorZhiyi Sun <zhiyisun@gmail.com>
Tue, 6 Dec 2016 08:21:37 +0000 (16:21 +0800)
committerZhiyi Sun <zhiyisun@gmail.com>
Tue, 6 Dec 2016 08:21:37 +0000 (16:21 +0800)
commit8e434b79a0fa05e055eb04dcf8be60d6e2b99298
tree7077cf39afabd34dc35e41ed9067cb4432ddf4c4
parente596170fbcfda9cb61db778f3ee97be96e1e52f2
Add support for aarch64

ABI for aarch64: register x0-x7 are used for parameter and result. In
bcc, there are 6 parameter registers are defined. So use x0-x5 as
parameter. frame pointer, link register, stack pointer and pc are added
in PT_REGS_xx according to arm64 architecture.

syscall number of bpf for aarch64 are defined in Kernel
header uapi/asm-generic/unistd.h.

Signed-off-by: Zhiyi Sun <zhiyisun@gmail.com>
src/cc/export/helpers.h
src/cc/frontends/clang/b_frontend_action.cc
src/cc/frontends/clang/loader.cc
src/cc/libbpf.c