1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Merge remote-tracking branch 'origin/mq-opt'

This commit is contained in:
Ondrej Zajicek (work)
2019-02-09 15:53:16 +01:00
4 changed files with 67 additions and 10 deletions

View File

@@ -38,6 +38,7 @@ perf_proto_start: proto_start PERF
perf_proto:
perf_proto_start proto_name '{'
| perf_proto perf_proto_item ';'
| perf_proto proto_item ';'
;
perf_proto_item:

View File

@@ -29,7 +29,7 @@
#include <stdlib.h>
#include <time.h>
#define PLOG(msg, ...) log(L_INFO "Perf %s " msg, p->p.name, ##__VA_ARGS__)
#define PLOG(msg, ...) log(L_INFO "Perf %s %s " msg, BIRD_VERSION, p->p.name, ##__VA_ARGS__)
static inline void
random_data(void *p, uint len)
@@ -206,6 +206,7 @@ perf_loop(void *data)
p->exp++;
}
rt_schedule_prune(P->main_channel->table);
ev_schedule(p->loop);
}