upenn-acg / ocolos-public

Ocolos is the first online code layout optimization system for unmodified applications written in unmanaged languages.
BSD 2-Clause "Simplified" License
49 stars 14 forks source link

[tracer] error in run_perf_recoed #7

Closed lyf-g closed 8 months ago

lyf-g commented 9 months ago

Sorry to interrupt! When I use the './trace' command, I get an error:

Error: cycles:u: PMU Hardware doesn't support sampling/overflow-interrupts.try 'perf stat'. Then subsequent commands (including perf2bolt, bolt, etc.) fail to execute

Do I need to change the perf command, will it affect the performance of my ocolos? Or do I need to do something else? Maybe my computer doesn't support it?

lyf-g commented 9 months ago

My CPU is AMD, not Intel, what should I do?

zyuxuan0115 commented 8 months ago

Maybe AMD processors don't support some of the perf events.

You can use hardware events from perf list. If cycles is in the list, then maybe you can use cycles instead of cycles:u. If there are other perf events that are not supported by perf, you may need to encode the event code as raw event.

The fastest solution is to use an Intel processor to run the ocolos.

lyf-g commented 8 months ago

Thanks for your reply! I've switched to Intel!