From: Jiri Olsa <olsajiri@gmail.com>
To: trinity pointard <trinity.pointard@gmail.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: possible regression in perf
Date: Tue, 12 Dec 2023 13:11:42 +0100 [thread overview]
Message-ID: <ZXhN_j8UShp1JAlf@krava> (raw)
In-Reply-To: <CANiTRwdm56EJkY=HN+OnD1y++MT6zxEpX3dqoThELMRsUyFTEw@mail.gmail.com>
On Mon, Dec 11, 2023 at 07:00:51PM +0100, trinity pointard wrote:
> Hi,
>
> I think I found a regression in perf related to the control fd.
> At its introduction (bee328cb71eb0b38ab128d7c475209d973a13f92), it
> looks like enabling or disabling counters would print the current
> counters. However when `enable/disable <counter>` was introduced
> (991ae4eb36911fe9a99bef1c22b9578ceec3896a), it changed what
> `evlist__ctlfd_process()` would return on a successful enable/disable,
> which made the call to `process_interval()` in `process_evlist()`
> essentially dead code.
>
> I was in the process of patching perf so that `snapshot` would print
> current counters (in which case I would send enable, sleep a bit, and
> send disable+snapshot, to do my measurements). But given what I saw, I
> think just sending enable and disable was enough at one point.
>
> Is this a known issue? Would a patch which makes
> `evlist__ctlfd_enable()` return 1 on success be an acceptable fix?
> It's somewhat more verbose than what I wanted initially (printing both
> on enable and disable, printing on enable isn't useful to me), but
> that's reasonably easy to post-process (or enable could be made to not
> print current counters).
>
> Regards,
> trinity-1686a/trinity Pointard
>
> P.S.: this is my first time posting to LKML, please tell me if I did
> anything wrong :-)
hi,
thanks for the report, could you please send proposed change as patch
and steps to reproduce the issue?
jirka
next prev parent reply other threads:[~2023-12-12 12:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-11 18:00 possible regression in perf trinity pointard
2023-12-12 12:11 ` Jiri Olsa [this message]
2023-12-14 23:14 ` [PATCH] fix perf-stat regression printing stat on enable/disable trinity Pointard
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=ZXhN_j8UShp1JAlf@krava \
--to=olsajiri@gmail.com \
--cc=linux-perf-users@vger.kernel.org \
--cc=trinity.pointard@gmail.com \
/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 NNTP newsgroup(s).