From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 66691 invoked by alias); 26 Feb 2019 18:44:42 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 66118 invoked by uid 48); 26 Feb 2019 18:44:36 -0000 From: "wcohen at redhat dot com" 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 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: translator X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wcohen at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2019-q1/txt/msg00053.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D24224 --- Comment #4 from William Cohen --- 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 :1:1 source: probe kernel.function("dev_set_mac_address") { printf("%x\n= ", $sa); exit() } ^ Pass 2: analysis failed. [man error::pass2] --=20 You are receiving this mail because: You are the assignee for the bug.