Signed-off-by: Charles Manning <cdhmanning@gmail.com>
--- /dev/null
+The basic tests test common fs operations such as open, close, read, write etc.
+
+Multiple files and directories are opened, created, read, deleted, truncated etc.
+
#define dout(...) do { } while(0)
#endif
#define dout(...) do { } while(0)
#endif
+
+
+uint32_t stats_reads;
+uint32_t stats_writes;
+uint32_t stats_erases;
+
typedef struct {
unsigned char page[PAGES_PER_BLOCK][PAGE_SIZE];
unsigned blockOk;
typedef struct {
unsigned char page[PAGES_PER_BLOCK][PAGE_SIZE];
unsigned blockOk;
unsigned char * d;
unsigned char *s;
unsigned char * d;
unsigned char *s;
if(blockId >= sim->nBlocks ||
pageOffset >= PAGES_PER_BLOCK ||
dataLength >DATA_SIZE ||
if(blockId >= sim->nBlocks ||
pageOffset >= PAGES_PER_BLOCK ||
dataLength >DATA_SIZE ||
if(blockId >= sim->nBlocks ||
pageOffset >= PAGES_PER_BLOCK ||
dataLength >DATA_SIZE ||
if(blockId >= sim->nBlocks ||
pageOffset >= PAGES_PER_BLOCK ||
dataLength >DATA_SIZE ||
{
SimData *sim = DevToSim(dev);
{
SimData *sim = DevToSim(dev);
CheckInitialised();
return yramsim_erase_internal(sim,blockId,0);
}
CheckInitialised();
return yramsim_erase_internal(sim,blockId,0);
}
+
+void yaffs_rtems_flashsim_dump_status(void)
+{
+ printf("\nFlashsim stats\n");
+ printf("reads.....%d\n", stats_reads);
+ printf("writes....%d\n", stats_writes);
+ printf("erases....%d\n", stats_erases);
+}
struct yaffs_dev *yaffs_rtems_flashsim_setup(void);
struct yaffs_dev *yaffs_rtems_flashsim_setup(void);
+void yaffs_rtems_flashsim_dump_status(void);
+
+ yaffs_rtems_flashsim_dump_status();
+