[PATCH 2/2] new example: capture_ssl_master_secrets.stp

Frank Ch. Eigler fche@redhat.com
Wed Nov 1 00:36:00 GMT 2017


timo.lindfors wrote:

> Hmm. That seems to call _stp_text_str which calls _stp_decode_utf8
> which is completely unnecessary for printing binary data?

I wouldn't read too much into the utf8 angle here.  Those functions make
an effort to quote the buffer into readable text.  If you want a
hexdump, there's printf("%*.M", buffer, size).  Maybe we could have a
function that prints an old-school hex/ascii side-by-side dump?

- FChE



More information about the Systemtap mailing list