| 1918 | #ifdef RTE_SCHED_DEBUG |
| 1919 | |
| 1920 | static inline void |
| 1921 | debug_check_queue_slab(struct rte_sched_subport *subport, uint32_t bmp_pos, |
| 1922 | uint64_t bmp_slab) |
| 1923 | { |
| 1924 | uint64_t mask; |
| 1925 | uint32_t i, panic; |
| 1926 | |
| 1927 | if (bmp_slab == 0) |
| 1928 | rte_panic("Empty slab at position %u\n", bmp_pos); |
| 1929 | |
| 1930 | panic = 0; |
| 1931 | for (i = 0, mask = 1; i < 64; i++, mask <<= 1) { |
| 1932 | if (mask & bmp_slab) { |
| 1933 | if (rte_sched_port_queue_is_empty(subport, bmp_pos + i)) { |
| 1934 | printf("Queue %u (slab offset %u) is empty\n", bmp_pos + i, i); |
| 1935 | panic = 1; |
| 1936 | } |
| 1937 | } |
| 1938 | } |
| 1939 | |
| 1940 | if (panic) |
| 1941 | rte_panic("Empty queues in slab 0x%" PRIx64 "starting at position %u\n", |
| 1942 | bmp_slab, bmp_pos); |
| 1943 | } |
| 1944 | |
| 1945 | #endif /* RTE_SCHED_DEBUG */ |
| 1946 |
no test coverage detected