1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2017 Cavium, Inc
11 static STAILQ_HEAD(, evt_test_entry) head = STAILQ_HEAD_INITIALIZER(head);
14 evt_test_register(struct evt_test_entry *entry)
16 STAILQ_INSERT_TAIL(&head, entry, next);
20 evt_test_get(const char *name)
22 struct evt_test_entry *entry;
27 STAILQ_FOREACH(entry, &head, next)
28 if (!strncmp(entry->test.name, name, strlen(name)))
35 evt_test_dump_names(void)
37 struct evt_test_entry *entry;
39 STAILQ_FOREACH(entry, &head, next)
41 printf("\t %s\n", entry->test.name);