From 2cd03b79c4415b5b300bc9f3dde7057e2d31b2a2 Mon Sep 17 00:00:00 2001 From: Xavier Simonart Date: Mon, 30 Dec 2019 23:49:52 +0100 Subject: Added command lat all stats lat all stats combines "lat stats" and "lat packets" within one command. This command returns: - One line in case the core_task parser fails. In that case the line will start with: "error: invalid syntax" - One set of lines for each core task: - if core/task is invalid, or not running lat mode, the line will contain (start with) "error...". this will be the only line for that core/task. - Otherwise the set of lines will be: - One line as returned by "lat stats". This line will be - One line starting with "error" in case of error, or - One line containing lat_min_usec, lat_max_usec, lat_avg_usec, tot_lat_min_usec, tot_lat_max_usec, last_tsc, rte_get_tsc_hz(), lcore_id, task_id - The return from lat packets i.e. - One line starting with "error" in case of error, or - 128 lines - one for each bucket - as returned by "lat packets" command This command is more useful then lat packets, as it contains the tsc - needed to see whether the sample is new or not. Change-Id: I04231aa7c5bd2d352ed6f94d40e88d3b411ce744 Signed-off-by: Xavier Simonart --- VNFs/DPPD-PROX/display_latency_distr.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'VNFs/DPPD-PROX/display_latency_distr.c') diff --git a/VNFs/DPPD-PROX/display_latency_distr.c b/VNFs/DPPD-PROX/display_latency_distr.c index 9808a702..3e1cc38a 100644 --- a/VNFs/DPPD-PROX/display_latency_distr.c +++ b/VNFs/DPPD-PROX/display_latency_distr.c @@ -35,7 +35,7 @@ static uint32_t group_size = 9; //LAT_BUCKET_COUNT / global_nb_buckets_displayed static void display_latency_distr_draw_frame(struct screen_state *state) { - uint32_t n_tasks = stats_get_n_latency(); + uint32_t n_tasks = stats_get_n_latency(); struct lcore_cfg *lconf = NULL; struct task_args *targ; char name[32]; @@ -166,9 +166,6 @@ static void display_latency_distr_draw_stats(struct screen_state *state) if (i + j < LAT_BUCKET_COUNT) nb += bucket[i+j]; display_column_print(stats_latency_distr[k++], count, "%9lu", nb); - if ((nb == 16) || (nb == 48)) - for (uint32_t j = 0; j <= group_size; j++) - plog_info("id %d: %ld\n", i+j, bucket[i+j]); nb = 0; i += group_size; } -- cgit 1.2.3-korg