All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Menzel <pmenzel@molgen.mpg.de>
To: intel-wired-lan@osuosl.org
Subject: [Intel-wired-lan] [PATCH net-next v3] ice: add tracepoints
Date: Tue, 22 Jun 2021 10:23:14 +0200	[thread overview]
Message-ID: <43730a28-ccc6-1898-97b5-b4833038a425@molgen.mpg.de> (raw)
In-Reply-To: <20210608233517.3135522-1-jesse.brandeburg@intel.com>

Dear Jesse,


Am 09.06.21 um 01:35 schrieb Jesse Brandeburg:
> This patch is modeled after one by Scott Peterson for i40e.
> 
> Add tracepoints to the driver, via a new file ice_trace.h and some new
> trace calls added in interesting places in the driver. Add some tracing
> for DIMLIB to help debug interrupt moderation problems.
> 
> Performance should not be affected, and this can be very useful
> for debugging and adding new trace events to paths in the future.
> 
> Note eBPF programs can attach to these events, as well as perf
> can count them since we're attaching to the events subsystem
> in the kernel.
> 
> Co-developed-by: Ben Shelton <benjamin.h.shelton@intel.com>
> Signed-off-by: Ben Shelton <benjamin.h.shelton@intel.com>
> Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
> ---
> NOTE: checkpatch will complain about this patch due to the macros
> defining the new trace functionality being formatted for readability.
> 
> Testing Hints:
> See that performance is unaffected while tracepoints are present but
> disabled (default state). Enable them all and see they appear in
> /sys/kernel/debug/tracing/trace when exercised, and after 'make install'
> you can see the events in perf list.
> 
> When disabled, a tracepoint reduces to a 5-byte no-op. When enabled,
> that code is patched to jump to the tracepoint clause, which is located
> somewhere nearby.  See include/linux/jump_label.h for info in static
> keys, and samples/trace-events/trace-events-samples.[ch] for info on the
> trace events.
> 
> To test tracepoints:
> insmod ice and bring up a link
> cd /sys/kernel/debug/tracing
> echo > trace
> echo 1 > events/ice/enable
> send something over ice
> cat trace
> echo 0 > events/ice/enable

I?d put that example into the commit message.

[?]


Kind regards,

Paul

      parent reply	other threads:[~2021-06-22  8:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-08 23:35 [Intel-wired-lan] [PATCH net-next v3] ice: add tracepoints Jesse Brandeburg
2021-06-21 22:00 ` Brelinski, TonyX
2021-06-22  8:23 ` Paul Menzel [this message]

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=43730a28-ccc6-1898-97b5-b4833038a425@molgen.mpg.de \
    --to=pmenzel@molgen.mpg.de \
    --cc=intel-wired-lan@osuosl.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.