public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: "wcohen at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: systemtap@sourceware.org
Subject: [Bug translator/24224] tapsets.cxx Assert kernel relocation invariants fails for some kernel.function("*@*.c:*") probes
Date: Tue, 26 Feb 2019 18:44:00 -0000	[thread overview]
Message-ID: <bug-24224-6586-1pXwCGeI0A@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-24224-6586@http.sourceware.org/bugzilla/>

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.

  parent reply	other threads:[~2019-02-26 18:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-15 21:06 [Bug translator/24224] New: " wcohen at redhat dot com
2019-02-15 21:33 ` [Bug translator/24224] " wcohen at redhat dot com
2019-02-22 21:58 ` wcohen at redhat dot com
2019-02-26 15:49 ` wcohen at redhat dot com
2019-02-26 18:44 ` wcohen at redhat dot com [this message]
2019-02-26 19:18 ` wcohen at redhat dot com
2019-02-26 19:23 ` [Bug translator/24224] tapsets.cxx kernel relocation assert fails when attempting to access some function parameters wcohen at redhat dot com
2019-03-08 16:33 ` wcohen at redhat dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-24224-6586-1pXwCGeI0A@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=systemtap@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).