summaryrefslogtreecommitdiffstats
path: root/VNFs/DPPD-PROX/display_latency_distr.c
diff options
context:
space:
mode:
authorXavier Simonart <xavier.simonart@intel.com>2019-12-30 23:49:52 +0100
committerXavier Simonart <xavier.simonart@intel.com>2020-01-29 12:31:40 +0100
commit2cd03b79c4415b5b300bc9f3dde7057e2d31b2a2 (patch)
tree4b8323595efc21ac5945efd70e7f4ba86e544de2 /VNFs/DPPD-PROX/display_latency_distr.c
parent7ef348cff20a6d35fe36bb551e5b1aaa69eded1a (diff)
Added command lat all stats
lat all stats <core_id> <task_id> 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 <xavier.simonart@intel.com>
Diffstat (limited to 'VNFs/DPPD-PROX/display_latency_distr.c')
-rw-r--r--VNFs/DPPD-PROX/display_latency_distr.c5
1 files changed, 1 insertions, 4 deletions
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;
}