Return to perf.h CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / bird2 / proto / perf |
1.1 ! misho 1: /* ! 2: * BIRD -- Benchmarking Dummy Protocol ! 3: * ! 4: * (c) 2018 Maria Matejka <mq@jmq.cz> ! 5: * ! 6: * Can be freely distributed and used under the terms of the GNU GPL. ! 7: */ ! 8: ! 9: #ifndef _BIRD_PERF_H_ ! 10: #define _BIRD_PERF_H_ ! 11: ! 12: enum perf_mode { ! 13: PERF_MODE_IMPORT, ! 14: PERF_MODE_EXPORT, ! 15: }; ! 16: ! 17: struct perf_config { ! 18: struct proto_config p; ! 19: btime threshold_min; ! 20: btime threshold_max; ! 21: uint from; ! 22: uint to; ! 23: uint repeat; ! 24: uint keep; ! 25: uint attrs_per_rte; ! 26: enum perf_mode mode; ! 27: }; ! 28: ! 29: struct perf_proto { ! 30: struct proto p; ! 31: struct ifa *ifa; ! 32: void *data; ! 33: event *loop; ! 34: btime threshold_min; ! 35: btime threshold_max; ! 36: uint from; ! 37: uint to; ! 38: uint repeat; ! 39: uint run; ! 40: uint exp; ! 41: uint stop; ! 42: uint keep; ! 43: uint attrs_per_rte; ! 44: enum perf_mode mode; ! 45: }; ! 46: ! 47: #endif