hi, all
using the following command to test target(), we can find that
the return value of target() is the pid of "readlink /proc/self",
but not 1234 as expected. Obviously, the -c and -x options are
conflict! pid specified by -x option will be overwritten if the -c
option is also specified.
$ stap -c "readlink /proc/self" -x 1234 -e 'probe
begin{printf("target()=%d\n",target())}'
19681
target()=19681
the man page of stap says nothing about the conflict of -c and -x.
I think it will be better if the following patch can be applied.
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>