Lines Matching refs:ds

441 	struct debug_store *ds = per_cpu(cpu_hw_events, cpu).ds;
443 if (!ds)
447 (u32)((u64)(unsigned long)ds),
448 (u32)((u64)(unsigned long)ds >> 32));
453 if (!per_cpu(cpu_hw_events, cpu).ds)
513 struct debug_store *ds = hwev->ds;
540 ds->pebs_buffer_base = (unsigned long) cea;
542 ds->pebs_index = ds->pebs_buffer_base;
544 ds->pebs_absolute_maximum = ds->pebs_buffer_base + max;
569 struct debug_store *ds = hwev->ds;
584 ds->bts_buffer_base = (unsigned long) cea;
586 ds->bts_index = ds->bts_buffer_base;
588 ds->bts_absolute_maximum = ds->bts_buffer_base +
590 ds->bts_interrupt_threshold = ds->bts_absolute_maximum -
612 struct debug_store *ds = &get_cpu_entry_area(cpu)->cpu_debug_store;
614 memset(ds, 0, sizeof(*ds));
615 per_cpu(cpu_hw_events, cpu).ds = ds;
621 per_cpu(cpu_hw_events, cpu).ds = NULL;
637 * observe cpu_hw_events.ds and not program the DS_AREA when
744 if (!cpuc->ds)
759 struct debug_store *ds = cpuc->ds;
779 base = (struct bts_record *)(unsigned long)ds->bts_buffer_base;
780 top = (struct bts_record *)(unsigned long)ds->bts_index;
787 ds->bts_index = ds->bts_buffer_base;
1139 struct debug_store *ds = cpuc->ds;
1154 threshold = ds->pebs_absolute_maximum -
1157 threshold = ds->pebs_buffer_base + cpuc->pebs_record_size;
1160 ds->pebs_interrupt_threshold = threshold;
1302 struct debug_store *ds = cpuc->ds;
1303 u64 value = ds->pebs_event_reset[hwc->idx];
1319 value = ds->pebs_event_reset[MAX_PEBS_EVENTS_FMT4 + idx];
1321 value = ds->pebs_event_reset[MAX_PEBS_EVENTS + idx];
1338 struct debug_store *ds = cpuc->ds;
1381 ds->pebs_event_reset[idx] =
1384 ds->pebs_event_reset[idx] = 0;
2098 struct debug_store *ds = cpuc->ds;
2106 at = (struct pebs_record_core *)(unsigned long)ds->pebs_buffer_base;
2107 top = (struct pebs_record_core *)(unsigned long)ds->pebs_index;
2112 ds->pebs_index = ds->pebs_buffer_base;
2155 struct debug_store *ds = cpuc->ds;
2166 base = (struct pebs_record_nhm *)(unsigned long)ds->pebs_buffer_base;
2167 top = (struct pebs_record_nhm *)(unsigned long)ds->pebs_index;
2169 ds->pebs_index = ds->pebs_buffer_base;
2272 struct debug_store *ds = cpuc->ds;
2281 base = (struct pebs_basic *)(unsigned long)ds->pebs_buffer_base;
2282 top = (struct pebs_basic *)(unsigned long)ds->pebs_index;
2284 ds->pebs_index = ds->pebs_buffer_base;
2425 struct debug_store *ds = __this_cpu_read(cpu_hw_events.ds);
2430 wrmsrl(MSR_IA32_DS_AREA, (unsigned long)ds);