[Bug bpf/25177] New: stap --bpf -c does not work as specified

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Bug bpf/25177] New: stap --bpf -c does not work as specified

fweimer at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25177

            Bug ID: 25177
           Summary: stap --bpf -c does not work as specified
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: bpf
          Assignee: systemtap at sourceware dot org
          Reporter: me at serhei dot io
  Target Milestone: ---

With test.stp:

probe begin {
  printf("BEGIN\n")
}

probe process("/opt/stap-master/bin/stap").function("main") {
  printf("found it\n")
  exit()
}

probe end {
  printf("END PASS\n")
}


$ sudo /opt/stap-master/bin/stap test.stp -c '/opt/stap-master/bin/stap -V'
Systemtap translator/driver (version 4.2/0.174, commit
release-4.1-100-ga8c7c8f114fa + changes)
Copyright (C) 2005-2019 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
tested kernel versions: 2.6.18 ... 5.1-rc2
enabled features: AVAHI BOOST_STRING_REF DYNINST BPF JAVA PYTHON2 PYTHON3
LIBRPM LIBSQLITE3 LIBVIRT LIBXML2 NLS NSS READLINE
BEGIN
found it
END PASS

But the same invocation with --bpf does not launch the command:

$ sudo /opt/stap-master/bin/stap test.stp -c '/opt/stap-master/bin/stap -V'
--bpf
BEGIN
...

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