mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-04 10:23:02 -05:00
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:
committed by
John Ferlan
parent
016b63bdf0
commit
8546adf80b
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user