public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Madadi Vineeth Reddy <vineethr@linux.ibm.com>
To: Yang Jihong <yangjihong@bytedance.com>
Cc: Peter Zijlstra <peterz@infradead.org>,
	mingo@redhat.com, acme@kernel.org, namhyung@kernel.org,
	mark.rutland@arm.com, alexander.shishkin@linux.intel.com,
	jolsa@kernel.org, irogers@google.com, adrian.hunter@intel.com,
	kan.liang@linux.intel.com, linux-perf-users@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Madadi Vineeth Reddy <vineethr@linux.ibm.com>
Subject: Re: [PATCH 1/2] perf sched timehist: Add --show-prio option
Date: Fri, 9 Aug 2024 00:12:28 +0530	[thread overview]
Message-ID: <3f4a68aa-8a74-4698-bf90-d69c315d5ffd@linux.ibm.com> (raw)
In-Reply-To: <20240806015701.1309833-2-yangjihong@bytedance.com>

Hi Yang Jihong,

On 06/08/24 07:27, Yang Jihong wrote:
> The --show-prio option is used to display the priority of task.
> It is disabled by default, which is consistent with original behavior.
> 
> The display format is xxx (priority does not change during task running)
> or xxx->yyy (priority changes during task running)
> 

I had done the following steps.
1) Ran 'perf sched record stress-ng --cpu 32 -l 50 --timeout 40s'
2) Changed the nice value of stress-ng while the record was going on.
ps -C stress-ng -o pid=
64195

renice -n 10 -p 64195

3) Then ran 'perf sched timehist --show-prio'

343918.720052 [0015]  stress-ng[64195]    120  0.013      0.013   21.719
.
.
343958.797257 [0009]  stress-ng[64195]    130  40076.812  0.007   0.393

The output shows the final priority change of stress-ng from 120 to 130,
but the transition format xxx->yyy is not displayed.

Am I missing something?

Thanks and Regards
Madadi Vineeth Reddy

> Testcase:
> 
>   # perf sched record nice -n 9 true
>   [ perf record: Woken up 0 times to write data ]
>   [ perf record: Captured and wrote 0.497 MB perf.data ]


  reply	other threads:[~2024-08-08 18:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-06  1:56 [PATCH 0/2] perf sched timehist: Add --show-prio & --prio option Yang Jihong
2024-08-06  1:57 ` [PATCH 1/2] perf sched timehist: Add --show-prio option Yang Jihong
2024-08-08 18:42   ` Madadi Vineeth Reddy [this message]
2024-08-09  1:59     ` [External] " Yang Jihong
2024-08-06  1:57 ` [PATCH 2/2] perf sched timehist: Add --prio option Yang Jihong
2024-08-16 17:27   ` Namhyung Kim

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=3f4a68aa-8a74-4698-bf90-d69c315d5ffd@linux.ibm.com \
    --to=vineethr@linux.ibm.com \
    --cc=20240806015701.1309833-2-yangjihong@bytedance.com \
    --cc=acme@kernel.org \
    --cc=adrian.hunter@intel.com \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=irogers@google.com \
    --cc=jolsa@kernel.org \
    --cc=kan.liang@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=mingo@redhat.com \
    --cc=namhyung@kernel.org \
    --cc=peterz@infradead.org \
    --cc=yangjihong@bytedance.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