aboutsummaryrefslogtreecommitdiffstats
path: root/samples/vnf_samples/nsut/acl/acl_1rule.yaml
diff options
context:
space:
mode:
authorEmma Foley <emma.l.foley@intel.com>2018-01-17 11:23:27 +0000
committerEmma Foley <emma.l.foley@intel.com>2018-01-17 11:26:37 +0000
commit87edac9472000016ee51cff1f50eeb82377e2d0e (patch)
tree703493bead487913527dc33e694799038d903399 /samples/vnf_samples/nsut/acl/acl_1rule.yaml
parenta75bc1531caa213cdd0a335b2b3332f844c88ef1 (diff)
Move tests: unit/orchestrator/
* Fix pylint errors * Add notes where additional action is needed. Some errors are ignored locally, as they were a symptom of other problems. These issues have been flagged for follow-up, and should be fixed later. JIRA: YARDSTICK-837 Signed-off-by: Emma Foley <emma.l.foley@intel.com> Change-Id: Idbf56d0cd3b29b70691acd6af4d5ac3c400d2ccc
Diffstat (limited to 'samples/vnf_samples/nsut/acl/acl_1rule.yaml')
0 files changed, 0 insertions, 0 deletions
/* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
/*
// Copyright (c) 2010-2017 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
*/

#include <rte_cycles.h>

#include "prox_malloc.h"
#include "prox_cfg.h"
#include "stats.h"
#include "stats_port.h"
#include "stats_mempool.h"
#include "stats_ring.h"
#include "stats_l4gen.h"
#include "stats_latency.h"
#include "stats_global.h"
#include "stats_core.h"
#include "stats_task.h"
#include "stats_prio_task.h"
#include "stats_latency.h"
#include "stats_irq.h"

/* Stores all readed values from the cores, displaying is done afterwards because
   displaying introduces overhead. If displaying was done right after the values
   are read, inaccuracy is introduced for later cores */
int last_stat; /* 0 or 1 to track latest 2 measurements */

void stats_reset(void)
{
	stats_task_reset();
	stats_prio_task_reset();
	stats_port_reset();
	stats_latency_reset();
	stats_irq_reset();
	stats_global_reset();
}

void stats_init(unsigned avg_start, unsigned duration)
{
	stats_lcore_init();
	stats_task_init();
	stats_prio_task_init();
	stats_irq_init();
	stats_port_init();
	stats_mempool_init();
	stats_latency_init();
	stats_l4gen_init();
	stats_ring_init();
	stats_global_init(avg_start, duration);
}

void stats_update(uint16_t flag_cons)
{
	/* Keep track of last 2 measurements. */
	last_stat = !last_stat;

	if (flag_cons & STATS_CONS_F_TASKS)
		stats_task_update();

	if (flag_cons & STATS_CONS_F_PRIO_TASKS)
		stats_prio_task_update();

	if (flag_cons & STATS_CONS_F_LCORE)
		stats_lcore_update();

	if (flag_cons & STATS_CONS_F_PORTS)
		stats_port_update();

	if (flag_cons & STATS_CONS_F_MEMPOOLS)
		stats_mempool_update();

	if (flag_cons & STATS_CONS_F_LATENCY)
		stats_latency_update();

	if (flag_cons & STATS_CONS_F_L4GEN)
		stats_l4gen_update();

	if (flag_cons & STATS_CONS_F_RINGS)
		stats_ring_update();

	if (flag_cons & STATS_CONS_F_IRQ)
		stats_irq_update();

	if (flag_cons & STATS_CONS_F_LCORE)
		stats_lcore_post_proc();

	if (flag_cons & STATS_CONS_F_TASKS)
		stats_task_post_proc();

	if (flag_cons & STATS_CONS_F_PRIO_TASKS)
		stats_prio_task_post_proc();

	if (flag_cons & STATS_CONS_F_GLOBAL)
		stats_global_post_proc();

	if (flag_cons & STATS_CONS_F_IRQ)
		stats_irq_post_proc();
}