diff --git a/observation/src/biotop/biotop.c b/observation/src/biotop/biotop.c new file mode 100644 index 0000000000000000000000000000000000000000..2ed52f83cbbb81becdce46546a4d3c8165cfe61f --- /dev/null +++ b/observation/src/biotop/biotop.c @@ -0,0 +1,29 @@ +// SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) + +#include "commons.h" +#include "biotop.h" +#include "biotop.skel.h" +#include "trace_helpers.h" +#include "compat.h" + +#define OUTPUT_ROWS_LIMIT 10240 + +enum SORT { + ALL, + IO, + BYTES, + TIME, +}; + +struct disk { + int major; + int minor; + char name[256]; +}; + +struct vector { + size_t nr; + size_t capacity; + void **elems; +}; +