public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: "wcohen at redhat dot com" <sourceware-bugzilla@sourceware.org>
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	[thread overview]
Message-ID: <bug-23866-6586-PPxsid6PW9@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-23866-6586@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=23866

--- Comment #5 from William Cohen <wcohen at redhat dot com> ---
Created attachment 11866
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11866&action=edit
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 sched -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

-- 
You are receiving this mail because:
You are the assignee for the bug.

  parent reply	other threads:[~2019-06-25 13:40 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-06 21:31 [Bug translator/23866] New: " fche at redhat dot com
2019-06-10 14:53 ` [Bug translator/23866] " fche at redhat dot com
2019-06-10 15:58 ` wcohen at redhat dot com
2019-06-12 14:22 ` wcohen at redhat dot com
2019-06-19 15:02 ` wcohen at redhat dot com
2019-06-25 13:40 ` wcohen at redhat dot com [this message]
2019-07-10 15:02 ` wcohen at redhat dot com
2019-07-15 20:00 ` wcohen at redhat dot com
2019-07-16 18:20 ` wcohen at redhat dot com
2019-07-18 14:43 ` wcohen at redhat dot com
2019-07-18 16:02 ` wcohen at redhat dot com

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=bug-23866-6586-PPxsid6PW9@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=systemtap@sourceware.org \
    /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).