1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
/*
bpstats.c: print snapshot of node's current statistics.
*/
/* */
/* Copyright (c) 2008, California Institute of Technology. */
/* All rights reserved. */
/* Author: Scott Burleigh, Jet Propulsion Laboratory */
/* */
#include <bpP.h>
#if defined (VXWORKS) || defined (RTEMS) || defined (bionic)
int bpstats(int a1, int a2, int a3, int a4, int a5,
int a6, int a7, int a8, int a9, int a10)
{
#else
int main(int argc, char **argv)
{
#endif
if (bp_attach() < 0)
{
putErrmsg("bpstats can't attach to BP.", NULL);
return 0;
}
writeMemo("[i] Start of statistics snapshot...");
reportAllStateStats();
writeMemo("[i] ...end of statistics snapshot.");
bp_detach();
return 0;
}
|