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);
}
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.