From: "Frank Ch. Eigler" <fche@redhat.com>
To: Nir Soffer <nsoffer@redhat.com>
Cc: systemtap@sourceware.org, David Teigland <teigland@redhat.com>
Subject: Re: [PATCH] Fix traceaio with IO_CMD_{PREAD,PWRITE}
Date: Thu, 23 Sep 2021 19:00:11 -0400 [thread overview]
Message-ID: <20210923230011.GC15826@redhat.com> (raw)
In-Reply-To: <CAMRbyyvJseLt_80FdncEdG31HPE9RtCzzLgQpmWHsm39FbSeHQ@mail.gmail.com>
Hi -
> This works:
>
> global IO_CMD_PREADV = 7
> global IO_CMD_PWRITEV = 8
>
> Do we have a better way to handle this?
Within a tapset snippet, code can use
@const("IO_CMD_PREADV")
referring to an identifier in embedded-C scope.
If the IO_CMD_PREADV identifier were an enum value that shows up in
DWARF, then $IO_CMD_PREADV can resolve in recent versions of stap.
If none of the above, yeah, use the global gadget.
- FChE
next prev parent reply other threads:[~2021-09-23 23:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-23 17:49 Nir Soffer
2021-09-23 22:21 ` Nir Soffer
2021-09-23 23:00 ` Frank Ch. Eigler [this message]
2021-09-29 9:14 ` Nir Soffer
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=20210923230011.GC15826@redhat.com \
--to=fche@redhat.com \
--cc=nsoffer@redhat.com \
--cc=systemtap@sourceware.org \
--cc=teigland@redhat.com \
/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).