mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
powerpc/perf: Export PERF_EVENT_CONFIG_EBB_SHIFT to userspace
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>
This commit is contained in:
committed by
Benjamin Herrenschmidt
parent
e8e813ed26
commit
8d7c55d01e
18
arch/powerpc/include/uapi/asm/perf_event.h
Normal file
18
arch/powerpc/include/uapi/asm/perf_event.h
Normal file
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* 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 */
|
||||
Reference in New Issue
Block a user