perf/core: Rename 'enum perf_event_active_state'
Its a weird name, active is one of the states, it should not be part of the name, also, its too long. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
committed by
Ingo Molnar
parent
3c5c8711dc
commit
8ca2bd41c7
@@ -485,9 +485,9 @@ struct perf_addr_filters_head {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* enum perf_event_active_state - the states of a event
|
* enum perf_event_state - the states of a event
|
||||||
*/
|
*/
|
||||||
enum perf_event_active_state {
|
enum perf_event_state {
|
||||||
PERF_EVENT_STATE_DEAD = -4,
|
PERF_EVENT_STATE_DEAD = -4,
|
||||||
PERF_EVENT_STATE_EXIT = -3,
|
PERF_EVENT_STATE_EXIT = -3,
|
||||||
PERF_EVENT_STATE_ERROR = -2,
|
PERF_EVENT_STATE_ERROR = -2,
|
||||||
@@ -578,7 +578,7 @@ struct perf_event {
|
|||||||
struct pmu *pmu;
|
struct pmu *pmu;
|
||||||
void *pmu_private;
|
void *pmu_private;
|
||||||
|
|
||||||
enum perf_event_active_state state;
|
enum perf_event_state state;
|
||||||
unsigned int attach_state;
|
unsigned int attach_state;
|
||||||
local64_t count;
|
local64_t count;
|
||||||
atomic64_t child_count;
|
atomic64_t child_count;
|
||||||
|
|||||||
@@ -10801,7 +10801,7 @@ inherit_event(struct perf_event *parent_event,
|
|||||||
struct perf_event *group_leader,
|
struct perf_event *group_leader,
|
||||||
struct perf_event_context *child_ctx)
|
struct perf_event_context *child_ctx)
|
||||||
{
|
{
|
||||||
enum perf_event_active_state parent_state = parent_event->state;
|
enum perf_event_state parent_state = parent_event->state;
|
||||||
struct perf_event *child_event;
|
struct perf_event *child_event;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user