summaryrefslogtreecommitdiffstats
path: root/lib/libpmc
diff options
context:
space:
mode:
authorjtl <jtl@FreeBSD.org>2015-11-16 15:16:09 +0000
committerjtl <jtl@FreeBSD.org>2015-11-16 15:16:09 +0000
commit327d3d0e6451a94c03f79509ba4669cb20da0597 (patch)
treece088ae977e482438ba673312dd0df82c95e220d /lib/libpmc
parent3f00265ee4a7881a5c545a210732d56466e8890d (diff)
downloadFreeBSD-src-327d3d0e6451a94c03f79509ba4669cb20da0597.zip
FreeBSD-src-327d3d0e6451a94c03f79509ba4669cb20da0597.tar.gz
Change the driver stats to what they really are: unsigned values.
When pmcstat exits after some samples were dropped, give the user an idea of how many were lost. (Granted, these are global numbers, but they may still help quantify the scope of the loss.) Differential Revision: https://reviews.freebsd.org/D4123 Approved by: gnn (mentor) MFC after: 1 month Sponsored by: Juniper Networks
Diffstat (limited to 'lib/libpmc')
-rw-r--r--lib/libpmc/pmc.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/libpmc/pmc.h b/lib/libpmc/pmc.h
index 81672d2..f237285 100644
--- a/lib/libpmc/pmc.h
+++ b/lib/libpmc/pmc.h
@@ -37,14 +37,15 @@
* Driver statistics.
*/
struct pmc_driverstats {
- int pm_intr_ignored; /* #interrupts ignored */
- int pm_intr_processed; /* #interrupts processed */
- int pm_intr_bufferfull; /* #interrupts with ENOSPC */
- int pm_syscalls; /* #syscalls */
- int pm_syscall_errors; /* #syscalls with errors */
- int pm_buffer_requests; /* #buffer requests */
- int pm_buffer_requests_failed; /* #failed buffer requests */
- int pm_log_sweeps; /* #sample buffer processing passes */
+ unsigned int pm_intr_ignored; /* #interrupts ignored */
+ unsigned int pm_intr_processed; /* #interrupts processed */
+ unsigned int pm_intr_bufferfull; /* #interrupts with ENOSPC */
+ unsigned int pm_syscalls; /* #syscalls */
+ unsigned int pm_syscall_errors; /* #syscalls with errors */
+ unsigned int pm_buffer_requests; /* #buffer requests */
+ unsigned int pm_buffer_requests_failed; /* #failed buffer requests */
+ unsigned int pm_log_sweeps; /* #sample buffer processing
+ passes */
};
/*
OpenPOWER on IntegriCloud