aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-dpdk/odp_schedule_eventdev.c
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2021-07-08 17:47:49 +0300
committerMatias Elo <matias.elo@nokia.com>2021-07-16 09:07:48 +0300
commit70bbea190622394d3abec4de516d0aa5bd6ad09d (patch)
tree5b45875ea6e45f3a059d48ad773437c882c449a0 /platform/linux-dpdk/odp_schedule_eventdev.c
parent7b67ed50f16d0f6ff8316ad70875449041766577 (diff)
Port e670d4c4d "linux-gen: sched: implement debug print"
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
Diffstat (limited to 'platform/linux-dpdk/odp_schedule_eventdev.c')
-rw-r--r--platform/linux-dpdk/odp_schedule_eventdev.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/platform/linux-dpdk/odp_schedule_eventdev.c b/platform/linux-dpdk/odp_schedule_eventdev.c
index f7b6bbb8f..399a3c6a3 100644
--- a/platform/linux-dpdk/odp_schedule_eventdev.c
+++ b/platform/linux-dpdk/odp_schedule_eventdev.c
@@ -1049,6 +1049,20 @@ static int schedule_config(const odp_schedule_config_t *config)
return 0;
}
+static void schedule_print(void)
+{
+ odp_schedule_capability_t capa;
+
+ (void)schedule_capability(&capa);
+
+ ODP_PRINT("\nScheduler debug info\n");
+ ODP_PRINT("--------------------\n");
+ ODP_PRINT(" scheduler: eventdev\n");
+ ODP_PRINT(" max groups: %u\n", capa.max_groups);
+ ODP_PRINT(" max priorities: %u\n", capa.max_prios);
+ ODP_PRINT("\n");
+}
+
/* Fill in scheduler interface */
const schedule_fn_t _odp_schedule_eventdev_fn = {
.pktio_start = schedule_pktio_start,
@@ -1099,5 +1113,6 @@ const schedule_api_t _odp_schedule_eventdev_api = {
.schedule_order_unlock = schedule_order_unlock,
.schedule_order_unlock_lock = schedule_order_unlock_lock,
.schedule_order_lock_start = schedule_order_lock_start,
- .schedule_order_lock_wait = schedule_order_lock_wait
+ .schedule_order_lock_wait = schedule_order_lock_wait,
+ .schedule_print = schedule_print
};