[Bug bpf/24656] New: Target variables for tracepoints differ between traditional sytemtap backend and bpf backend

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug bpf/24656] New: Target variables for tracepoints differ between traditional sytemtap backend and bpf backend

986882896 at qq dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=24656

            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 backend
has a different set of target variables available than the original systemtap
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. For
example the vfs_read probes are the same:

[wcohen@localhost systemtap]$ ../install/bin/stap -L
'kernel.function("vfs_read")'
kernel.function("vfs_read@fs/read_write.c:446") $file:struct file* $buf:char*
$count:size_t $pos:loff_t*
[wcohen@localhost systemtap]$ ../install/bin/stap --bpf -L
'kernel.function("vfs_read")'
kernel.function("vfs_read@fs/read_write.c:446") $file:struct file* $buf:char*
$count:size_t $pos:loff_t*

--
You are receiving this mail because:
You are the assignee for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug bpf/24656] Target variables for tracepoints differ between traditional sytemtap backend and bpf backend

986882896 at qq dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=24656

Frank Ch. Eigler <fche at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |fche at redhat dot com
         Resolution|---                         |DUPLICATE

--- Comment #1 from Frank Ch. Eigler <fche at redhat dot com> ---
dupe

*** This bug has been marked as a duplicate of bug 23866 ***

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