Lines Matching refs:msr_num
133 unsigned int msr_num;
554 int add_counter(unsigned int msr_num, char *path, char *name,
2235 if (p->msr_num != 0) {
3052 sprintf(outp, "tADDED [%d] %8s msr0x%x: %08llX %s\n", i, mp->name, mp->msr_num,
3073 sprintf(outp, "cADDED [%d] %8s msr0x%x: %08llX %s\n", i, mp->name, mp->msr_num,
3110 sprintf(outp, "pADDED [%d] %8s msr0x%x: %08llX %s\n", i, mp->name, mp->msr_num,
4384 if (mp->msr_num != 0) {
4386 if (get_msr(cpu, mp->msr_num, counterp))
5252 if (mp->msr_num == 0) {
10168 int add_counter(unsigned int msr_num, char *path, char *name,
10174 if (no_msr && msr_num)
10175 errx(1, "Requested MSR counter 0x%x, but in --no-msr mode", msr_num);
10179 __func__, msr_num, path, name, width, scope, type, format, flags, id);
10229 msrp->msr_num = msr_num;
10364 int msr_num = 0;
10377 if (sscanf(add_command, "msr0x%x", &msr_num) == 1)
10380 if (sscanf(add_command, "msr%d", &msr_num) == 1)
10457 if ((msr_num == 0) && (path == NULL) && (perf_device[0] == '\0' || perf_event[0] == '\0')) {
10471 sprintf(name_buffer, "M0x%x%s", msr_num, format == FORMAT_PERCENT ? "%" : "");
10473 sprintf(name_buffer, "M0X%x%s", msr_num, format == FORMAT_PERCENT ? "%" : "");
10481 if (add_counter(msr_num, path, name_buffer, width, scope, type, format, 0, 0))