linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] perf/x86/intel: Constify static structs
@ 2021-06-05 15:56 Rikard Falkeborn
  2021-06-05 15:56 ` [PATCH 1/4] perf/x86/intel/uncore: Constify intel_uncore_ops Rikard Falkeborn
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Rikard Falkeborn @ 2021-06-05 15:56 UTC (permalink / raw)
  To: Peter Zijlstra
  Cc: Ingo Molnar, Arnaldo Carvalho de Melo, Mark Rutland,
	Alexander Shishkin, Jiri Olsa, Namhyung Kim, Thomas Gleixner,
	Borislav Petkov, x86, H. Peter Anvin, linux-perf-users,
	linux-kernel, Kan Liang, Alexander Antonov, Rikard Falkeborn

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).

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       |  20 ++---
 arch/x86/events/intel/uncore_snbep.c     | 102 +++++++++++------------
 8 files changed, 86 insertions(+), 86 deletions(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-06-08 19:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-05 15:56 [PATCH 0/4] perf/x86/intel: Constify static structs Rikard Falkeborn
2021-06-05 15:56 ` [PATCH 1/4] perf/x86/intel/uncore: Constify intel_uncore_ops Rikard Falkeborn
2021-06-07 19:09   ` Liang, Kan
2021-06-08 19:17     ` Rikard Falkeborn
2021-06-08 19:50       ` Liang, Kan
2021-06-05 15:56 ` [PATCH 2/4] perf/x86/intel: Constify static attribute_group structs Rikard Falkeborn
2021-06-05 15:56 ` [PATCH 3/4] perf/x86/intel/uncore: Constify freerunning_counters Rikard Falkeborn
2021-06-05 15:56 ` [PATCH 4/4] perf/x86/intel/uncore: Constify unmodified static extra_reg structs Rikard Falkeborn

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).