aboutsummaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2018-04-26 13:09:11 +0200
committerTibor Frank <tifrank@cisco.com>2018-04-26 13:09:11 +0200
commit0740688e5798f7ab7162fd7f4bc5eb8455164a7c (patch)
treeceefbb2b15149e83f5d6e684856a18e73fbe4006 /resources
parentd5d53957f4686398727469e0f5b1774a5b6560fe (diff)
CSIT-1041: Trending dashboard
Change-Id: I7aa7f01738649fc3f3b10572d7e08af580293748 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources')
-rw-r--r--resources/tools/presentation/generator_tables.py3
-rw-r--r--resources/tools/presentation/specification_CPTA.yaml12
2 files changed, 2 insertions, 13 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py
index db79396857..96930cddb6 100644
--- a/resources/tools/presentation/generator_tables.py
+++ b/resources/tools/presentation/generator_tables.py
@@ -846,7 +846,8 @@ def table_performance_trending_dashboard(table, input_data):
for nrp in range(table["window"], -1, -1):
tbl_pro = [item for item in tbl_reg if item[5] == nrp]
for nro in range(table["window"], -1, -1):
- tbl_out = [item for item in tbl_pro if item[5] == nro]
+ tbl_out = [item for item in tbl_pro if item[6] == nro]
+ tbl_out.sort(key=lambda rel: rel[2])
tbl_sorted.extend(tbl_out)
file_name = "{0}{1}".format(table["output-file"], table["output-file-ext"])
diff --git a/resources/tools/presentation/specification_CPTA.yaml b/resources/tools/presentation/specification_CPTA.yaml
index ad195d6dc4..268b356d35 100644
--- a/resources/tools/presentation/specification_CPTA.yaml
+++ b/resources/tools/presentation/specification_CPTA.yaml
@@ -222,14 +222,10 @@
- "name"
- "parent"
- "result"
- # Number of the best and the worst tests presented in the table. Use 0 (zero)
- # to present all tests.
- nr-of-tests-shown: 20
outlier-const: 1.5
window: 14
evaluated-window: 14
long-trend-window: 180
- long-trend-threshold: 80 # Percent of the highest moving median value
-
type: "table"
@@ -243,14 +239,10 @@
- "name"
- "parent"
- "result"
- # Number of the best and the worst tests presented in the table. Use 0 (zero)
- # to present all tests.
- nr-of-tests-shown: 20
outlier-const: 1.5
window: 14
evaluated-window: 14
long-trend-window: 180
- long-trend-threshold: 80 # Percent of the highest moving median value
-
type: "table"
@@ -264,14 +256,10 @@
- "name"
- "parent"
- "result"
- # Number of the best and the worst tests presented in the table. Use 0 (zero)
- # to present all tests.
- nr-of-tests-shown: 20
outlier-const: 1.5
window: 14
evaluated-window: 14
long-trend-window: 180
- long-trend-threshold: 80 # Percent of the highest moving median value
-
type: "table"
class="cp"> #include <vnet/fib/fib_entry.h> /** * Delegate types */ typedef enum fib_entry_delegate_type_t_ { /** * Forwarding chain types: * for the vast majority of FIB entries only one chain is required - the * one that forwards traffic matching the fib_entry_t's fib_prefix_t. For those * fib_entry_t that are a resolution target for other fib_entry_t's they will also * need the chain to provide forwarding for those children. We store these additional * chains in delegates to save memory in the common case. */ FIB_ENTRY_DELEGATE_CHAIN_UNICAST_IP4 = FIB_FORW_CHAIN_TYPE_UNICAST_IP4, FIB_ENTRY_DELEGATE_CHAIN_UNICAST_IP6 = FIB_FORW_CHAIN_TYPE_UNICAST_IP6, FIB_ENTRY_DELEGATE_CHAIN_MPLS_EOS = FIB_FORW_CHAIN_TYPE_MPLS_EOS, FIB_ENTRY_DELEGATE_CHAIN_MPLS_NON_EOS = FIB_FORW_CHAIN_TYPE_MPLS_NON_EOS, FIB_ENTRY_DELEGATE_CHAIN_ETHERNET = FIB_FORW_CHAIN_TYPE_ETHERNET, FIB_ENTRY_DELEGATE_CHAIN_NSH = FIB_FORW_CHAIN_TYPE_NSH, /** * Dependency list of covered entries. * these are more specific entries that are interested in changes * to their respective cover */ FIB_ENTRY_DELEGATE_COVERED, /** * BFD session state */ FIB_ENTRY_DELEGATE_BFD, /** * Tracker */ FIB_ENTRY_DELEGATE_TRACK, /** * Attached import/export functionality */ FIB_ENTRY_DELEGATE_ATTACHED_IMPORT, FIB_ENTRY_DELEGATE_ATTACHED_EXPORT, } fib_entry_delegate_type_t; #define FOR_EACH_DELEGATE_CHAIN(_entry, _fdt, _fed, _body) \ { \ for (_fdt = FIB_ENTRY_DELEGATE_CHAIN_UNICAST_IP4; \ _fdt <= FIB_ENTRY_DELEGATE_CHAIN_NSH; \ _fdt++) \ { \ _fed = fib_entry_delegate_find(_entry, _fdt); \ if (NULL != _fed) { \ _body; \ } \ } \ } /** * Distillation of the BFD session states into a go/no-go for using * the associated tracked FIB entry */ typedef enum fib_bfd_state_t_ { FIB_BFD_STATE_UP, FIB_BFD_STATE_DOWN, } fib_bfd_state_t; /** * State for FIB entry tracking */ typedef struct fib_entry_delegate_track_t_ { fib_node_t fedt_node; u32 fedt_sibling; } fib_entry_delegate_track_t; /** * A Delagate is a means to implmenet the Delagation design pattern; the extension of an * objects functionality through the composition of, and delgation to, other objects. * These 'other' objects are delegates. Delagates are thus attached to other FIB objects * to extend their functionality. */ typedef struct fib_entry_delegate_t_ { /** * The FIB entry object to which the delagate is attached */ fib_node_index_t fd_entry_index; /** * The delagate type */ fib_entry_delegate_type_t fd_type; /** * A union of data for the different delegate types * These delegates are stored in a sparse vector on the entry, so they * must all be of the same size. We could use indirection here for all types, * i.e. store an index, that's ok for large delegates, like the attached export * but for the chain delegates it's excessive */ union { /** * Valid for the forwarding chain delegates. The LB that is built. */ dpo_id_t fd_dpo; /** * Valid for the attached import cases. An index of the importer/exporter */ fib_node_index_t fd_index; /** * For the cover tracking. The node list; */ fib_node_list_t fd_list; /** * BFD state */ fib_bfd_state_t fd_bfd_state; /** * tracker state */ fib_entry_delegate_track_t fd_track; }; } fib_entry_delegate_t; struct fib_entry_t_; extern void fib_entry_delegate_remove(fib_entry_t *fib_entry, fib_entry_delegate_type_t type); extern fib_entry_delegate_t *fib_entry_delegate_find_or_add(fib_entry_t *fib_entry, fib_entry_delegate_type_t fdt); extern fib_entry_delegate_t *fib_entry_delegate_find(const fib_entry_t *fib_entry, fib_entry_delegate_type_t type); extern fib_forward_chain_type_t fib_entry_delegate_type_to_chain_type( fib_entry_delegate_type_t type); extern fib_entry_delegate_type_t fib_entry_chain_type_to_delegate_type( fib_forward_chain_type_t type); extern u8 *format_fib_entry_delegate(u8 * s, va_list * args); extern fib_node_index_t fib_entry_delegate_get_index (const fib_entry_delegate_t *fed); extern fib_entry_delegate_t * fib_entry_delegate_get (fib_node_index_t fedi); #endif