All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Bykowski <marek.bykowski@gmail.com>
To: Dave Jiang <dave.jiang@intel.com>
Cc: Alison Schofield <alison.schofield@intel.com>, linux-cxl@vger.kernel.org
Subject: Re: trace events
Date: Mon, 21 Nov 2022 14:25:40 +0000	[thread overview]
Message-ID: <20221121142540.62ebaa39@ubuntu.armcompdev.pub.tds.tieto.com> (raw)
In-Reply-To: <eb11a59e-d5ac-8ba7-06ec-ff895caffffd@intel.com>

On Fri, 18 Nov 2022 16:22:26 -0700
Dave Jiang <dave.jiang@intel.com> wrote:

> 
> For kernel we are enabling trace events for CXL. But those events are 
> stemmed from hardware events. Ira is enabling CXL events defined by
> the CXL spec and emitted by the devices. Alison is enabling CXL
> events for poison data. And I'm enabling CXL events for PCIe AER
> errors.
> 
> But I think you want different type of events right? i.e. the flow of 
> the driver? I believe ftrace can enable function names for ftrace. Is 
> that what you are looking for?

Apology Dave, my bad. I'm so used to into people saying ftrace
in which they really mean the trace events that I thought you referred
to the latter, which of course isn't true as the two are separate.

Honestly I've never found a real use of the ftrace, except exercising,
as to me it is more a call trace and how a developer designs the SW
rather than how the HW is managed/interogated, but in the absence of the
trace events I re-thought and went down that path.

After a several attempts and finally setting the 'trace_clock'
to global I succeeded. With the 'trace_clock' set local (default)
I had only the last ftrace events logged in - don't know really why.
Actually the ./tools/bootconfig/scripts/ftrace2bconf.sh figured that
out for me walking through the ftrace settings I had configured after
booting the Linux up.

So now with a bootconfig as this
  kernel { trace_options =  sym-addr, hash-ptr, nofunc_stack_trace,
                   \nofunc-no-repeats 
           #trace_event = "module:*"
           trace_clock = global
           trace_buf_size = 2M
           ftrace = function_graph
           max_graph_depth = 5
           ftrace_filter = "*cxl*"
  } 

I'm seeing all the functions with *cxl*.

Thanks again.
Marek

      reply	other threads:[~2022-11-21 14:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-14 20:27 trace events Marek Bykowski
2022-11-18  0:50 ` Alison Schofield
2022-11-18 13:53   ` Marek Bykowski
2022-11-18 15:18     ` Dave Jiang
2022-11-18 22:39       ` Marek Bykowski
2022-11-18 23:22         ` Dave Jiang
2022-11-21 14:25           ` Marek Bykowski [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=20221121142540.62ebaa39@ubuntu.armcompdev.pub.tds.tieto.com \
    --to=marek.bykowski@gmail.com \
    --cc=alison.schofield@intel.com \
    --cc=dave.jiang@intel.com \
    --cc=linux-cxl@vger.kernel.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.