Changeset View
Changeset View
Standalone View
Standalone View
head/tools/tools/crypto/cryptostats.c
Show All 24 Lines | |||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
/* | /* | ||||
* Little program to dump the crypto statistics block and, optionally, | * Little program to dump the crypto statistics block and, optionally, | ||||
* zero all the stats or just the timing stuff. | * zero all the stats or just the timing stuff. | ||||
*/ | */ | ||||
#include <stdio.h> | |||||
#include <stdlib.h> | |||||
#include <strings.h> | |||||
#include <sys/types.h> | #include <sys/types.h> | ||||
#include <sys/sysctl.h> | #include <sys/sysctl.h> | ||||
#include <sys/time.h> | #include <sys/time.h> | ||||
#include <crypto/cryptodev.h> | #include <crypto/cryptodev.h> | ||||
#include <err.h> | |||||
#include <stdio.h> | |||||
#include <stdlib.h> | |||||
#include <string.h> | |||||
#include <strings.h> | |||||
static void | static void | ||||
printt(const char* tag, struct cryptotstat *ts) | printt(const char* tag, struct cryptotstat *ts) | ||||
{ | { | ||||
uint64_t avg, min, max; | uint64_t avg, min, max; | ||||
if (ts->count == 0) | if (ts->count == 0) | ||||
return; | return; | ||||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |