|
Packit |
577717 |
/*
|
|
Packit |
577717 |
* pfmlib_perf_events_priv.h: perf_event public attributes
|
|
Packit |
577717 |
*
|
|
Packit |
577717 |
* Copyright (c) 2011 Google, Inc
|
|
Packit |
577717 |
* Contributed by Stephane Eranian <eranian@gmail.com>
|
|
Packit |
577717 |
*
|
|
Packit |
577717 |
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
Packit |
577717 |
* of this software and associated documentation files (the "Software"), to deal
|
|
Packit |
577717 |
* in the Software without restriction, including without limitation the rights
|
|
Packit |
577717 |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
Packit |
577717 |
* of the Software, and to permit persons to whom the Software is furnished to do so,
|
|
Packit |
577717 |
* subject to the following conditions:
|
|
Packit |
577717 |
*
|
|
Packit |
577717 |
* The above copyright notice and this permission notice shall be included in all
|
|
Packit |
577717 |
* copies or substantial portions of the Software.
|
|
Packit |
577717 |
*
|
|
Packit |
577717 |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
|
Packit |
577717 |
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
|
Packit |
577717 |
* PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
Packit |
577717 |
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
|
Packit |
577717 |
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
|
|
Packit |
577717 |
* OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
Packit |
577717 |
*/
|
|
Packit |
577717 |
#ifndef __PERF_EVENT_PRIV_H__
|
|
Packit |
577717 |
#define __PERF_EVENT_PRIV_H__
|
|
Packit |
577717 |
#include "pfmlib_priv.h"
|
|
Packit |
577717 |
#include "perfmon/pfmlib_perf_event.h"
|
|
Packit |
577717 |
|
|
Packit |
577717 |
#define PERF_ATTR_U 0 /* monitor at user privilege levels */
|
|
Packit |
577717 |
#define PERF_ATTR_K 1 /* monitor at kernel privilege levels */
|
|
Packit |
577717 |
#define PERF_ATTR_H 2 /* monitor at hypervisor levels */
|
|
Packit |
577717 |
#define PERF_ATTR_PE 3 /* sampling period */
|
|
Packit |
577717 |
#define PERF_ATTR_FR 4 /* average target sampling rate */
|
|
Packit |
577717 |
#define PERF_ATTR_PR 5 /* precise sampling mode */
|
|
Packit |
577717 |
#define PERF_ATTR_EX 6 /* exclusive event */
|
|
Packit |
577717 |
#define PERF_ATTR_MG 7 /* monitor guest execution */
|
|
Packit |
577717 |
#define PERF_ATTR_MH 8 /* monitor host execution */
|
|
Packit |
577717 |
#define PERF_ATTR_CPU 9 /* CPU to program */
|
|
Packit |
577717 |
#define PERF_ATTR_PIN 10 /* pin event to CPU */
|
|
Packit |
577717 |
|
|
Packit |
577717 |
#define _PERF_ATTR_U (1 << PERF_ATTR_U)
|
|
Packit |
577717 |
#define _PERF_ATTR_K (1 << PERF_ATTR_K)
|
|
Packit |
577717 |
#define _PERF_ATTR_H (1 << PERF_ATTR_H)
|
|
Packit |
577717 |
#define _PERF_ATTR_PE (1 << PERF_ATTR_PE)
|
|
Packit |
577717 |
#define _PERF_ATTR_FR (1 << PERF_ATTR_FR)
|
|
Packit |
577717 |
#define _PERF_ATTR_PR (1 << PERF_ATTR_PR)
|
|
Packit |
577717 |
#define _PERF_ATTR_EX (1 << PERF_ATTR_EX)
|
|
Packit |
577717 |
#define _PERF_ATTR_MG (1 << PERF_ATTR_MG)
|
|
Packit |
577717 |
#define _PERF_ATTR_MH (1 << PERF_ATTR_MH)
|
|
Packit |
577717 |
#define _PERF_ATTR_CPU (1 << PERF_ATTR_CPU)
|
|
Packit |
577717 |
#define _PERF_ATTR_PIN (1 << PERF_ATTR_PIN)
|
|
Packit |
577717 |
|
|
Packit |
577717 |
#define PERF_PLM_ALL (PFM_PLM0|PFM_PLM3|PFM_PLMH)
|
|
Packit |
577717 |
|
|
Packit |
577717 |
#endif
|