]> sourceware.org Git - systemtap.git/commit
PR21888 WIP: basic bpf variants of logging functions
authorSerhei Makarov <smakarov@redhat.com>
Mon, 23 Jul 2018 16:08:53 +0000 (12:08 -0400)
committerSerhei Makarov <smakarov@redhat.com>
Mon, 23 Jul 2018 16:08:53 +0000 (12:08 -0400)
commitbe31be3ff2066fbff18470189835737e14bf69b9
tree7575d07fce1b7b02fc4a6f910d2ecf4551eb34bd
parent42ee7b050e112f2e90467ce8c3865755d21531eb
PR21888 WIP: basic bpf variants of logging functions

The prior patch for PR23407 allows some progress on this.

Not everything works yet: PR23435 means some output could get
swallowed in a probe that calls exit(). Moreover assert() does
not work yet -- need to check what must be changed to allow
the string to be passed into a nested call.

* tapset/logging.stp (log): add bpf variant.
(warn): add basic bpf variant.
(error): actually print the error in bpf variant.

* testsuite/systemtap.bpf/bpf_tests/string2.stp: add testcase.
tapset/logging.stp
testsuite/systemtap.bpf/bpf_tests/string2.stp [new file with mode: 0644]
This page took 0.028583 seconds and 5 git commands to generate.