Linux Perf Users
 help / color / mirror / Atom feed
From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Tejas Manhas <tejas05@linux.ibm.com>
Cc: Gautam Menghani <Gautam.Menghani@ibm.com>,
	peterz@infradead.org, mingo@redhat.com, namhyung@kernel.org,
	mark.rutland@arm.com, alexander.shishkin@linux.intel.com,
	jolsa@kernel.org, irogers@google.com, adrian.hunter@intel.com,
	james.clark@linaro.org, atrajeev@linux.ibm.com,
	Gautam Menghani <gautam@linux.ibm.com>,
	linux-perf-users@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] perf script powerpc: Update the hcall list with new hcalls
Date: Fri, 29 May 2026 21:01:41 -0300	[thread overview]
Message-ID: <ahoo5dI-6fVlFvvR@x1> (raw)
In-Reply-To: <61c8d600-72b4-4320-a1ff-18e061569f24@linux.ibm.com>

On Wed, May 20, 2026 at 09:25:08AM +0530, Tejas Manhas wrote:
> From: Gautam Menghani [1]<gautam@linux.ibm.com>
> 
> Update the hcall list with the hcalls in bcc's ppchcalls script [1].
> 
> [1] : [2]https://github.com/iovisor/bcc/blob/master/tools/ppchcalls.py
> 
> 
> Hi Gautam,
> 
> This patch doesn't seem to resolve the issue where numbers are seen instead of h
> calls.
> I have applied to the latest upstream but the numbers are still visible in perf
> script.
> Also the command doesn't recognise python-audit already present in the system.
> 
> Please find logs below for better understanding.

Any progress on this?

- Arnaldo
 
> before patch
> # perf record -a -e powerpc:hcall* sleep 10
> [ perf record: Woken up 1 times to write data ]
> [ perf record: Captured and wrote 0.343 MB perf.data (2388 samples) ]
> [root@ltcden14-lp10 perf]# perf script  -s ./powerpc-hcalls.py -i ./perf.data
> Install the python-audit package to get syscall names.
> For example:
>   # apt-get install python3-audit (Ubuntu)
>   # yum install python3-audit (Fedora)
>   etc.
> 
> hcall                            count   min(ns)   max(ns)   avg(ns)
> --------------------------------------------------------------------
> H_VIO_SIGNAL                       614       376     14068      1644
> 584                                 36      1094     16120      2839
> H_ADD_LOGICAL_LAN_BUFFER             9       660      3572      1320
> H_STUFF_TCE                        132       632     12530      1310
> H_PUT_TCE                          236       466      5500       865
> H_RANDOM                             4       446      3300      1168
> H_PUT_TCE_INDIRECT                  53       648     14318      2066
> H_SEND_CRQ                         108       848      7754      1983
> after patch
> # yum install python3-audit
> Updating Subscription Management repositories.
> Unable to read consumer identity
> 
> This system is not registered with an entitlement server. You can use subscripti
> on-manager to register.
> 
> rhe12_debug1                                    8.4 kB/s | 1.5 kB     00:00
> rh102_base_upd                                   41 kB/s | 2.7 kB     00:00
> rh102_app_upd                                    14 kB/s | 2.8 kB     00:00
> rh102_crb                                        14 kB/s | 2.7 kB     00:00
> rh102_srcbase                                   7.6 kB/s | 1.5 kB     00:00
> rh102_srcas                                     6.9 kB/s | 1.5 kB     00:00
> rh102_debug                                     7.1 kB/s | 1.5 kB     00:00
> rhe102_debug1                                   7.1 kB/s | 1.5 kB     00:00
> Package python3-audit-4.0.3-5.el10.ppc64le is already installed.
> Dependencies resolved.
> Nothing to do.
> Complete!
> # ./perf script -s scripts/python/powerpc-hcalls.py -i ./perf.data
> Install the python-audit package to get syscall names.
> For example:
>   # apt-get install python3-audit (Ubuntu)
>   # yum install python3-audit (Fedora)
>   etc.
> 
> hcall                            count   min(ns)   max(ns)   avg(ns)
> --------------------------------------------------------------------
> H_VIO_SIGNAL                       533       404     13154      1638
> 584                                 37      1034     14722      3178
> H_ADD_LOGICAL_LAN_BUFFER             8       802      2602      1217
> H_SEND_CRQ                          11       926     17536      4105
> H_STUFF_TCE                         13       658      5306      1974
> H_PUT_TCE                           18       476      5034      1476
> H_PUT_TCE_INDIRECT                   5      1698      8934      4370
> [root@ltcden14-lp10 perf]#
> 
> Please add the tag below.
> Reported-by: Tejas Manhas [4]<tejas05@linux.ibm.com>
> 
> Thanks & Regards,
> Tejas
> 
> References
> 
>    1. mailto:gautam@linux.ibm.com
>    2. https://github.com/iovisor/bcc/blob/master/tools/ppchcalls.py
>    3. mailto:gautam@linux.ibm.com
>    4. mailto:tejas05@linux.ibm.com

      parent reply	other threads:[~2026-05-30  0:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-12  8:46 [PATCH] perf script powerpc: Update the hcall list with new hcalls Gautam Menghani
     [not found] ` <61c8d600-72b4-4320-a1ff-18e061569f24@linux.ibm.com>
2026-05-30  0:01   ` Arnaldo Carvalho de Melo [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=ahoo5dI-6fVlFvvR@x1 \
    --to=acme@kernel.org \
    --cc=Gautam.Menghani@ibm.com \
    --cc=adrian.hunter@intel.com \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=atrajeev@linux.ibm.com \
    --cc=gautam@linux.ibm.com \
    --cc=irogers@google.com \
    --cc=james.clark@linaro.org \
    --cc=jolsa@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=mark.rutland@arm.com \
    --cc=mingo@redhat.com \
    --cc=namhyung@kernel.org \
    --cc=peterz@infradead.org \
    --cc=tejas05@linux.ibm.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