Skip to content

Commit

Permalink
Update libpfm4
Browse files Browse the repository at this point in the history
Current with
commit 5e26b48b6d9b9d5f8c368c81cfe23a54a129bd24
Author: Yoshihiro Furudera <[email protected]>
Date:   Thu Oct 3 16:25:55 2024 +0900

    Enable support for FUJITSU-MONAKA core PMU

    This patch adds support for FUJITSU-MONAKA core PMU. This
    includes ARMv9 generic core events and FUJITSU-MONAKA
    specfic events.

    FUJITSU-MONAKA Specification URL:
    https://github.com/fujitsu/FUJITSU-MONAKA

    Signed-off-by: Yoshihiro Furudera <[email protected]>

Note: The PAPI team at this time does not have access to a machine
with the ARM processor FUJITSU-MONAKA for testing.
  • Loading branch information
Treece Burgess committed Nov 26, 2024
1 parent 7960307 commit ee66f9b
Show file tree
Hide file tree
Showing 10 changed files with 3,050 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/libpfm4/README
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ The library supports many PMUs. The current version can handle:
Applied Micro X-Gene
Qualcomm Krait
Fujitsu A64FX
Fujitsu FUJITSU-MONAKA
Arm Neoverse V1, V2, V3
Arm Neoverse N1, N2, N3
Huawei HiSilicon Kunpeng 920
Expand Down
1 change: 1 addition & 0 deletions src/libpfm4/docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ ARCH_MAN += libpfm_arm_xgene.3 \
libpfm_arm_ac72.3 \
libpfm_arm_ac76.3 \
libpfm_arm_a64fx.3 \
libpfm_arm_monaka.3 \
libpfm_arm_neoverse_n1.3 \
libpfm_arm_neoverse_n2.3 \
libpfm_arm_neoverse_n3.3 \
Expand Down
36 changes: 36 additions & 0 deletions src/libpfm4/docs/man3/libpfm_arm_monaka.3
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
.TH LIBPFM 3 "October, 2024" "" "Linux Programmer's Manual"
.SH NAME
libpfm_arm_monaka - support for Fujitsu FUJITSU-MONAKA PMU
.SH SYNOPSIS
.nf
.B #include <perfmon/pfmlib.h>
.sp
.B PMU name: arm_monaka
.B PMU desc: Fujitsu FUJITSU-MONAKA
.sp
.SH DESCRIPTION
The library supports the Fujitsu FUJITSU-MONAKA core PMU.

This PMU supports 8 counters and privilege levels filtering.
It can operate in 64 bit mode only.

.SH MODIFIERS
The following modifiers are supported on Fujitsu FUJITSU-MONAKA:
.TP
.B u
Measure at the user level. This corresponds to \fBPFM_PLM3\fR.
This is a boolean modifier.
.TP
.B k
Measure at the kernel level. This corresponds to \fBPFM_PLM0\fR.
This is a boolean modifier.
.TP
.B hv
Measure at the hypervisor level. This corresponds to \fBPFM_PLMH\fR.
This is a boolean modifier.

.SH AUTHORS
.nf
Stephane Eranian <[email protected]>
.if
.PP
2 changes: 2 additions & 0 deletions src/libpfm4/include/perfmon/pfmlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,8 @@ typedef enum {
PFM_PMU_ARM_CORTEX_A55, /* ARM Cortex A55 (ARMv8) */
PFM_PMU_ARM_CORTEX_A76, /* ARM Cortex A76 (ARMv8) */
PFM_PMU_ARM_N3, /* Arm Neoverse N3 */

PFM_PMU_ARM_MONAKA, /* Fujitsu FUJITSU-MONAKA processor */
/* MUST ADD NEW PMU MODELS HERE */

PFM_PMU_MAX /* end marker */
Expand Down
1 change: 1 addition & 0 deletions src/libpfm4/lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ INC_ARM64=pfmlib_arm_priv.h \
events/arm_cavium_tx2_events.h \
events/arm_marvell_tx2_unc_events.h \
events/arm_fujitsu_a64fx_events.h \
events/arm_fujitsu_monaka_events.h \
events/arm_neoverse_n1_events.h \
events/arm_neoverse_n2_events.h \
events/arm_neoverse_v1_events.h \
Expand Down
Loading

0 comments on commit ee66f9b

Please sign in to comment.