/* * FCP report generators * * Traffic report program * * Copyright IBM Corp. 2008, 2017 * * 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_collapser.hpp" #include "ziorep_utils.hpp" using std::list; const char *toolname = "ziorep_traffic"; int verbose=0; struct options { __u64 begin; __u64 end; __u32 interval; list devices; list mp_devices; __u64 topline; char* filename; bool print_summary; bool details; Aggregator col_crit; list<__u32> chpids; list<__u32> devnos; list<__u64> wwpns; list<__u64> luns; bool csv_export; }; 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->details = false; opts->col_crit = none; opts->csv_export = false; } static const char help_text[] = "Usage: ziorep_traffic [-V] [-v] [-h] [-b ] [-e ]" " [-i