cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

iostat.c (1404B)


      1// SPDX-License-Identifier: GPL-2.0
      2#include "util/iostat.h"
      3#include "util/debug.h"
      4
      5enum iostat_mode_t iostat_mode = IOSTAT_NONE;
      6
      7__weak int iostat_prepare(struct evlist *evlist __maybe_unused,
      8			  struct perf_stat_config *config __maybe_unused)
      9{
     10	return -1;
     11}
     12
     13__weak int iostat_parse(const struct option *opt __maybe_unused,
     14			 const char *str __maybe_unused,
     15			 int unset __maybe_unused)
     16{
     17	pr_err("iostat mode is not supported on current platform\n");
     18	return -1;
     19}
     20
     21__weak void iostat_list(struct evlist *evlist __maybe_unused,
     22		       struct perf_stat_config *config __maybe_unused)
     23{
     24}
     25
     26__weak void iostat_release(struct evlist *evlist __maybe_unused)
     27{
     28}
     29
     30__weak void iostat_print_header_prefix(struct perf_stat_config *config __maybe_unused)
     31{
     32}
     33
     34__weak void iostat_print_metric(struct perf_stat_config *config __maybe_unused,
     35				struct evsel *evsel __maybe_unused,
     36				struct perf_stat_output_ctx *out __maybe_unused)
     37{
     38}
     39
     40__weak void iostat_prefix(struct evlist *evlist __maybe_unused,
     41			  struct perf_stat_config *config __maybe_unused,
     42			  char *prefix __maybe_unused,
     43			  struct timespec *ts __maybe_unused)
     44{
     45}
     46
     47__weak void iostat_print_counters(struct evlist *evlist __maybe_unused,
     48				  struct perf_stat_config *config __maybe_unused,
     49				  struct timespec *ts __maybe_unused,
     50				  char *prefix __maybe_unused,
     51				  iostat_print_counter_t print_cnt_cb __maybe_unused)
     52{
     53}