path: root/btt/devmap.c
diff options
authorAlan D. Brunelle <>2007-04-14 08:05:06 +0200
committerJens Axboe <>2007-04-14 08:05:06 +0200
commit6904079488cd3063d171021c8954f955f4236849 (patch)
tree161035c6d78fba22a6acc21cb59d5d019022d5ae /btt/devmap.c
parentc8b0b334cc1028ad8aa5407667233747af96a942 (diff)
Combine all outstanding patches into one /big patch/
o Added seek absolute option -- allows one to specify whether they want seek distances to be calculated based upon nearness to previous IO or from start to start. o Added block number dumping o Updated btt documentation for above. o Significant clean up of memory used and files opened. All allocated memory and opened files are cleaned up prior to normal program exit. o Fixed problem where Q & M traces were not being freed properly. o Fixed problem where bilink structures were not being freed properly. o Fixed omission -- output combined seeks in addition to read and write seeks. Signed-off-by: Alan D. Brunelle <> Signed-off-by: Jens Axboe <>
Diffstat (limited to 'btt/devmap.c')
1 files changed, 10 insertions, 0 deletions
diff --git a/btt/devmap.c b/btt/devmap.c
index 2b6366c..a74f224 100644
--- a/btt/devmap.c
+++ b/btt/devmap.c
@@ -23,6 +23,16 @@
struct devmap *all_devmaps = NULL;
+void dev_map_exit(void)
+ struct devmap *dmp;
+ while ((dmp = all_devmaps) != NULL) {
+ all_devmaps = dmp->next;
+ free(dmp);
+ }
void dev_map_add(struct devmap *dmp)
struct devmap *this = malloc(sizeof(struct devmap));