msdiff.c
1.03 KB
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
32
33
34
35
36
37
38
39
40
/*
* Copyright (C) 1996-1998 by the Board of Trustees
* of Leland Stanford Junior University.
*
* This file is part of the SimOS distribution.
* See LICENSE file for terms of the license.
*
*/
/* ****************************************************
* Discaimer:
* this program has not been updated and is most likely
* suffering from an accute case of bitrot.
* ******************************************************/
#include <stdio.h>
#include <string.h>
#include "memstatdump.h"
main( int argc, char **argv)
{
char a[128],b[128],c[128];
if( argc < 4 ) {
printf("Use : %s first_time second_time diff\n",argv[0]);
exit( 1 ) ;
}
printf("Processing .bypc file\n");
strcpy(a,argv[1]); strcpy(b,argv[2]); strcpy(c,argv[3]);
strcat(a,".bypc"); strcat(b,".bypc"); strcat(c,".bypc");
MemStatDiff(a,b,c);
printf("Processing .bydata file\n");
strcpy(a,argv[1]); strcpy(b,argv[2]); strcpy(c,argv[3]);
strcat(a,".bydata"); strcat(b,".bydata"); strcat(c,".bydata");
MemStatDiff(a,b,c);
printf("msdiff over...\n");
}