• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/arch/x86/kernel/cpu/

Lines Matching defs:hwc

489 static inline int p4_pmu_clear_cccr_ovf(struct hw_perf_event *hwc)
494 rdmsr(hwc->config_base + hwc->idx, low, high);
499 (void)checking_wrmsrl(hwc->config_base + hwc->idx,
512 struct hw_perf_event *hwc = &event->hw;
519 (void)checking_wrmsrl(hwc->config_base + hwc->idx,
520 (u64)(p4_config_unpack_cccr(hwc->config)) &
559 struct hw_perf_event *hwc = &event->hw;
560 int thread = p4_ht_config_thread(hwc->config);
561 u64 escr_conf = p4_config_unpack_escr(p4_clear_ht_bit(hwc->config));
562 unsigned int idx = p4_config_unpack_event(hwc->config);
573 WARN_ON_ONCE(p4_is_event_cascaded(hwc->config));
574 WARN_ON_ONCE(hwc->idx == 1);
580 cccr = p4_config_unpack_cccr(hwc->config);
586 p4_pmu_enable_pebs(hwc->config);
589 (void)checking_wrmsrl(hwc->config_base + hwc->idx,
611 struct hw_perf_event *hwc;
631 hwc = &event->hw;
633 WARN_ON_ONCE(hwc->idx != idx);
636 overflow = p4_pmu_clear_cccr_ovf(hwc);
666 static void p4_pmu_swap_config_ts(struct hw_perf_event *hwc, int cpu)
673 if (!p4_should_swap_ts(hwc->config, cpu))
681 escr = p4_config_unpack_escr(hwc->config);
682 cccr = p4_config_unpack_cccr(hwc->config);
695 hwc->config = p4_config_pack_escr(escr);
696 hwc->config |= p4_config_pack_cccr(cccr);
697 hwc->config |= P4_CONFIG_HT;
709 hwc->config = p4_config_pack_escr(escr);
710 hwc->config |= p4_config_pack_cccr(cccr);
711 hwc->config &= ~P4_CONFIG_HT;
811 struct hw_perf_event *hwc;
821 hwc = &cpuc->event_list[i]->hw;
823 bind = p4_config_get_bind(hwc->config);
828 if (hwc->idx != -1 && !p4_should_swap_ts(hwc->config, cpu)) {
829 cntr_idx = hwc->idx;
831 assign[i] = hwc->idx;
839 p4_pmu_swap_config_ts(hwc, cpu);