Lines Matching defs:sets
74 int sets;
119 /* The offsets are only correct because all per-instruction event sets get
158 for (i = 0; i < c->sets * c->assoc; i++)
161 for (i = 0; i < c->sets * c->assoc; i++) {
183 c->sets = (c->size / c->line_size) / c->assoc;
184 c->sets_min_1 = c->sets - 1;
186 c->tag_shift = c->line_size_bits + VG_(log2)(c->sets);
204 sizeof(UWord) * c->sets * c->assoc);
219 for (i = 0, set = 0; set < c->sets; set++) {
288 /* Nb: this is a fast way of doing ((set1+1) % c->sets) */
298 VG_(printf)("addr: %lx size: %u sets: %d %d", a, size, set1, set2);
299 VG_(tool_panic)("item straddles more than two cache sets");
392 /* Nb: this is a fast way of doing ((set1+1) % c->sets) */
404 VG_(printf)("addr: %lx size: %u sets: %d %d", a, size, set1, set2);
405 VG_(tool_panic)("item straddles more than two cache sets");
600 sizeof(line_use) * c->sets * c->assoc);
602 sizeof(line_loaded) * c->sets * c->assoc);
685 CLG_DEBUG(6,"%s.Acc(Addr %#lx, size %d): Sets [%d/%d]\n", \
737 /* Nb: this is a fast way of doing ((set1+1) % L.sets) */ \
815 VG_(printf)("addr: %#lx size: %u sets: %d %d", a, size, set1, set2); \
816 VG_(tool_panic)("item straddles more than two cache sets"); \
985 for (i = 0; i < I1.sets * I1.assoc; i++)
990 for (i = 0; i < D1.sets * D1.assoc; i++)
995 for (i = 0; i < LL.sets * LL.assoc; i++)
1563 D_total = CLG_(get_eventset_cost)( CLG_(sets).full );
1564 CLG_(init_cost)( CLG_(sets).full, D_total);
1658 struct event_sets CLG_(sets);
1662 // Event groups from which the event sets are composed
1696 CLG_(sets).base = CLG_(get_event_set2)(EG_USE, EG_IR);
1699 CLG_(sets).full = CLG_(add_event_group2)(CLG_(sets).base, EG_DR, EG_DW);
1700 CLG_(sets).full = CLG_(add_event_group2)(CLG_(sets).full, EG_BC, EG_BI);
1701 CLG_(sets).full = CLG_(add_event_group) (CLG_(sets).full, EG_BUS);
1702 CLG_(sets).full = CLG_(add_event_group2)(CLG_(sets).full, EG_ALLOC, EG_SYS);
1706 CLG_(print_eventset)(-2, CLG_(sets).base);
1707 CLG_(print_eventset)(-2, CLG_(sets).full);
1711 CLG_(dumpmap) = CLG_(get_eventmapping)(CLG_(sets).full);
1748 CLG_(add_and_zero_cost2)( CLG_(sets).full, cost,