Files
seL4/include/benchmark/benchmark_utilisation_.h
Kent McLeod 88a7d138c4 KernelBenchmarksTrackUtilisation: Add more stats
For each thread also track number of times scheduled, number of kernel
entries and amount of cycles spent inside the kernel.  Also add
core-wide totals for each.

Signed-off-by: Kent McLeod <Kent.Mcleod@data61.csiro.au>
2020-07-15 15:15:27 +10:00

23 lines
470 B
C

/*
* Copyright 2020, Data61, CSIRO (ABN 41 687 119 230)
*
* SPDX-License-Identifier: GPL-2.0-only
*/
#pragma once
#include <config.h>
#include <basic_types.h>
#ifdef CONFIG_BENCHMARK_TRACK_UTILISATION
typedef struct {
timestamp_t schedule_start_time;
uint64_t utilisation;
uint64_t number_schedules;
uint64_t kernel_utilisation;
uint64_t number_kernel_entries;
} benchmark_util_t;
#endif /* CONFIG_BENCHMARK_TRACK_UTILISATION */