162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0 262306a36Sopenharmony_ci#include "util/iostat.h" 362306a36Sopenharmony_ci#include "util/debug.h" 462306a36Sopenharmony_ci 562306a36Sopenharmony_cienum iostat_mode_t iostat_mode = IOSTAT_NONE; 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci__weak int iostat_prepare(struct evlist *evlist __maybe_unused, 862306a36Sopenharmony_ci struct perf_stat_config *config __maybe_unused) 962306a36Sopenharmony_ci{ 1062306a36Sopenharmony_ci return -1; 1162306a36Sopenharmony_ci} 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ci__weak int iostat_parse(const struct option *opt __maybe_unused, 1462306a36Sopenharmony_ci const char *str __maybe_unused, 1562306a36Sopenharmony_ci int unset __maybe_unused) 1662306a36Sopenharmony_ci{ 1762306a36Sopenharmony_ci pr_err("iostat mode is not supported on current platform\n"); 1862306a36Sopenharmony_ci return -1; 1962306a36Sopenharmony_ci} 2062306a36Sopenharmony_ci 2162306a36Sopenharmony_ci__weak void iostat_list(struct evlist *evlist __maybe_unused, 2262306a36Sopenharmony_ci struct perf_stat_config *config __maybe_unused) 2362306a36Sopenharmony_ci{ 2462306a36Sopenharmony_ci} 2562306a36Sopenharmony_ci 2662306a36Sopenharmony_ci__weak void iostat_release(struct evlist *evlist __maybe_unused) 2762306a36Sopenharmony_ci{ 2862306a36Sopenharmony_ci} 2962306a36Sopenharmony_ci 3062306a36Sopenharmony_ci__weak void iostat_print_header_prefix(struct perf_stat_config *config __maybe_unused) 3162306a36Sopenharmony_ci{ 3262306a36Sopenharmony_ci} 3362306a36Sopenharmony_ci 3462306a36Sopenharmony_ci__weak void iostat_print_metric(struct perf_stat_config *config __maybe_unused, 3562306a36Sopenharmony_ci struct evsel *evsel __maybe_unused, 3662306a36Sopenharmony_ci struct perf_stat_output_ctx *out __maybe_unused) 3762306a36Sopenharmony_ci{ 3862306a36Sopenharmony_ci} 3962306a36Sopenharmony_ci 4062306a36Sopenharmony_ci__weak void iostat_prefix(struct evlist *evlist __maybe_unused, 4162306a36Sopenharmony_ci struct perf_stat_config *config __maybe_unused, 4262306a36Sopenharmony_ci char *prefix __maybe_unused, 4362306a36Sopenharmony_ci struct timespec *ts __maybe_unused) 4462306a36Sopenharmony_ci{ 4562306a36Sopenharmony_ci} 4662306a36Sopenharmony_ci 4762306a36Sopenharmony_ci__weak void iostat_print_counters(struct evlist *evlist __maybe_unused, 4862306a36Sopenharmony_ci struct perf_stat_config *config __maybe_unused, 4962306a36Sopenharmony_ci struct timespec *ts __maybe_unused, 5062306a36Sopenharmony_ci char *prefix __maybe_unused, 5162306a36Sopenharmony_ci iostat_print_counter_t print_cnt_cb __maybe_unused, 5262306a36Sopenharmony_ci void *arg __maybe_unused) 5362306a36Sopenharmony_ci{ 5462306a36Sopenharmony_ci} 55