diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2012-10-07 22:22:03 -0400 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2012-10-07 22:22:03 -0400 |
commit | 4021c90126844cdab2bc5eef7e1ef16c5aa3b36d (patch) | |
tree | f03d80b8506f714dd42249a7210cd75b88a3c36d /src | |
parent | 88dc12391b14d62011f382a6556da0529e9afdc7 (diff) | |
parent | fc6f91abc9cf80350b756547c8fb9fc5cbdcbddc (diff) |
Merge remote-tracking branch 'remotes/mpi/master' into wip-mc
Conflicts:
src/ft2csv.c
src/ftdump.c
Diffstat (limited to 'src')
-rw-r--r-- | src/ft2csv.c | 4 | ||||
-rw-r--r-- | src/ftdump.c | 51 |
2 files changed, 21 insertions, 34 deletions
diff --git a/src/ft2csv.c b/src/ft2csv.c index ce44c7e..b75b284 100644 --- a/src/ft2csv.c +++ b/src/ft2csv.c | |||
@@ -37,7 +37,6 @@ static int only_cpu = -1; | |||
37 | 37 | ||
38 | static unsigned int complete = 0; | 38 | static unsigned int complete = 0; |
39 | static unsigned int incomplete = 0; | 39 | static unsigned int incomplete = 0; |
40 | static unsigned int filtered = 0; | ||
41 | static unsigned int skipped = 0; | 40 | static unsigned int skipped = 0; |
42 | static unsigned int non_rt = 0; | 41 | static unsigned int non_rt = 0; |
43 | static unsigned int interleaved = 0; | 42 | static unsigned int interleaved = 0; |
@@ -46,9 +45,9 @@ static unsigned int lvl_a_sched = 0; | |||
46 | static unsigned int lvl_b_sched = 0; | 45 | static unsigned int lvl_b_sched = 0; |
47 | static unsigned int lvl_c_sched = 0; | 46 | static unsigned int lvl_c_sched = 0; |
48 | static unsigned int other_sched = 0; | 47 | static unsigned int other_sched = 0; |
48 | static unsigned int filtered = 0; | ||
49 | 49 | ||
50 | #define CYCLES_PER_US 2128 | 50 | #define CYCLES_PER_US 2128 |
51 | |||
52 | static unsigned long long threshold = CYCLES_PER_US * 10000; /* 10 ms == 10 full ticks */ | 51 | static unsigned long long threshold = CYCLES_PER_US * 10000; /* 10 ms == 10 full ticks */ |
53 | 52 | ||
54 | static struct timestamp* next(struct timestamp* start, struct timestamp* end, | 53 | static struct timestamp* next(struct timestamp* start, struct timestamp* end, |
@@ -428,5 +427,6 @@ int main(int argc, char** argv) | |||
428 | interleaved, lvl_a_sched, lvl_b_sched, lvl_c_sched, | 427 | interleaved, lvl_a_sched, lvl_b_sched, lvl_c_sched, |
429 | other_sched); | 428 | other_sched); |
430 | 429 | ||
430 | |||
431 | return 0; | 431 | return 0; |
432 | } | 432 | } |
diff --git a/src/ftdump.c b/src/ftdump.c index 65cbe3f..1462c4d 100644 --- a/src/ftdump.c +++ b/src/ftdump.c | |||
@@ -37,34 +37,23 @@ static void dump(struct timestamp* ts, size_t count) | |||
37 | if (last_seq && last_seq + 1 != x->seq_no) | 37 | if (last_seq && last_seq + 1 != x->seq_no) |
38 | printf("==== non-consecutive sequence number ====\n"); | 38 | printf("==== non-consecutive sequence number ====\n"); |
39 | last_seq = x->seq_no; | 39 | last_seq = x->seq_no; |
40 | if (x->event <= PID_RECORDS_RANGE) { | 40 | if (name) |
41 | if (name) | 41 | printf("%-20s seq:%u timestamp:%llu cpu:%d type:%-8s irq:%u irqc:%02u \n", |
42 | printf("%-20s seq:%u timestamp:%llu pid:%u\n", | 42 | name, x->seq_no, |
43 | name, x->seq_no, | 43 | (unsigned long long) x->timestamp, |
44 | (unsigned long long) x->timestamp, | 44 | x->cpu, |
45 | ts_pid_fragment(x)); | 45 | task_type2str(x->task_type), |
46 | else | 46 | x->irq_flag, |
47 | printf("%16s:%3u seq:%u timestamp:%llu pid:%u\n", | 47 | x->irq_count); |
48 | "event", | 48 | else |
49 | (unsigned int) x->event, x->seq_no, | 49 | printf("%16s:%3u seq:%u timestamp:%llu cpu:%u type:%-8s irq:%u irqc:%02u\n", |
50 | (unsigned long long) x->timestamp, | 50 | "event", |
51 | ts_pid_fragment(x)); | 51 | (unsigned int) x->event, x->seq_no, |
52 | } | 52 | (unsigned long long) x->timestamp, |
53 | else { | 53 | x->cpu, |
54 | if (name) | 54 | task_type2str(x->task_type), |
55 | printf("%-20s seq:%u timestamp:%llu cpu:%d type:%-8s \n", | 55 | x->irq_flag, |
56 | name, x->seq_no, | 56 | x->irq_count); |
57 | (unsigned long long) x->timestamp, | ||
58 | x->cpu, | ||
59 | task_type2str(x->task_type)); | ||
60 | else | ||
61 | printf("%16s:%3u seq:%u timestamp:%llu cpu:%u type:%-8s\n", | ||
62 | "event", | ||
63 | (unsigned int) x->event, x->seq_no, | ||
64 | (unsigned long long) x->timestamp, | ||
65 | x->cpu, | ||
66 | task_type2str(x->task_type)); | ||
67 | } | ||
68 | } | 57 | } |
69 | } | 58 | } |
70 | 59 | ||
@@ -89,14 +78,12 @@ int main(int argc, char** argv) | |||
89 | "\t offset(timestamp) = %3lu\n" | 78 | "\t offset(timestamp) = %3lu\n" |
90 | "\t offset(seq_no) = %3lu\n" | 79 | "\t offset(seq_no) = %3lu\n" |
91 | "\t offset(cpu) = %3lu\n" | 80 | "\t offset(cpu) = %3lu\n" |
92 | "\t offset(event) = %3lu\n" | 81 | "\t offset(event) = %3lu\n", |
93 | "\t offset(task_type) = %3lu\n", | ||
94 | (unsigned long) sizeof(struct timestamp), | 82 | (unsigned long) sizeof(struct timestamp), |
95 | offset(struct timestamp, timestamp), | 83 | offset(struct timestamp, timestamp), |
96 | offset(struct timestamp, seq_no), | 84 | offset(struct timestamp, seq_no), |
97 | offset(struct timestamp, cpu), | 85 | offset(struct timestamp, cpu), |
98 | offset(struct timestamp, event), | 86 | offset(struct timestamp, event)); |
99 | offset(struct timestamp, task_type)); | ||
100 | 87 | ||
101 | if (argc != 2) | 88 | if (argc != 2) |
102 | die("Usage: ftdump <logfile>"); | 89 | die("Usage: ftdump <logfile>"); |