From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 75550 invoked by alias); 25 Jun 2019 13:40:22 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 75512 invoked by uid 48); 25 Jun 2019 13:40:18 -0000 From: "wcohen at redhat dot com" To: systemtap@sourceware.org Subject: [Bug translator/23866] dissonance between kernel tracepoint parametrization, lkm vs bpf Date: Tue, 25 Jun 2019 13:40:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: translator X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wcohen at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2019-q2/txt/msg00115.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D23866 --- Comment #5 from William Cohen --- Created attachment 11866 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D11866&action=3Ded= it WIP patch to generate raw tracepoints This patch makes switching over to using the raw tracepoints to better match how the traditional kernel.trace("*") works. Really simple example: $ sudo ../install/bin/stap -k --bpf -m sched -e 'probe kernel.trace("sched_switch"){printf("hello raw_trace\n");exit()}' ^CWARNING: kbuild exited with signal: 15 (Terminated) Keeping temporary directory "/tmp/stap1oJtAx" [wcohen@localhost systemtap]$ sudo ../install/bin/stap -v -k --bpf -m sche= d -e 'probe kernel.trace("sched_switch"){printf("hello raw_trace\n");exit()}' Pass 1: parsed user script and 50 library scripts using 250476virt/23932res/9152shr/14732data kb, in 10usr/10sys/17real ms. Pass 2: analyzed script: 1 probe, 3 functions, 0 embeds, 0 globals using 256284virt/30968res/10176shr/20540data kb, in 65900usr/28890sys/101380real = ms. Pass 4: compiled BPF into "sched.bo" in 0usr/0sys/13real ms. Pass 5: starting run. hello raw_trace Pass 5: run completed in 0usr/0sys/6real ms. Keeping temporary directory "/tmp/stapYOYGrA" This patch still has a number of issues that need to be addressed: -testing whether raw tracepoints are available on the kernel -recognizing arguments for tracepoints -generating bpf to access those arguments --=20 You are receiving this mail because: You are the assignee for the bug.