public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Capture user buffers with user_buffer_hex
@ 2021-01-15  2:01 Craig Ringer
  0 siblings, 0 replies; only message in thread
From: Craig Ringer @ 2021-01-15  2:01 UTC (permalink / raw)
  To: systemtap; +Cc: Frank Ch. Eigler

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-15  2:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-15  2:01 [PATCH] Capture user buffers with user_buffer_hex Craig Ringer

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