Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Xingyi_S_Intel
Employee
551 Views

How to use SDE attach background process?

Jump to solution

Hi,

From https://software.intel.com/en-us/articles/intel-software-development-emulator, I understand, we can start user application using SDE. But in customer's env, most of their apps are complicated, hard to start by SDE. So how can we attach background process using SDE? Thanks!

0 Kudos
1 Solution
AdyT_Intel
Moderator
551 Views

Intel SDE has an option to attach to a running process, but this  means that all the execution flow before SDE was attached to the process runs without emulation of new instructions.

To attached to a running process and get the "mix" histogram tool use:

> sde -attach-pid <pid> -mix -omix <mix-output-file-name> 

 

Note that SDE launch tool (i.e. the sde command line) will exit after attaching to the process. In the above example the mix output file will be written when the application terminates.

View solution in original post

2 Replies
AdyT_Intel
Moderator
552 Views

Intel SDE has an option to attach to a running process, but this  means that all the execution flow before SDE was attached to the process runs without emulation of new instructions.

To attached to a running process and get the "mix" histogram tool use:

> sde -attach-pid <pid> -mix -omix <mix-output-file-name> 

 

Note that SDE launch tool (i.e. the sde command line) will exit after attaching to the process. In the above example the mix output file will be written when the application terminates.

View solution in original post

Xingyi_S_Intel
Employee
551 Views

Ady Tal (Intel) wrote:

Intel SDE has an option to attach to a running process, but this  means that all the execution flow before SDE was attached to the process runs without emulation of new instructions.

To attached to a running process and get the "mix" histogram tool use:

> sde -attach-pid <pid> -mix -omix <mix-output-file-name> 

 

Note that SDE launch tool (i.e. the sde command line) will exit after attaching to the process. In the above example the mix output file will be written when the application terminates.

Hi Ady,

Thanks for your help. It works! BTW, I found another question: I cannot get total log if I didn't kill background process. But in customer's env, they may don't prefer this. So do you know how to get total log content without kill background process? Thanks again.

Reply