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 translator/24224] tapsets.cxx Assert kernel relocation invariants fails for some kernel.function("*@*.c:*") probes


https://sourceware.org/bugzilla/show_bug.cgi?id=24224

--- Comment #4 from William Cohen <wcohen at redhat dot com> ---
The problem is tied to accessing target variables.  According to the linux
source code in net/core/dev.c there are 2 target variables:

int dev_set_mac_address(struct net_device *dev, struct sockaddr *sa)
{
...

stap listing lists the two of them:

$ stap -L 'kernel.function("dev_set_mac_address")'
kernel.function("dev_set_mac_address@net/core/dev.c:7715") $dev:struct
net_device* $sa:struct sockaddr*

When going through the $dev and $sa from the source code $dev okay, but $sa has
a problem:

[wcohen@cervelo pr24224]$ ../install/bin/stap -p4  -e 'probe
kernel.function("dev_set_mac_address") { printf("%x\n", $dev); exit() }'
/home/wcohen/.systemtap/cache/cd/stap_cdef9e8a2d4b9d5a0e4252d87f28b7c2_1881.ko
[wcohen@cervelo pr24224]$ ../install/bin/stap -p4  -e 'probe
kernel.function("dev_set_mac_address") { printf("%x\n", $sa); exit() }'
semantic error: inconsistent relocation address: keyword at <input>:1:1
        source: probe kernel.function("dev_set_mac_address") { printf("%x\n",
$sa); exit() }
                ^

Pass 2: analysis failed.  [man error::pass2]

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

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