This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/23866] dissonance between kernel tracepoint parametrization, lkm vs bpf
- From: "wcohen at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Tue, 16 Jul 2019 18:20:33 +0000
- Subject: [Bug translator/23866] dissonance between kernel tracepoint parametrization, lkm vs bpf
- Auto-submitted: auto-generated
- References: <bug-23866-6586@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=23866
William Cohen <wcohen at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #11907|0 |1
is obsolete| |
--- Comment #8 from William Cohen <wcohen at redhat dot com> ---
Created attachment 11909
--> https://sourceware.org/bugzilla/attachment.cgi?id=11909&action=edit
Revised version of the WIP bpf raw tracepoint support
This patch includes configurations machinery to eliminate the stapbfp bpf raw
tracepoints stuff that requires some additional data structure fields and enum
types that are not available on RHEL7.
The access the various fields look reasonable in the following example:
$ uname -a
Linux localhost.localdomain 5.3.0-0.rc0.git4.1.fc31.x86_64 #1 SMP Fri Jul 12
13:34:54 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
$ ../install/bin/stap -k -e 'probe kernel.trace("sched_switch"){printf("%d
%s(%d) %s(%d)\n", $preempt, kernel_string($prev->comm), $prev->pid,
kernel_string($next->comm), $next->pid)}' -T 0.01
1 stapio(1505) systemd-journal(576)
0 systemd-journal(576) rcu_sched(11)
0 rcu_sched(11) ksoftirqd/0(10)
0 ksoftirqd/0(10) rcu_sched(11)
0 rcu_sched(11) stapio(1505)
0 stapio(1505) stapio(1508)
0 stapio(1508) swapper/0(0)
0 swapper/0(0) rcu_sched(11)
0 rcu_sched(11) swapper/0(0)
Keeping temporary directory "/tmp/stapto4iHA"
$ more /proc/576/comm
systemd-journal
$ more /proc/11/comm
rcu_sched
--
You are receiving this mail because:
You are the assignee for the bug.