* [Bug bpf/23510] New: Tapset function println() not supported in the bpf runtime
@ 2018-08-10 23:13 agentzh at gmail dot com
2018-08-17 15:45 ` [Bug bpf/23510] " me at serhei dot io
0 siblings, 1 reply; 2+ messages in thread
From: agentzh at gmail dot com @ 2018-08-10 23:13 UTC (permalink / raw)
To: systemtap
https://sourceware.org/bugzilla/show_bug.cgi?id=23510
Bug ID: 23510
Summary: Tapset function println() not supported in the bpf
runtime
Product: systemtap
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: bpf
Assignee: systemtap at sourceware dot org
Reporter: agentzh at gmail dot com
Target Milestone: ---
The `println()` tapset function is not recognized in the bpf runtime mode:
```
$ stap --bpf -e 'probe begin { println("hello world") exit() }'
semantic error: unhandled statement or expression type: string 'hello world' at
<input>:1:23
source: probe begin { println( ... hello world ... "hello world")
exit() }
^
Pass 4: compilation failed. [man error::pass4]
```
Because it can be a popular choice for testing the bpf runtime with a hello
world one-liner, it would be great if we can have it implemented ;)
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug bpf/23510] Tapset function println() not supported in the bpf runtime
2018-08-10 23:13 [Bug bpf/23510] New: Tapset function println() not supported in the bpf runtime agentzh at gmail dot com
@ 2018-08-17 15:45 ` me at serhei dot io
0 siblings, 0 replies; 2+ messages in thread
From: me at serhei dot io @ 2018-08-17 15:45 UTC (permalink / raw)
To: systemtap
https://sourceware.org/bugzilla/show_bug.cgi?id=23510
Serhei Makarov <me at serhei dot io> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |me at serhei dot io
Resolution|--- |FIXED
Assignee|systemtap at sourceware dot org |me at serhei dot io
--- Comment #1 from Serhei Makarov <me at serhei dot io> ---
println() is now supported in upstream git with the latest string handling
code.
Commit 80b95e4 allowed string literals in other places than printf(), enabling
the already existing visit_print_format implementation to handle print and
println in addition to printf.
Commit 9b58c9b fixes a bug where the println() implementation would fail to
'tag' its format string properly for the transport layer, causing a segfault in
the bpf userspace interpreter when it tried to strip the nonexistent tag.
Related issues are PR23405 (string support), PR21888 (support other logging
functions).
I have personally confirmed the 'hello world' use case to work ;)
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-08-17 15:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-10 23:13 [Bug bpf/23510] New: Tapset function println() not supported in the bpf runtime agentzh at gmail dot com
2018-08-17 15:45 ` [Bug bpf/23510] " 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).