diff options
author | Damjan Marion <damarion@cisco.com> | 2021-12-02 17:08:02 +0100 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2021-12-02 17:49:49 +0000 |
commit | e31c48a66b966fa326a5ca813892201e7e3e054b (patch) | |
tree | 49c81986a9b0392c8dd5f0f35e3112a88fb5746e /src/plugins/perfmon/perfmon.h | |
parent | 3323e2018d6d736a25b15902bc85f559ea98adb5 (diff) |
perfmon: compile dispatch wrapper once for each number of counters
A bit ugly, but generates faster and less noisy code which
should be important for this particular use case.
Type: improvement
Change-Id: If2bba947dac33ffedb4236a5b3fb50fc783668e1
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/perfmon/perfmon.h')
-rw-r--r-- | src/plugins/perfmon/perfmon.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/perfmon/perfmon.h b/src/plugins/perfmon/perfmon.h index 5003e59015e..58d971f559a 100644 --- a/src/plugins/perfmon/perfmon.h +++ b/src/plugins/perfmon/perfmon.h @@ -78,7 +78,7 @@ typedef struct } perfmon_instance_type_t; struct perfmon_source; -vlib_node_function_t perfmon_dispatch_wrapper; +extern vlib_node_function_t *perfmon_dispatch_wrappers[PERF_MAX_EVENTS + 1]; typedef clib_error_t *(perfmon_source_init_fn_t) (vlib_main_t *vm, struct perfmon_source *); |