Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cdd6c482 authored by Ingo Molnar's avatar Ingo Molnar
Browse files

perf: Do the big rename: Performance Counters -> Performance Events

Bye-bye Performance Counters, welcome Performance Events!

In the past few months the perfcounters subsystem has grown out its
initial role of counting hardware events, and has become (and is
becoming) a much broader generic event enumeration, reporting, logging,
monitoring, analysis facility.

Naming its core object 'perf_counter' and naming the subsystem
'perfcounters' has become more and more of a misnomer. With pending
code like hw-breakpoints support the 'counter' name is less and
less appropriate.

All in one, we've decided to rename the subsystem to 'performance
events' and to propagate this rename through all fields, variables
and API names. (in an ABI compatible fashion)

The word 'event' is also a bit shorter than 'counter' - which makes
it slightly more convenient to write/handle as well.

Thanks goes to Stephane Eranian who first observed this misnomer and
suggested a rename.

User-space tooling and ABI compatibility is not af...
parent dfc65094
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -390,7 +390,7 @@
#define __NR_preadv			(__NR_SYSCALL_BASE+361)
#define __NR_pwritev			(__NR_SYSCALL_BASE+362)
#define __NR_rt_tgsigqueueinfo		(__NR_SYSCALL_BASE+363)
#define __NR_perf_counter_open		(__NR_SYSCALL_BASE+364)
#define __NR_perf_event_open		(__NR_SYSCALL_BASE+364)

/*
 * The following SWIs are ARM private.
+1 −1
Original line number Diff line number Diff line
@@ -373,7 +373,7 @@
		CALL(sys_preadv)
		CALL(sys_pwritev)
		CALL(sys_rt_tgsigqueueinfo)
		CALL(sys_perf_counter_open)
		CALL(sys_perf_event_open)
#ifndef syscalls_counted
.equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls
#define syscalls_counted
+1 −1
Original line number Diff line number Diff line
@@ -381,7 +381,7 @@
#define __NR_preadv		366
#define __NR_pwritev		367
#define __NR_rt_tgsigqueueinfo	368
#define __NR_perf_counter_open	369
#define __NR_perf_event_open	369

#define __NR_syscall		370
#define NR_syscalls		__NR_syscall
+1 −1
Original line number Diff line number Diff line
@@ -1620,7 +1620,7 @@ ENTRY(_sys_call_table)
	.long _sys_preadv
	.long _sys_pwritev
	.long _sys_rt_tgsigqueueinfo
	.long _sys_perf_counter_open
	.long _sys_perf_event_open

	.rept NR_syscalls-(.-_sys_call_table)/4
	.long _sys_ni_syscall
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ config FRV
	default y
	select HAVE_IDE
	select HAVE_ARCH_TRACEHOOK
	select HAVE_PERF_COUNTERS
	select HAVE_PERF_EVENTS

config ZONE_DMA
	bool
Loading