source: trunk/packages/xen-3.1/xen-3.1/xen/arch/ia64/tools/privop/postat.c @ 34

Last change on this file since 34 was 34, checked in by hartmans, 18 years ago

Add xen and xen-common

File size: 544 bytes
Line 
1#include <stdio.h>
2#include <string.h>
3
4extern int dump_privop_counts (char *buf, int len);
5
6extern int zero_privop_counts (char *buf, int len);
7
8int
9main (int argc, char *argv[])
10{
11  static char buf[8192];
12  int res;
13
14  if (argc == 1)
15    res = dump_privop_counts (buf, sizeof (buf));
16  else if (argc == 2 && strcmp (argv[1], "--clear") == 0)
17    res = zero_privop_counts (buf, sizeof (buf));
18  else
19    {
20      printf ("usage: %s [--clear]\n", argv[0]);
21      return 1;
22    }
23  printf ("res=%d\n", res);
24  fputs (buf, stdout);
25
26  return 0;
27}
Note: See TracBrowser for help on using the repository browser.