Skip to content

perf/x86/intel: Constify static structs

Rikard Falkeborn linux-perf-users lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 0 repliesNew
  2. v14 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- Introduce rkl_uncore_msr_ops to be able to constify skl_uncore_msr_ops (now all intel_uncore_ops are const).

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4perf/x86/intel/uncore: Constify intel_uncore_opsarch/x86/events/intel/uncore.h arch/x86/events/intel/uncore_discovery.c arch/x86/events/intel/uncore_nhmex.c +2 more+61 -530 replies
2/4perf/x86/intel: Constify static attribute_group structsarch/x86/events/intel/core.c arch/x86/events/intel/cstate.c arch/x86/events/intel/pt.c +2 more+13 -130 replies
3/4perf/x86/intel/uncore: Constify freerunning_countersarch/x86/events/intel/uncore.h arch/x86/events/intel/uncore_snb.c arch/x86/events/intel/uncore_snbep.c+12 -120 replies
4/4perf/x86/intel/uncore: Constify unmodified static extra_reg structsarch/x86/events/intel/uncore_nhmex.c arch/x86/events/intel/uncore_snbep.c+13 -130 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH V2 0/4] perf/x86/intel: Constify static structs

Constify a number of static structs which are not modified to allow the compiler to place them in read-only memory. All in all, it moves ~25kB to read-only memory (if looking at o-files).

Changes since v1:
- Introduce rkl_uncore_msr_ops to be able to constify skl_uncore_msr_ops (now all intel_uncore_ops are const).

Rikard Falkeborn (4):
perf/x86/intel/uncore: Constify intel_uncore_ops perf/x86/intel: Constify static attribute_group structs perf/x86/intel/uncore: Constify freerunning_counters perf/x86/intel/uncore: Constify unmodified static extra_reg structs

 arch/x86/events/intel/core.c             |   8 +-
 arch/x86/events/intel/cstate.c           |  10 +--
 arch/x86/events/intel/pt.c               |   4 +-
 arch/x86/events/intel/uncore.h           |   6 +-
 arch/x86/events/intel/uncore_discovery.c |   6 +-
 arch/x86/events/intel/uncore_nhmex.c     |  16 ++--
 arch/x86/events/intel/uncore_snb.c       |  38 +++++----
 arch/x86/events/intel/uncore_snbep.c     | 102 +++++++++++------------
 8 files changed, 99 insertions(+), 91 deletions(-)
Signature · 1 line
2.32.0