PMC_GET_DRIVER_STATS(3)
π NAME π
okay so bestie, welcome to PMC_GET_DRIVER_STATS(3), aka the Library Functions Manual page for pmc_get_driver_stats(3) β the function that retrieves driver statistics. Thatβs the whole assignment. π«Ά
π LIBRARY π
Performance Counters Library (libpmc, -lpmc) β yes, link it like that, slay. β¨
β¨ SYNOPSIS β¨
#include <pmc.h>
int
pmc_get_driver_stats(struct pmc_driverstats *gms);
π DESCRIPTION π
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. (Thatβs the descriptionβs spelling, bestie β donβt come for me π.)
The returned structure includes the following fields, no skips:
pm_intr_ignoredβ the number of sampling interrupts ignored. πpm_intr_processedβ the number of sampling interrupts processed. βpm_intr_bufferfullβ the number of sampling interrupts dropped due to lack of space in the sample buffer. πpm_syscallsβ the number of system calls intohwpmc(4). πpm_syscalls_errorsβ the number of system calls intohwpmc(4)that failed. πpm_buffer_requestsβ the number of log buffer requests so far. π§Ύpm_buffer_requests_failedβ the number of log buffer requests that failed due to lack of buffers. π«pm_log_sweepsβ the number of sample buffer processing sweeps. π§Ή
π RETURN VALUES π
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. So: 0 = slay, -1 = check errno, periodt. π
π SEE ALSO π
pmc(3), hwpmc(4) β go read those too, bestie. π¦
xoxo, your Debian bestie β this page is from Debian, dated November 25, 2007. πβ¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2007 Joseph Koshy. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms