This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug runtime/2738] deref error on ppc64


------- Additional Comments From guanglei at cn dot ibm dot com  2006-06-12 08:38 -------
Created an attachment (id=1080)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1080&action=view)
stap -p3 generated .c file

attached .c file is generated by stap -p3 a.stp

a.stp is:
probe kernel.function("sys_read").return
{
	printf("%p\n", $return)
}

"stap a.stp" will give an error:
root:/home/root> stap a.stp
ERROR: pointer dereference fault near identifier '$return' at a.stp:3:17
WARNING: Number of errors: 1, skipped probes: 0

objdump of sys_read:
c0000000000b380c <.sys_read>:
c0000000000b380c:	7c 08 02 a6	mflr	r0
c0000000000b3810:	fb 81 ff e0	std	r28,-32(r1)
c0000000000b3814:	fb a1 ff e8	std	r29,-24(r1)
c0000000000b3818:	7c 9c 23 78	mr	r28,r4
c0000000000b381c:	7c bd 2b 78	mr	r29,r5
c0000000000b3820:	f8 01 00 10	std	r0,16(r1)
c0000000000b3824:	f8 21 ff 61	stdu	r1,-160(r1)
c0000000000b3828:	38 81 00 70	addi	r4,r1,112
c0000000000b382c:	48 00 11 e5	bl	c0000000000b4a10 <.fget_light>
c0000000000b3830:	60 00 00 00	nop
c0000000000b3834:	7f a5 eb 78	mr	r5,r29
c0000000000b3838:	7f 84 e3 78	mr	r4,r28
c0000000000b383c:	38 c1 00 78	addi	r6,r1,120
c0000000000b3840:	3b 80 ff f7	li	r28,-9


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=2738

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]