![Michael Ellerman](/assets/img/avatar_default.png)
We use bit 63 of the event code for userspace to request that the event be counted using EBB (Event Based Branches). Export this value, making it part of the API - though only on processors that support EBB. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
19 lines
502 B
C
19 lines
502 B
C
/*
|
|
* Copyright 2013 Michael Ellerman, IBM Corp.
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; version 2 of the
|
|
* License.
|
|
*/
|
|
|
|
#ifndef _UAPI_ASM_POWERPC_PERF_EVENT_H
|
|
#define _UAPI_ASM_POWERPC_PERF_EVENT_H
|
|
|
|
/*
|
|
* We use bit 63 of perf_event_attr.config as a flag to request EBB.
|
|
*/
|
|
#define PERF_EVENT_CONFIG_EBB_SHIFT 63
|
|
|
|
#endif /* _UAPI_ASM_POWERPC_PERF_EVENT_H */
|