iovisor / iovisor/bcc

bcc tools fail on ARM64

Open
#1,375 13 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
22.7k
Forks
4.1k
Avg merge
10d 4h
Merged PRs (30d)
3

Description

I was able to compile bcc-tools on ARM64 using "install bison build-essential cmake flex git libedit-dev libllvm5.0 llvm-5.0-dev libclang-5.0-dev python zlib1g-dev libelf-dev" on 17.10 (Artful) with kernel 4.13.0-12-generic #13-Ubuntu SMP.

When I run any of the tools I get "LLVM ERROR: Inline asm not supported by this streamer because we don't have an asm parser for this target". Is there a work around for this issue ?

For example:
ubuntu@arm64:~/bcc/build$ sudo /usr/share/bcc/tools/funccount -D 'vfs_read'

#include

BPF_ARRAY(counts, u64, 1);

int trace_count_0(void *ctx) {

int loc = 0;
u64 *val = counts.lookup(&loc);
if (!val) {
return 0; // Should never happen, # of locations is known
}
(*val)++;
return 0;
}

LLVM ERROR: Inline asm not supported by this streamer because we don't have an asm parser for this target

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the failure with /usr/share/bcc/tools/funccount -D 'vfs_read' on the reported ARM64 Ubuntu and kernel versions. Read the bcc-tools build and tool entry points involved in this command, then investigate the reported LLVM inline-assembly error. Done means the tool runs on ARM64 without the LLVM streamer failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux, python
Domain
devtools, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.