/* * FCP report generators * * Utilization report program * * Copyright IBM Corp. 2008, 2024 * * s390-tools is free software; you can redistribute it and/or modify * it under the terms of the MIT license. See LICENSE for details. */ #include #include #include #include #define __STDC_LIMIT_MACROS #include #include #include #include #include "lib/zt_common.h" #include "ziorep_framer.hpp" #include "ziorep_printers.hpp" #include "ziorep_frameset.hpp" #include "ziorep_utils.hpp" #include "ziorep_collapser.hpp" extern "C" { #include "ziomon_msg_tools.h" } using std::list; const char *toolname = "ziorep_utilization"; int verbose=0; struct options { __u64 begin; __u64 end; __u32 interval; list<__u32> chpids; __u64 topline; char* filename; bool print_summary; bool csv_export; bool fcp_device; }; static void init_opts(struct options *opts) { opts->begin = 0; opts->end = UINT64_MAX; opts->interval = UINT32_MAX; opts->topline = 0; opts->filename = NULL; opts->print_summary = false; opts->csv_export = false; opts->fcp_device = false; } static const char help_text[] = "Usage: ziorep_utilization [-V] [-v] [-h] [-b ] [-e ] [-i