Lines Matching defs:config
397 static struct p4_event_bind *p4_config_get_bind(u64 config)
399 unsigned int evnt = p4_config_unpack_event(config);
412 u64 config;
414 config = p4_general_events[hw_event];
415 bind = p4_config_get_bind(config);
417 config |= p4_config_pack_cccr(P4_CCCR_ESEL(esel));
419 return config;
427 v = p4_config_unpack_event(event->attr.config);
436 if (p4_config_pebs_has(event->attr.config, P4_PEBS_CONFIG_ENABLE)) {
440 v = p4_config_unpack_metric(event->attr.config);
458 * specific flags in config (and will save some cpu cycles)
464 event->hw.config = p4_config_pack_escr(escr) |
468 event->hw.config = p4_set_ht_bit(event->hw.config);
476 event->hw.config |= event->attr.config &
480 event->hw.config &= ~P4_CCCR_FORCE_OVF;
520 (u64)(p4_config_unpack_cccr(hwc->config)) &
540 static void p4_pmu_enable_pebs(u64 config)
547 idx = p4_config_unpack_metric(config);
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));
580 cccr = p4_config_unpack_cccr(hwc->config);
586 p4_pmu_enable_pebs(hwc->config);
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;
823 bind = p4_config_get_bind(hwc->config);
828 if (hwc->idx != -1 && !p4_should_swap_ts(hwc->config, cpu)) {