perf: add one more perf event support

With current perf framework, this patch adds support and documentation
for the branch_instructions perf event.

Signed-off-by: Nitesh Konkar <nitkon12@linux.vnet.ibm.com>
This commit is contained in:
Nitesh Konkar
2016-12-07 07:03:57 -05:00
committed by John Ferlan
parent 016b63bdf0
commit 8546adf80b
9 changed files with 34 additions and 5 deletions
+10
View File
@@ -2125,6 +2125,16 @@ void virDomainStatsRecordListFree(virDomainStatsRecordPtr *stats);
*/
# define VIR_PERF_PARAM_CPU_CYCLES "cpu_cycles"
/**
* VIR_PERF_PARAM_BRANCH_INSTRUCTIONS:
*
* Macro for typed parameter name that represents branch_instructions
* perf event which can be used to measure the count of branch instructions
* by applications running on the platform. It corresponds to the
* "perf.branch_instructions" field in the *Stats APIs.
*/
# define VIR_PERF_PARAM_BRANCH_INSTRUCTIONS "branch_instructions"
int virDomainGetPerfEvents(virDomainPtr dom,
virTypedParameterPtr *params,
int *nparams,