#include "yaffsfs.h"
+#include "yaffs_trace.h"
+
#include "nor_stress.h"
#include "yaffs_fsx.h"
while(n_cycles){
if(cycle % 100 == 0){
- printf("CYCLE %8d mo %2d space %d ",cycle,op_max,yaffs_freespace(mountpt));
+ printf("CYCLE %8d mo %2d inodes %d space %d ",cycle,op_max,
+ yaffs_inodecount(mountpt),yaffs_freespace(mountpt));
for(i = 0; i < BASH_HANDLES; i++)
printf("%2d ",h[i]);
printf("\n");
signal(SIGBUS,bad_ptr_handler);
signal(SIGABRT,bad_ptr_handler);
#endif
- while ((ch = getopt(argc,argv, "bfilmn:ps:u"))
+ while ((ch = getopt(argc,argv, "bfilmn:ps:t:u"))
!= EOF)
switch (ch) {
case 's':
case 'n':
n_cycles = atoi(optarg);
break;
+ case 't':
+ yaffs_traceMask = strtol(optarg,NULL,0);
+ break;
default:
BadUsage();
/* NOTREACHED */