From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5011 invoked by alias); 10 Jun 2019 14:35:49 -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 4949 invoked by uid 48); 10 Jun 2019 14:35:46 -0000 From: "wcohen at redhat dot com" To: systemtap@sourceware.org Subject: [Bug bpf/24656] New: Target variables for tracepoints differ between traditional sytemtap backend and bpf backend Date: Mon, 10 Jun 2019 14:35:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: bpf 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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-q2/txt/msg00080.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D24656 Bug ID: 24656 Summary: Target variables for tracepoints differ between traditional sytemtap backend and bpf backend Product: systemtap Version: unspecified Status: NEW Severity: normal Priority: P2 Component: bpf Assignee: systemtap at sourceware dot org Reporter: wcohen at redhat dot com Target Milestone: --- After getting the target() function working I expected that the cycle_thief= .stp example would work with the bpf backend. However, found that the bpf backe= nd has a different set of target variables available than the original systemt= ap kernel module backend: [wcohen@localhost systemtap]$ ../install/bin/stap -L 'kernel.trace("sched_switch")' kernel.trace("sched:sched_switch") $preempt:bool $prev:struct task_struct* $next:struct task_struct* [wcohen@localhost systemtap]$ ../install/bin/stap --bpf -L 'kernel.trace("sched_switch")' kernel.trace("sched:sched_switch") $prev_comm:char[] $prev_pid:pid_t $prev_prio:int $prev_state:long int $next_comm:char[] $next_pid:pid_t $next_prio:int Did not see this type of difference between probes for a kernel function. F= or example the vfs_read probes are the same: [wcohen@localhost systemtap]$ ../install/bin/stap -L 'kernel.function("vfs_read")'=20 kernel.function("vfs_read@fs/read_write.c:446") $file:struct file* $buf:cha= r* $count:size_t $pos:loff_t* [wcohen@localhost systemtap]$ ../install/bin/stap --bpf -L 'kernel.function("vfs_read")'=20 kernel.function("vfs_read@fs/read_write.c:446") $file:struct file* $buf:cha= r* $count:size_t $pos:loff_t* --=20 You are receiving this mail because: You are the assignee for the bug.