PMC_GET_DRIVER_STATS(3) | MidnightBSD Library Functions Manual | PMC_GET_DRIVER_STATS(3) |
pmc_get_driver_stats
—
retrieve driver statistics
Performance Counters Library (libpmc, -lpmc)
#include
<pmc.h>
int
pmc_get_driver_stats
(struct
pmc_driverstats *gms);
The function
pmc_get_driver_statistics
()
retrieves a snapshot of the usage statistics maintained by
hwpmc(4) into the memory
area pointed to by argument gms.
The returned structure includes the following fields:
Upon successful completion, the value 0 is returned; otherwise the value -1 is returned and the global variable errno is set to indicate the error.
November 25, 2007 | midnightbsd-3.1 |