perf not working correctly in Xavier


Running following simple program, and use perf top to monitor cpu usage,
in x86 I can get correct results that a.out in running in ‘division()’,
but in Xavier, the ‘Symbol’ column just show some strange address,
any ideas?

int division()
int i, j, k;
double sum = 0;
for (i = 1; i < 100; i++)
for (j = 1; j < 100; j++)
for (k = 1; k < 100; k++)
sum += i / j / k;
printf(“division = %lf\n”, sum);

int main()
while (1) {

    return 0;


Any others ARM platform working as your expect?

I tried with Amazon EC2 ARM instances,
with Ubuntu AMI, it didn’t work,
with Amazon Linux AMI, it works as expected.

Could you post the message here.

The ‘perf’ is not installed by apt, but compiled from /usr/src/linux-headers-4.9.108-tegra/tools/perf
during the compilation, we missed some necessary libraries, after:
$ sudo apt install libelf-dev libbfd-dev libunwind-dev
it works as expected now, sorry for your time.