From: Craig Ringer <craig@2ndquadrant.com>
To: systemtap@sourceware.org
Cc: "Frank Ch. Eigler" <fche@redhat.com>
Subject: [PATCH] Capture user buffers with user_buffer_hex
Date: Fri, 15 Jan 2021 10:01:26 +0800 [thread overview]
Message-ID: <CAMsr+YGnkNZu4CZOVyUy8pzTJAW60AbwnWbe+WopYDeLA_ab_w@mail.gmail.com> (raw)
Hi
The set of patches listed below adds new functions user_buffer_hex and
buffer_hex for the uconversions and conversions tapsets respectively. A few
helper variants are added too.
These functions allow systemtap scripts to capture and output easily parsed
userspace data in hexadecimal format.
I'd like to add another helper that prints the buffer, with an optional
prefix, without releasing the lock on the output stream so it can't get
interleaved with other output from concurrent probes. But I got a bit
bogged doing that so I'll see about submitting a separate patch for it.
To apply it you'll need to first apply another patch that reworks the tests
a little.
Prereq: https://sourceware.org/bugzilla/show_bug.cgi?id=27185
Patch: https://sourceware.org/bugzilla/show_bug.cgi?id=27187
I also wrote a small unrelated docs patch to cover the CONTEXT var for
embedded C, here: https://sourceware.org/bugzilla/show_bug.cgi?id=27186
--
Craig Ringer http://www.2ndQuadrant.com/
2ndQuadrant - PostgreSQL Solutions for the Enterprise
reply other threads:[~2021-01-15 2:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAMsr+YGnkNZu4CZOVyUy8pzTJAW60AbwnWbe+WopYDeLA_ab_w@mail.gmail.com \
--to=craig@2ndquadrant.com \
--cc=fche@redhat.com \
--cc=systemtap@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).