When I ran Hardware Event-based Sampling Analysis 0, it showed the ERROR:
Collection failed. The data cannot be displayed.
PMU resource(s) currently being used by another profiling tool or process.
I don't know why.
Hi LIU Q.
Did you previously run a collection and kill the Amplifier XE GUI or command line? I can't tell you exactly "why" it happened in your case, but I can tell you it happens when a collection is started and then abnormally terminated.
You can free up the "PMU resources" by unloading and reloading the SEP driver. As root, go to <amplifier-xe-installation-directory>/sepdk/src and execute './insmod-sep3 -r'. This command will reload the drivers. After successfully reloading the drivers, you should be able to collection data. NOTE: if you have access restrictions on the drivers, you need to provide that info via the command line options of insmod-sep3 (use ./insmod-sep3 -?' for a list of options).
After following MrAndreson's instruction I got:
Cannot enable Hardware Event-based Sampling: problem with the driver (sep*/sepdrv*)
Work around was the following commands
usermod -a -G vtune $USER
exec su -l $USER
#Note: you need to reload any needed environment variables.