This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: where is the list of kernel tracepoint defined?
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: David Smith <dsmith at redhat dot com>
- Cc: Shiyao Ma <i at introo dot me>, Arkady <arkady dot miasnikov at gmail dot com>, systemtap at sourceware dot org
- Date: Tue, 28 Mar 2017 15:02:35 -0400
- Subject: Re: where is the list of kernel tracepoint defined?
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=fche at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com BA2409E61D
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com BA2409E61D
- References: <CAJQX3DzacT_4coaO6Gv4+sdnuczMkVqUi+82e0OBAUR7Mdcezg@mail.gmail.com> <CANA-60ryM5DtRSLYW9jkmWp4L_97tKJZyha0zntFOQfNvNHFBw@mail.gmail.com> <CAKFOr-ZbEAh9ikaYVRu+VmHtsZYFazP8BKf6-pj2=5GHM+GK_Q@mail.gmail.com> <CAJQX3DzDofTfp=8pSUMLEVms53+YN5yGmHQ46aGroB1VT2U9-g@mail.gmail.com> <CAKFOr-b8Z1bWJ6gFib1a_yyhEd66eKe-96DzwES9jpEPPZwD0g@mail.gmail.com>
dsmith wrote:
> [...] Note that there are some 'virtual' kernel tracepoints (like the
> syscall ones) that systemtap doesn't list since we can't use them.
Please excuse the pedantry: as you know, there are real kernel
tracepoint beneath those virtual ones. stap can attach to them, and
open-code the same demultiplexing test that the kernel perf probes do
for the virtual tracepoints.
perf's syscall:read
stap's probe kernel.trace("sys_enter") {
if (syscall_name($id) != "read")
next; ....
}
- FChE