diff options
| author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-12-09 12:50:08 -0500 |
|---|---|---|
| committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-12-09 12:50:08 -0500 |
| commit | 3e7f2eb9b7da53349e86ed58ef844b6df9d26f22 (patch) | |
| tree | 840c694b4392b7db3fc3d3645ebf2b2f6f22a464 /src | |
| parent | ce2538d74ca5b9650ca6d18203032e47edd36c60 (diff) | |
optionally look at non-rt overheads
Diffstat (limited to 'src')
| -rw-r--r-- | src/ft2csv.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/ft2csv.c b/src/ft2csv.c index 2aa4b01..4489e85 100644 --- a/src/ft2csv.c +++ b/src/ft2csv.c | |||
| @@ -27,7 +27,8 @@ | |||
| 27 | 27 | ||
| 28 | #include "timestamp.h" | 28 | #include "timestamp.h" |
| 29 | 29 | ||
| 30 | static int no_interleaved = 0; | 30 | static int want_interleaved = 1; |
| 31 | static int want_best_effort = 0; | ||
| 31 | 32 | ||
| 32 | static unsigned int complete = 0; | 33 | static unsigned int complete = 0; |
| 33 | static unsigned int incomplete = 0; | 34 | static unsigned int incomplete = 0; |
| @@ -59,7 +60,7 @@ static struct timestamp* next_id(struct timestamp* start, struct timestamp* end, | |||
| 59 | return NULL; | 60 | return NULL; |
| 60 | pos++; | 61 | pos++; |
| 61 | restarts++; | 62 | restarts++; |
| 62 | if (no_interleaved) | 63 | if (!want_interleaved) |
| 63 | return NULL; | 64 | return NULL; |
| 64 | } | 65 | } |
| 65 | if (pos) | 66 | if (pos) |
| @@ -82,7 +83,7 @@ static void show_csv(struct timestamp* first, struct timestamp *end) | |||
| 82 | if (second->timestamp - first->timestamp > threshold) | 83 | if (second->timestamp - first->timestamp > threshold) |
| 83 | filtered++; | 84 | filtered++; |
| 84 | else if (first->task_type != TSK_RT && | 85 | else if (first->task_type != TSK_RT && |
| 85 | second->task_type != TSK_RT) | 86 | second->task_type != TSK_RT && !want_best_effort) |
| 86 | non_rt++; | 87 | non_rt++; |
| 87 | else { | 88 | else { |
| 88 | printf("%llu, %llu, %llu\n", | 89 | printf("%llu, %llu, %llu\n", |
| @@ -155,7 +156,7 @@ static void die(char* msg) | |||
| 155 | exit(1); | 156 | exit(1); |
| 156 | } | 157 | } |
| 157 | 158 | ||
| 158 | #define OPTS "ei" | 159 | #define OPTS "eib" |
| 159 | 160 | ||
| 160 | int main(int argc, char** argv) | 161 | int main(int argc, char** argv) |
| 161 | { | 162 | { |
| @@ -178,7 +179,10 @@ int main(int argc, char** argv) | |||
| 178 | swap_byte_order = 1; | 179 | swap_byte_order = 1; |
| 179 | break; | 180 | break; |
| 180 | case 'i': | 181 | case 'i': |
| 181 | no_interleaved = 1; | 182 | want_interleaved = 0; |
| 183 | break; | ||
| 184 | case 'b': | ||
| 185 | want_best_effort = 1; | ||
| 182 | break; | 186 | break; |
| 183 | default: | 187 | default: |
| 184 | die("Unknown option."); | 188 | die("Unknown option."); |
