mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
pmc: mark some dead functions as such
Also change a single instance of the comma operator to a semi-colon. Reviewed by: mmacy
This commit is contained in:
parent
7fe961ff48
commit
32b68c46fa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334874
|
@ -89,7 +89,7 @@ static struct option longopts[] = {
|
||||||
{NULL, 0, NULL, 0}
|
{NULL, 0, NULL, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
static void
|
static void __dead2
|
||||||
usage(void)
|
usage(void)
|
||||||
{
|
{
|
||||||
errx(EX_USAGE,
|
errx(EX_USAGE,
|
||||||
|
|
|
@ -75,7 +75,7 @@ static struct option longopts[] = {
|
||||||
{NULL, 0, NULL, 0}
|
{NULL, 0, NULL, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
static void
|
static void __dead2
|
||||||
usage(void)
|
usage(void)
|
||||||
{
|
{
|
||||||
errx(EX_USAGE,
|
errx(EX_USAGE,
|
||||||
|
|
|
@ -106,7 +106,7 @@ static const char *pmc_stat_mode_names[] = {
|
||||||
|
|
||||||
static int pmcstat_sockpair[NSOCKPAIRFD];
|
static int pmcstat_sockpair[NSOCKPAIRFD];
|
||||||
|
|
||||||
static void
|
static void __dead2
|
||||||
usage(void)
|
usage(void)
|
||||||
{
|
{
|
||||||
errx(EX_USAGE,
|
errx(EX_USAGE,
|
||||||
|
@ -127,8 +127,10 @@ showtime(FILE *out, struct timespec *before, struct timespec *after,
|
||||||
|
|
||||||
after->tv_sec -= before->tv_sec;
|
after->tv_sec -= before->tv_sec;
|
||||||
after->tv_nsec -= before->tv_nsec;
|
after->tv_nsec -= before->tv_nsec;
|
||||||
if (after->tv_nsec < 0)
|
if (after->tv_nsec < 0) {
|
||||||
after->tv_sec--, after->tv_nsec += 1000000000;
|
after->tv_sec--;
|
||||||
|
after->tv_nsec += 1000000000;
|
||||||
|
}
|
||||||
|
|
||||||
real = (after->tv_sec * 1000000000 + after->tv_nsec) / 1000;
|
real = (after->tv_sec * 1000000000 + after->tv_nsec) / 1000;
|
||||||
user = ru->ru_utime.tv_sec * 1000000 + ru->ru_utime.tv_usec;
|
user = ru->ru_utime.tv_sec * 1000000 + ru->ru_utime.tv_usec;
|
||||||
|
|
|
@ -83,7 +83,7 @@ typedef unordered_map <uint32_t, std::vector<samplename>> eventcountmap;
|
||||||
|
|
||||||
#define P_KPROC 0x00004 /* Kernel process. */
|
#define P_KPROC 0x00004 /* Kernel process. */
|
||||||
|
|
||||||
static void
|
static void __dead2
|
||||||
usage(void)
|
usage(void)
|
||||||
{
|
{
|
||||||
errx(EX_USAGE,
|
errx(EX_USAGE,
|
||||||
|
|
|
@ -70,8 +70,8 @@ static struct cmd_handler disp_table[] = {
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
static void
|
static void __dead2
|
||||||
usage(void)
|
usage(void)
|
||||||
{
|
{
|
||||||
errx(EX_USAGE,
|
errx(EX_USAGE,
|
||||||
"\t pmc management utility\n"
|
"\t pmc management utility\n"
|
||||||
|
|
Loading…
Reference in a new issue