How can I user @cast in the user-space's program or have other ways to aasign valus to the user-space pointer to a structure.

2012-03-27 Thread Liu Tianhao
I have a problem to cast a pointer to a structure in the user-space’s program. It always report “ERROR: kernel write fault at 0x00400675 (addr) near identifier '@cast' at test.stp:3:8”. Compile the source file and execute the stap command. liuth@liuthivb:~/$ gcc -g -o test test.c

How can I user @cast in the user-space's program or have other ways to assign values to the user-space pointer to a structure.

2012-03-27 Thread Liu, TianhaoX
Hi, John. I have a problem to cast a pointer to a structure in the user-space's program. It always report ERROR: kernel write fault at 0x00400675 (addr) near identifier '@cast' at test.stp:3:8. Compile the source file and execute the stap command. liuth@liuthivb:~/$ gcc -g -o test

Re: How can I user @cast in the user-space's program or have other ways to aasign valus to the user-space pointer to a structure.

2012-03-27 Thread David Smith
Liu, This is really a question for the systemtap list, not the utrace list. Forwarding there. Also see possible answer below. On 03/26/2012 10:06 PM, Liu Tianhao wrote: I have a problem to cast a pointer to a structure in the user-space’s program. It always report “ERROR: kernel write fault