Commit a286f717 authored by Joanne Hugé's avatar Joanne Hugé

Exit server when threshold is reached and add measure

Add 60h packet jitter measure
parent 8aa97c1c
......@@ -64,6 +64,7 @@ yes, 0h0, 1000us (11582) | 0.0000us | 100.0000us | 59.4658us
no, 0h0, 1000us (10949) | 0.0000us | 239.0000us | 140.4619us | 3.0228us | 0
no, 15h1, 1000us (54075815) | 0.0000us | 550.0000us | 299.5232us | 7.1155us | 0
no, 15h0, 500us (108100303) | 0.0000us | 457.0000us | 246.4996us | 7.5832us | 0
no, 62h51, 1000us (226318412) | 0.0000us | 586.0000us | 268.5267us | 4.6224us | 0
![alt text](measures/graphs/packet_jitterPacket jitter.png "packet_jitter Graph")
......
{"cyclictest_wake-up_latency": {"ids": [3, 5], "next_id": 6}, "shuttle_signal_jitter": {"ids": [0], "next_id": 1}, "packet_jitter": {"ids": [0, 1, 2, 3], "next_id": 4}, "shuttle_a20_signal_jitter": {"ids": [0], "next_id": 1}}
\ No newline at end of file
{"cyclictest_wake-up_latency": {"ids": [3, 5], "next_id": 6}, "shuttle_signal_jitter": {"ids": [0], "next_id": 1}, "packet_jitter": {"ids": [0, 1, 2, 3, 4], "next_id": 5}, "shuttle_a20_signal_jitter": {"ids": [0], "next_id": 1}}
\ No newline at end of file
{"measure_sets": [{"measure_type": "packet_jitter", "props_names": ["Packet jitter"], "units": ["us"], "middle": 0, "props": [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 5, 2, 3, 2, 1, 1, 2, 1, 4, 2, 1, 2, 2, 3, 1, 2, 2, 1, 1, 1, 5, 5, 8, 4, 3, 9, 8, 13, 8, 5, 7, 8, 14, 7, 7, 3, 7, 10, 10, 10, 9, 10, 16, 7, 10, 15, 8, 14, 12, 13, 13, 16, 8, 17, 17, 13, 20, 19, 17, 18, 10, 13, 15, 18, 19, 20, 28, 24, 27, 29, 33, 32, 47, 41, 58, 68, 65, 127, 149, 184, 278, 327, 463, 527, 644, 750, 929, 995, 1061, 1218, 1240, 1175, 1237, 1270, 1252, 1231, 1212, 1192, 1159, 1036, 1047, 1126, 1057, 1028, 1039, 1071, 1084, 1033, 1093, 1079, 1090, 1172, 1180, 1332, 1305, 1395, 1472, 1608, 1763, 1815, 1967, 2106, 2246, 2309, 2439, 2615, 2638, 2741, 2927, 3039, 3054, 3149, 3225, 3307, 3470, 3521, 3592, 3714, 3896, 4139, 4579, 4804, 5262, 5709, 6502, 7016, 7802, 8581, 9647, 10492, 11508, 12642, 13576, 14502, 15764, 17538, 20825, 28421, 45032, 77101, 117000, 142271, 136176, 115913, 117169, 174055, 344783, 684891, 1077803, 1236424, 1036107, 676116, 438515, 400655, 530049, 892714, 1861989, 4966967, 15211657, 37694948, 54948704, 44338509, 26193321, 14081671, 6160621, 2449439, 1206431, 753181, 491729, 341920, 301960, 437002, 824892, 1254141, 1289354, 933025, 525735, 272849, 160365, 126614, 133841, 149348, 137371, 97567, 59324, 36290, 23990, 17357, 13440, 11126, 10247, 9887, 9704, 9931, 10599, 11471, 11406, 11247, 10717, 9408, 8195, 6834, 5628, 4546, 3926, 3246, 2719, 2395, 2193, 2065, 1840, 1806, 1729, 1675, 1806, 1841, 1916, 1905, 1930, 1940, 1993, 1860, 1754, 1727, 1661, 1679, 1628, 1655, 1649, 1753, 1719, 1717, 1782, 1833, 1850, 1947, 1882, 1985, 2017, 1993, 2109, 2096, 2108, 2270, 2248, 2234, 2223, 2298, 2266, 2266, 2183, 2204, 2251, 2221, 2226, 2254, 2153, 2034, 1925, 1694, 1555, 1297, 1086, 937, 786, 614, 527, 470, 396, 337, 328, 287, 280, 278, 260, 251, 257, 239, 242, 223, 209, 216, 209, 232, 213, 161, 174, 148, 160, 151, 133, 146, 130, 128, 97, 73, 88, 40, 44, 41, 65, 34, 35, 21, 28, 27, 19, 18, 16, 26, 23, 18, 21, 16, 13, 19, 13, 12, 12, 11, 9, 10, 13, 11, 9, 11, 9, 8, 4, 9, 9, 7, 7, 7, 4, 9, 5, 7, 4, 2, 7, 4, 5, 2, 1, 5, 2, 2, 0, 3, 1, 1, 3, 1, 2, 0, 0, 2, 2, 2, 0, 0, 2, 2, 3, 0, 1, 1, 3, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 2, 2, 0, 1, 0, 1, 1, 1, 2, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], "props_type": "histogram", "metadata": {"dev": "A20", "ker": "5.6", "prio": "98", "i": "1000us", "boot_p": "isolcpus,rcu_nocbs,irqaffinity", "delta": "None", "load": "None", "duration": "62h51", "speed": "1000", "etf_offset": "500us", "route": "E2E", "qdisc": "pfifo_fast", "client": "Shuttle", "XDP": "no", "lost_packets": "0"}}]}
\ No newline at end of file
......@@ -240,7 +240,7 @@ static void *packet_sending_thread(void *p) {
tracemark("Threshold reached\n");
tracing(0);
printf("Threshold reached: %dus\n", jitter);
printf("Exiting packet-exchange...\n", jitter);
printf("Exiting packet-exchange...\n");
exit(EXIT_SUCCESS);
}
}
......
......@@ -201,14 +201,15 @@ static void *tsn_thread(void *p) {
}
// If the latency hits the tracing threshold, stop tracing
int jitter = ingress_stats.max_interval - ingress_stats.min_interval;
if (main_params.enable_tracing &&
(ingress_stats.max_interval >
((int)thread_params.latency_threshold))) {
(jitter > ((int)thread_params.latency_threshold))) {
sprintf(tracemark_message, "Jitter threshold hit: %dus\n",
ingress_stats.max_interval);
jitter);
tracemark(tracemark_message);
tracing(0);
break;
printf(tracemark_message);
exit(EXIT_SUCCESS);
}
previous = current;
......@@ -344,10 +345,6 @@ int main(int argc, char *argv[]) {
printf("\033[%dA", 1);
}
if (main_params.enable_tracing &&
(ingress_stats.max_interval >= ((int)thread_params.latency_threshold)))
break;
}
pthread_mutex_destroy(&emit_signal_mutex);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment