[BACK]Return to tprof_x86_intel.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / dev / tprof

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/dev/tprof/tprof_x86_intel.c between version 1.2.8.2 and 1.2.8.3

version 1.2.8.2, 2019/06/10 22:07:33 version 1.2.8.3, 2020/04/13 08:04:49
Line 119  tprof_intel_start_cpu(void *arg1, void *
Line 119  tprof_intel_start_cpu(void *arg1, void *
         wrmsr(MSR_PERFCTR0, counter_reset_val);          wrmsr(MSR_PERFCTR0, counter_reset_val);
         wrmsr(MSR_EVNTSEL0, evtval);          wrmsr(MSR_EVNTSEL0, evtval);
   
         intel_lapic_saved[cpu_index(ci)] = lapic_readreg(LAPIC_PCINT);          intel_lapic_saved[cpu_index(ci)] = lapic_readreg(LAPIC_LVT_PCINT);
         lapic_writereg(LAPIC_PCINT, LAPIC_DLMODE_NMI);          lapic_writereg(LAPIC_LVT_PCINT, LAPIC_DLMODE_NMI);
 }  }
   
 static void  static void
Line 131  tprof_intel_stop_cpu(void *arg1, void *a
Line 131  tprof_intel_stop_cpu(void *arg1, void *a
         wrmsr(MSR_EVNTSEL0, 0);          wrmsr(MSR_EVNTSEL0, 0);
         wrmsr(MSR_PERFCTR0, 0);          wrmsr(MSR_PERFCTR0, 0);
   
         lapic_writereg(LAPIC_PCINT, intel_lapic_saved[cpu_index(ci)]);          lapic_writereg(LAPIC_LVT_PCINT, intel_lapic_saved[cpu_index(ci)]);
 }  }
   
 static int  static int
Line 162  tprof_intel_nmi(const struct trapframe *
Line 162  tprof_intel_nmi(const struct trapframe *
         wrmsr(MSR_PERFCTR0, counter_reset_val);          wrmsr(MSR_PERFCTR0, counter_reset_val);
   
         /* unmask PMI */          /* unmask PMI */
         pcint = lapic_readreg(LAPIC_PCINT);          pcint = lapic_readreg(LAPIC_LVT_PCINT);
         KASSERT((pcint & LAPIC_LVT_MASKED) != 0);          KASSERT((pcint & LAPIC_LVT_MASKED) != 0);
         lapic_writereg(LAPIC_PCINT, pcint & ~LAPIC_LVT_MASKED);          lapic_writereg(LAPIC_LVT_PCINT, pcint & ~LAPIC_LVT_MASKED);
   
         return 1;          return 1;
 }  }

Legend:
Removed from v.1.2.8.2  
changed lines
  Added in v.1.2.8.3

CVSweb <webmaster@jp.NetBSD.org>