[PATCH 1/2] powerpc/papr_scm: Fetch nvdimm performance stats from PHYP
Aneesh Kumar K.V
aneesh.kumar at linux.ibm.com
Tue Jun 23 15:52:07 AEST 2020
Aneesh Kumar K.V <aneesh.kumar at linux.ibm.com> writes:
> Vaibhav Jain <vaibhav at linux.ibm.com> writes:
> + */
>> + 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" .
>
>> + }
>> + }
>> +
>> + kfree(stats);
>> + return rc ? rc : seq_buf_used(&s);
>> +}
>> +DEVICE_ATTR_RO(perf_stats);
-aneesh
More information about the Linuxppc-dev
mailing list