Integrate irq mode into PROX (support display and command line) 09/50709/1
authorXavier Simonart <xavier.simonart@intel.com>
Sun, 14 Jan 2018 17:13:09 +0000 (18:13 +0100)
committerXavier Simonart <xavier.simonart@intel.com>
Tue, 16 Jan 2018 15:53:26 +0000 (16:53 +0100)
commitab933e9fd74d5a4e20eeb30e3fab3977e98b8743
tree81bd77c978e4308cf51f78391397be7be6998af3
parentdeab1ee8197298bd7cf30d259a28206841d59383
Integrate irq mode into PROX (support display and command line)

irq mode can be used to show how a core is interrupted by other tasks.
This mode does not handle packets. It only loops reading tsc.
When the difference between two consecutive calls to rdtsc() is high
then it means the core was interrupted.
This task implementes the display, so that we can see a histogram of
interrupts as well as the maximum, per core.
Command line is also supported, through "show irq buckets" (too show
the intervals of each buckets, in micrcoseconds), and the stats
command line (showing the number of items in each buckets and the max)..

Change-Id: I153cc3deaa7b86ae2776ea44e46ef9ecfd116992
Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
15 files changed:
VNFs/DPPD-PROX/Makefile
VNFs/DPPD-PROX/cmd_parser.c
VNFs/DPPD-PROX/display.c
VNFs/DPPD-PROX/display_irq.c [new file with mode: 0644]
VNFs/DPPD-PROX/display_irq.h [new file with mode: 0644]
VNFs/DPPD-PROX/handle_irq.c
VNFs/DPPD-PROX/handle_irq.h
VNFs/DPPD-PROX/prox_args.c
VNFs/DPPD-PROX/prox_port_cfg.c
VNFs/DPPD-PROX/stats.c
VNFs/DPPD-PROX/stats_cons.h
VNFs/DPPD-PROX/stats_irq.c [new file with mode: 0644]
VNFs/DPPD-PROX/stats_irq.h [new file with mode: 0644]
VNFs/DPPD-PROX/stats_parser.c
VNFs/DPPD-PROX/task_init.h