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

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

perf_counter: Better align code



Whitespace and comment bits. Also update copyrights.

[ Impact: cleanup ]

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <new-submission>
parent 8be6e8f3
Loading
Loading
Loading
Loading
+85 −80
Original line number Diff line number Diff line
/*
 *  Performance counters:
 *
 *   Copyright(C) 2008, Thomas Gleixner <tglx@linutronix.de>
 *   Copyright(C) 2008, Red Hat, Inc., Ingo Molnar
 *    Copyright (C) 2008-2009, Thomas Gleixner <tglx@linutronix.de>
 *    Copyright (C) 2008-2009, Red Hat, Inc., Ingo Molnar
 *    Copyright (C) 2008-2009, Red Hat, Inc., Peter Zijlstra
 *
 *  Data type definitions, declarations, prototypes.
 *
@@ -31,12 +32,13 @@ enum perf_type_id {
	PERF_TYPE_HW_CACHE			= 3,
	PERF_TYPE_RAW				= 4,

	PERF_TYPE_MAX,			/* non ABI */
	PERF_TYPE_MAX,				/* non-ABI */
};

/*
 * Generalized performance counter event types, used by the attr.event_id
 * parameter of the sys_perf_counter_open() syscall:
 * Generalized performance counter event types, used by the
 * attr.event_id parameter of the sys_perf_counter_open()
 * syscall:
 */
enum perf_hw_id {
	/*
@@ -50,7 +52,7 @@ enum perf_hw_id {
	PERF_COUNT_HW_BRANCH_MISSES		= 5,
	PERF_COUNT_HW_BUS_CYCLES		= 6,

	PERF_COUNT_HW_MAX,		/* non ABI */
	PERF_COUNT_HW_MAX,			/* non-ABI */
};

/*
@@ -68,7 +70,7 @@ enum perf_hw_cache_id {
	PERF_COUNT_HW_CACHE_ITLB		= 4,
	PERF_COUNT_HW_CACHE_BPU			= 5,

	PERF_COUNT_HW_CACHE_MAX,	/* non ABI */
	PERF_COUNT_HW_CACHE_MAX,		/* non-ABI */
};

enum perf_hw_cache_op_id {
@@ -76,14 +78,14 @@ enum perf_hw_cache_op_id {
	PERF_COUNT_HW_CACHE_OP_WRITE		= 1,
	PERF_COUNT_HW_CACHE_OP_PREFETCH		= 2,

	PERF_COUNT_HW_CACHE_OP_MAX,	/* non ABI */
	PERF_COUNT_HW_CACHE_OP_MAX,		/* non-ABI */
};

enum perf_hw_cache_op_result_id {
	PERF_COUNT_HW_CACHE_RESULT_ACCESS	= 0,
	PERF_COUNT_HW_CACHE_RESULT_MISS		= 1,

	PERF_COUNT_HW_CACHE_RESULT_MAX,		/* non ABI */
	PERF_COUNT_HW_CACHE_RESULT_MAX,		/* non-ABI */
};

/*
@@ -101,7 +103,7 @@ enum perf_sw_ids {
	PERF_COUNT_SW_PAGE_FAULTS_MIN		= 5,
	PERF_COUNT_SW_PAGE_FAULTS_MAJ		= 6,

	PERF_COUNT_SW_MAX,		/* non ABI */
	PERF_COUNT_SW_MAX,			/* non-ABI */
};

/*
@@ -639,7 +641,10 @@ extern void perf_counter_task_migration(struct task_struct *task, int cpu);
#define MAX_STACK_DEPTH			255

struct perf_callchain_entry {
	u16	nr, hv, kernel, user;
	u16				nr;
	u16				hv;
	u16				kernel;
	u16				user;
	u64				ip[MAX_STACK_DEPTH];
};