From 7411b694c3ca9db4947f577f826b622ff23e570d Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Thu, 31 Jan 2019 15:03:43 +0100 Subject: Perf: Write also BIRD version to have all the needed data in the logfile --- proto/perf/perf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proto/perf/perf.c') diff --git a/proto/perf/perf.c b/proto/perf/perf.c index 6741f7cb..07210a14 100644 --- a/proto/perf/perf.c +++ b/proto/perf/perf.c @@ -29,7 +29,7 @@ #include #include -#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) -- cgit v1.2.3 From e85e37d91d0c5fca6cb7a3ea80fac582074c389d Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Tue, 29 Jan 2019 14:22:55 +0100 Subject: Perf: Prune the table after every loop to have clean state. --- proto/perf/perf.c | 1 + 1 file changed, 1 insertion(+) (limited to 'proto/perf/perf.c') diff --git a/proto/perf/perf.c b/proto/perf/perf.c index 07210a14..8412254a 100644 --- a/proto/perf/perf.c +++ b/proto/perf/perf.c @@ -206,6 +206,7 @@ perf_loop(void *data) p->exp++; } + rt_schedule_prune(P->main_channel->table); ev_schedule(p->loop); } -- cgit v1.2.3