public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug bpf/25177] New: stap --bpf -c does not work as specified
@ 2019-11-08 15:58 me at serhei dot io
  2021-02-04 16:31 ` [Bug bpf/25177] " wcohen at redhat dot com
  2021-02-25 20:32 ` me at serhei dot io
  0 siblings, 2 replies; 3+ messages in thread
From: me at serhei dot io @ 2019-11-08 15:58 UTC (permalink / raw)
  To: systemtap

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug bpf/25177] stap --bpf -c does not work as specified
  2019-11-08 15:58 [Bug bpf/25177] New: stap --bpf -c does not work as specified me at serhei dot io
@ 2021-02-04 16:31 ` wcohen at redhat dot com
  2021-02-25 20:32 ` me at serhei dot io
  1 sibling, 0 replies; 3+ messages in thread
From: wcohen at redhat dot com @ 2021-02-04 16:31 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=25177

William Cohen <wcohen at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |agentzh at gmail dot com

--- Comment #1 from William Cohen <wcohen at redhat dot com> ---
*** Bug 27032 has been marked as a duplicate of this bug. ***

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug bpf/25177] stap --bpf -c does not work as specified
  2019-11-08 15:58 [Bug bpf/25177] New: stap --bpf -c does not work as specified me at serhei dot io
  2021-02-04 16:31 ` [Bug bpf/25177] " wcohen at redhat dot com
@ 2021-02-25 20:32 ` me at serhei dot io
  1 sibling, 0 replies; 3+ messages in thread
From: me at serhei dot io @ 2021-02-25 20:32 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=25177

Serhei Makarov <me at serhei dot io> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Serhei Makarov <me at serhei dot io> ---
implemented as of 76d56671cb

Had to link in start_cmd() from staprun to avoid too much redundant code.
(That raises the possibility of also using dbug(), err(), warn() in stapbpf
with their better formatting and colorization. But not relevant to this bug.)

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-02-25 20:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-08 15:58 [Bug bpf/25177] New: stap --bpf -c does not work as specified me at serhei dot io
2021-02-04 16:31 ` [Bug bpf/25177] " wcohen at redhat dot com
2021-02-25 20:32 ` me at serhei dot io

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).