Thread (10 messages) 10 messages, 3 authors, 2020-06-24

Re: [PATCH 1/2] powerpc/papr_scm: Fetch nvdimm performance stats from PHYP

From: Aneesh Kumar K.V <hidden>
Date: 2020-06-23 05:53:48
Also in: nvdimm

Aneesh Kumar K.V [off-list ref] writes:
Vaibhav Jain [off-list ref] writes:
+		 */
quoted
+		seq_buf_init(&s, buf, PAGE_SIZE);
+		for (index = 0, stat = stats->scm_statistic;
+		     index < stats->num_statistics; ++index, ++stat) {
+			seq_buf_printf(&s, "%.8s = 0x%016llX\n",
+				       stat->statistic_id, stat->statistic_value);

That is raw number (statistic_id). Is that useful? Can we map them to user readable
strings? 
Ok i missed that "%.8s" .
quoted
+		}
+	}
+
+	kfree(stats);
+	return rc ? rc : seq_buf_used(&s);
+}
+DEVICE_ATTR_RO(perf_stats);
-aneesh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help