#include <linux/configfs.h>
#include <linux/export.h>
#include <scsi/iscsi_proto.h>
#include <target/target_core_base.h>
#include <target/iscsi/iscsi_target_core.h>
#include "iscsi_target_parameters.h"
#include "iscsi_target_device.h"
#include "iscsi_target_tpg.h"
#include "iscsi_target_util.h"
#include <target/iscsi/iscsi_target_stat.h>
#ifndef INITIAL_JIFFIES
#define INITIAL_JIFFIES …
#endif
#define ISCSI_INST_NUM_NODES …
#define ISCSI_INST_DESCR …
#define ISCSI_DISCONTINUITY_TIME …
#define ISCSI_NODE_INDEX …
#define ISPRINT(a) …
static struct iscsi_tiqn *iscsi_instance_tiqn(struct config_item *item)
{ … }
static ssize_t iscsi_stat_instance_inst_show(struct config_item *item,
char *page)
{ … }
static ssize_t iscsi_stat_instance_min_ver_show(struct config_item *item,
char *page)
{ … }
static ssize_t iscsi_stat_instance_max_ver_show(struct config_item *item,
char *page)
{ … }
static ssize_t iscsi_stat_instance_portals_show(struct config_item *item,
char *page)
{ … }
static ssize_t iscsi_stat_instance_nodes_show(struct config_item *item,
char *page)
{ … }
static ssize_t iscsi_stat_instance_sessions_show(struct config_item *item,
char *page)
{ … }
static ssize_t iscsi_stat_instance_fail_sess_show(struct config_item *item,
char *page)
{ … }
static ssize_t iscsi_stat_instance_fail_type_show(struct config_item *item,
char *page)
{ … }
static ssize_t iscsi_stat_instance_fail_rem_name_show(struct config_item *item,
char *page)
{ … }
static ssize_t iscsi_stat_instance_disc_time_show(struct config_item *item,
char *page)
{ … }
static ssize_t iscsi_stat_instance_description_show(struct config_item *item,
char *page)
{ … }
static ssize_t iscsi_stat_instance_vendor_show(struct config_item *item,
char *page)
{ … }
static ssize_t iscsi_stat_instance_version_show(struct config_item *item,
char *page)
{ … }
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
static struct configfs_attribute *iscsi_stat_instance_attrs[] = …;
const struct config_item_type iscsi_stat_instance_cit = …;
static struct iscsi_tiqn *iscsi_sess_err_tiqn(struct config_item *item)
{ … }
static ssize_t iscsi_stat_sess_err_inst_show(struct config_item *item,
char *page)
{ … }
static ssize_t iscsi_stat_sess_err_digest_errors_show(struct config_item *item,
char *page)
{ … }
static ssize_t iscsi_stat_sess_err_cxn_errors_show(struct config_item *item,
char *page)
{ … }
static ssize_t iscsi_stat_sess_err_format_errors_show(struct config_item *item,
char *page)
{ … }
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
static struct configfs_attribute *iscsi_stat_sess_err_attrs[] = …;
const struct config_item_type iscsi_stat_sess_err_cit = …;
static struct iscsi_tiqn *iscsi_tgt_attr_tiqn(struct config_item *item)
{ … }
static ssize_t iscsi_stat_tgt_attr_inst_show(struct config_item *item,
char *page)
{ … }
static ssize_t iscsi_stat_tgt_attr_indx_show(struct config_item *item,
char *page)
{ … }
static ssize_t iscsi_stat_tgt_attr_login_fails_show(struct config_item *item,
char *page)
{ … }
static ssize_t iscsi_stat_tgt_attr_last_fail_time_show(struct config_item *item,
char *page)
{ … }
static ssize_t iscsi_stat_tgt_attr_last_fail_type_show(struct config_item *item,
char *page)
{ … }
static ssize_t iscsi_stat_tgt_attr_fail_intr_name_show(struct config_item *item,
char *page)
{ … }
static ssize_t iscsi_stat_tgt_attr_fail_intr_addr_type_show(struct config_item *item,
char *page)
{ … }
static ssize_t iscsi_stat_tgt_attr_fail_intr_addr_show(struct config_item *item,
char *page)
{ … }
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
static struct configfs_attribute *iscsi_stat_tgt_attr_attrs[] = …;
const struct config_item_type iscsi_stat_tgt_attr_cit = …;
static struct iscsi_tiqn *iscsi_login_stat_tiqn(struct config_item *item)
{ … }
static ssize_t iscsi_stat_login_inst_show(struct config_item *item, char *page)
{ … }
static ssize_t iscsi_stat_login_indx_show(struct config_item *item,
char *page)
{ … }
static ssize_t iscsi_stat_login_accepts_show(struct config_item *item,
char *page)
{ … }
static ssize_t iscsi_stat_login_other_fails_show(struct config_item *item,
char *page)
{ … }
static ssize_t iscsi_stat_login_redirects_show(struct config_item *item,
char *page)
{ … }
static ssize_t iscsi_stat_login_authorize_fails_show(struct config_item *item,
char *page)
{ … }
static ssize_t iscsi_stat_login_authenticate_fails_show(
struct config_item *item, char *page)
{ … }
static ssize_t iscsi_stat_login_negotiate_fails_show(struct config_item *item,
char *page)
{ … }
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
static struct configfs_attribute *iscsi_stat_login_stats_attrs[] = …;
const struct config_item_type iscsi_stat_login_cit = …;
static struct iscsi_tiqn *iscsi_logout_stat_tiqn(struct config_item *item)
{ … }
static ssize_t iscsi_stat_logout_inst_show(struct config_item *item, char *page)
{ … }
static ssize_t iscsi_stat_logout_indx_show(struct config_item *item, char *page)
{ … }
static ssize_t iscsi_stat_logout_normal_logouts_show(struct config_item *item,
char *page)
{ … }
static ssize_t iscsi_stat_logout_abnormal_logouts_show(struct config_item *item,
char *page)
{ … }
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
static struct configfs_attribute *iscsi_stat_logout_stats_attrs[] = …;
const struct config_item_type iscsi_stat_logout_cit = …;
static struct iscsi_node_acl *iscsi_stat_nacl(struct config_item *item)
{ … }
static ssize_t iscsi_stat_sess_inst_show(struct config_item *item, char *page)
{ … }
static ssize_t iscsi_stat_sess_node_show(struct config_item *item, char *page)
{ … }
static ssize_t iscsi_stat_sess_indx_show(struct config_item *item, char *page)
{ … }
static ssize_t iscsi_stat_sess_cmd_pdus_show(struct config_item *item,
char *page)
{ … }
static ssize_t iscsi_stat_sess_rsp_pdus_show(struct config_item *item,
char *page)
{ … }
static ssize_t iscsi_stat_sess_txdata_octs_show(struct config_item *item,
char *page)
{ … }
static ssize_t iscsi_stat_sess_rxdata_octs_show(struct config_item *item,
char *page)
{ … }
static ssize_t iscsi_stat_sess_conn_digest_errors_show(struct config_item *item,
char *page)
{ … }
static ssize_t iscsi_stat_sess_conn_timeout_errors_show(
struct config_item *item, char *page)
{ … }
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
CONFIGFS_ATTR_RO(…);
static struct configfs_attribute *iscsi_stat_sess_stats_attrs[] = …;
const struct config_item_type iscsi_stat_sess_cit = …;