mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
perf: add page_faults software perf event support
This patch adds support and documentation for the page_faults perf event. Signed-off-by: Nitesh Konkar <nitkon12@linux.vnet.ibm.com>
This commit is contained in:
committed by
John Ferlan
parent
20dc690865
commit
6ef2c7e00f
@@ -2210,6 +2210,17 @@ void virDomainStatsRecordListFree(virDomainStatsRecordPtr *stats);
|
||||
*/
|
||||
# define VIR_PERF_PARAM_TASK_CLOCK "task_clock"
|
||||
|
||||
/**
|
||||
* VIR_PERF_PARAM_PAGE_FAULTS:
|
||||
*
|
||||
* Macro for typed parameter name that represents page_faults
|
||||
* perf event which can be used to measure the count of page
|
||||
* faults by applications running on the platform. It corresponds
|
||||
* to the "perf.page_faults" field in the *Stats APIs.
|
||||
*/
|
||||
# define VIR_PERF_PARAM_PAGE_FAULTS "page_faults"
|
||||
|
||||
|
||||
int virDomainGetPerfEvents(virDomainPtr dom,
|
||||
virTypedParameterPtr *params,
|
||||
int *nparams,
|
||||
|
||||
Reference in New Issue
Block a user