I have started docker process with below command
docker run --privileged=true --cap-add=SYS_PTRACE -it <docker image name and other flags>
After starting my docker i go inside docker and running my application....an the same i want to profile.
For profiling i get the pid of my process that is running inside the docker by ps -eaf | grep <my application name>
I use below command
$ amplxe-cl -collect hotspots -target-pid=$PID
Once i start the amplxe it kills my running process and give seg fault with below error
MPLXE_TPSSCOLLECTOR: init:1300: attach_notification_result == tpss_er_success : attach_notification_result = 14
Assertion failed: init:1300: attach_notification_result == tpss_er_success : attach_notification_result = 14.
Is it possible to launch Vtune with docker process?
VTune supports profiling application within docker. Based on your environment these two links might help you walk through the profiling:
Can you please share what version of VTune are you using?
Abhinav S. (Intel) wrote:
This link uses only "collector-type:hw-events" (maybe "sampling-mode=hw" in VTune2019).
I think only hw evens works fine.
Avinash, you can try:
$amplxe-cl -collect hotspots -knob sampling-mode=hw -knob enable-stack-collection=true -analyze-system -d 60