Skip to content

Commit

Permalink
patch "classification" column into preloadee for a unified format
Browse files Browse the repository at this point in the history
  • Loading branch information
lquenti committed Mar 1, 2024
1 parent 6fec888 commit c666374
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions preloadee/preloadee.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include<stdarg.h>


#define CSV_HEADER "io_type,bytes,sec\n"
#define CSV_HEADER "classification,io_type,bytes,sec\n"

typedef ssize_t (*io_operation_t)(int fd, void *buf, size_t count);

Expand Down Expand Up @@ -91,7 +91,7 @@ static ssize_t do_io(bool is_read, int fd, void *buf, size_t count) {
if (fd != current_state->fp) {
char result_buf[256];
sprintf(result_buf,
"\%c,%zu,%.17g\n",
"NotYetClassified,\%c,%zu,%.17g\n",
is_read ? 'r' : 'w',
res,
duration
Expand Down

0 comments on commit c666374

Please sign in to comment.