Lines Matching defs:stats

43 	const struct hv_stats_page *stats = m->private;
51 seq_printf(m, "%-32s: %llu\n", name, stats->data[idx]);
69 pr_err("%s: failed to unmap logical processor %u stats, err: %d\n",
81 struct hv_stats_page *stats;
85 &stats);
87 pr_err("%s: failed to map logical processor %u stats, err: %d\n",
91 mshv_lps_stats[lp_index] = stats;
93 return stats;
100 struct hv_stats_page *stats;
102 stats = mshv_lp_stats_map(lp_index);
103 if (IS_ERR(stats))
104 return stats;
106 dentry = debugfs_create_file("stats", 0400, parent,
107 stats, &lp_stats_fops);
112 return stats;
119 struct hv_stats_page *stats;
128 stats = lp_debugfs_stats_create(lp_index, idx);
129 if (IS_ERR(stats)) {
130 err = PTR_ERR(stats);
199 * For VP and partition stats, there may be two stats areas mapped,
245 d = debugfs_create_file("stats", 0400, vp_idx_dir,
296 pr_err("%s: failed to unmap partition %lld %s stats, err: %d\n",
309 struct hv_stats_page *stats;
312 err = hv_map_stats_page(HV_STATS_OBJECT_PARTITION, &identity, &stats);
314 pr_err("%s: failed to map partition %lld %s stats, err: %d\n",
320 return stats;
344 * L1VH partition cannot access its partition stats in parent area.
359 dentry = debugfs_create_file("stats", 0400, parent,
551 const struct hv_stats_page *stats = m->private;
559 seq_printf(m, "%-27s: %llu\n", name, stats->data[idx]);
575 pr_err("%s: failed to unmap hypervisor stats: %d\n",
584 struct hv_stats_page *stats;
587 err = hv_map_stats_page(HV_STATS_OBJECT_HYPERVISOR, &identity, &stats);
589 pr_err("%s: failed to map hypervisor stats: %d\n",
593 return stats;
599 u64 *stats;
602 stats = mshv_hv_stats_map();
603 if (IS_ERR(stats))
604 return PTR_ERR(stats);
606 dentry = debugfs_create_file("stats", 0400, parent,
607 stats, &hv_stats_fops);
610 pr_err("%s: failed to create hypervisor stats dentry: %d\n",
615 mshv_lps_count = stats[HV_HYPERVISOR_COUNTER_LOGICAL_PROCESSORS];