Aneesh Kumar K.V <aneesh.ku...@linux.ibm.com> writes: > Vaibhav Jain <vaib...@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