From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 83004 invoked by alias); 18 Jul 2019 16:02:41 -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 82968 invoked by uid 48); 18 Jul 2019 16:02:37 -0000 From: "wcohen at redhat dot com" To: systemtap@sourceware.org Subject: [Bug translator/23866] dissonance between kernel tracepoint parametrization, lkm vs bpf Date: Thu, 18 Jul 2019 16:02: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: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution 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-q3/txt/msg00021.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D23866 William Cohen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #10 from William Cohen --- This should be addressed by the following commit: commit fcdd71babea2435601e5e7f8b6b5faae4a663443 Author: William Cohen Date: Thu Jul 18 11:37:37 2019 -0400 PR23866: Make the bpf backend use BPF raw tracepoints for kernel.trace(= "*") The BPF raw tracepoints provide arguments that better match the Systemtap lkm kernel tracepoint probes than regular BPF tracepoints. The BPF backend will use the BPF raw tracepoints unless the user specifies the old behavior with a --compatible=3D4.1 option on the commandline to address. The new BPF raw tracepoints and their argument are discovered in the same way as the old BPF tracepoints. A number of small machine generated C files are generated with macros are compiled to query the available tracepoints in the kernel. Debug information describing the data structures passed into the BPF tracepoints is examined to determine the type and location of the tracepoint arguments. Each probe handler BPF code for BPF raw tracepoints is put into a raw_trace section as the method of registering the BPF raw tracepoints is different than the regular BPF tracepoints. The bpf tests have been revised to include the --compatible=3D4.1 option for the tests where it makes a difference. --=20 You are receiving this mail because: You are the assignee for the bug.