Home | History | Annotate | Download | only in x86

Lines Matching refs:addrs

20 #define CTR_READ(l, h, msrs, c) do {rdmsr(msrs->counters.addrs[(c)], (l), (h));} while (0)
21 #define CTR_WRITE(l, msrs, c) do {wrmsr(msrs->counters.addrs[(c)], -(u32)(l), 0xffff);} while (0)
24 #define CTRL_READ(l, h, msrs, c) do {rdmsr(msrs->controls.addrs[(c)], (l), (h));} while (0)
25 #define CTRL_WRITE(l, h, msrs, c) do {wrmsr(msrs->controls.addrs[(c)], (l), (h));} while (0)
38 msrs->counters.addrs[0] = MSR_K7_PERFCTR0;
39 msrs->counters.addrs[1] = MSR_K7_PERFCTR1;
40 msrs->counters.addrs[2] = MSR_K7_PERFCTR2;
41 msrs->counters.addrs[3] = MSR_K7_PERFCTR3;
43 msrs->controls.addrs[0] = MSR_K7_EVNTSEL0;
44 msrs->controls.addrs[1] = MSR_K7_EVNTSEL1;
45 msrs->controls.addrs[2] = MSR_K7_EVNTSEL2;
46 msrs->controls.addrs[3] = MSR_K7_EVNTSEL3;