This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/13283] script -> C translator incorrect comparison (using ==) of kernel_string() operands
- From: "david.pat.skindell at hp dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Wed, 12 Oct 2011 17:53:16 +0000
- Subject: [Bug translator/13283] script -> C translator incorrect comparison (using ==) of kernel_string() operands
- Auto-submitted: auto-generated
- References: <bug-13283-6586@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=13283
--- Comment #7 from David Skindell <david.pat.skindell at hp dot com> 2011-10-12 17:53:16 UTC ---
Comment on attachment 5978
--> http://sourceware.org/bugzilla/attachment.cgi?id=5978
Script to change values in call and compare at return
Output:
dev1.scsi3addr[0]=a, dev2.scsi3addr[0]=b
Comparing using kernel_string() == kernel_string()
Equal? 1
var1 = kernel_string($dev1->scsi3addr)
var2 = kernel_string($dev2->scsi3addr)
Comparing using var1 == var2
Equal? 0
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.