Home | History | Annotate | Download | only in callgrind

Lines Matching refs:es

121     EventSet* es;
129 es = (EventSet*) CLG_MALLOC("cl.events.eventset.1", sizeof(EventSet));
130 es->mask = mask;
135 es->offset[i] = offset;
142 es->size = offset;
143 es->count = count;
145 eventSetTable[mask] = es;
146 return es;
170 EventSet* CLG_(add_event_group)(EventSet* es, Int id)
173 if (!es) es = eventset_from_mask(0);
174 return eventset_from_mask(es->mask | (1u << id));
177 EventSet* CLG_(add_event_group2)(EventSet* es, Int id1, Int id2)
181 if (!es) es = eventset_from_mask(0);
182 return eventset_from_mask(es->mask | (1u << id1) | (1u << id2));
192 Int CLG_(sprint_eventset)(Char* buf, EventSet* es)
199 CLG_ASSERT(es->size >0);
202 if ((es->mask & mask)==0) continue;
218 ULong* CLG_(get_eventset_cost)(EventSet* es)
220 return CLG_(get_costarray)(es->size);
224 void CLG_(init_cost)(EventSet* es, ULong* cost)
230 for(i=0; i<es->size; i++)
235 void CLG_(init_cost_lz)(EventSet* es, ULong** cost)
241 *cost = CLG_(get_eventset_cost)(es);
243 for(i=0; i<es->size; i++)
247 void CLG_(zero_cost)(EventSet* es, ULong* cost)
253 for(i=0;i<es->size;i++)
257 Bool CLG_(is_zero_cost)(EventSet* es, ULong* cost)
263 for(i=0; i<es->size; i++)
269 Bool CLG_(is_equal_cost)(EventSet* es, ULong* c1, ULong* c2)
273 if (!c1) return CLG_(is_zero_cost)(es, c2);
274 if (!c2) return CLG_(is_zero_cost)(es, c1);
276 for(i=0; i<es->size; i++)
282 void CLG_(copy_cost)(EventSet* es, ULong* dst, ULong* src)
287 CLG_(zero_cost)(es, dst);
292 for(i=0;i<es->size;i++)
296 void CLG_(copy_cost_lz)(EventSet* es, ULong** pdst, ULong* src)
304 CLG_(zero_cost)(es, *pdst);
309 dst = *pdst = CLG_(get_eventset_cost)(es);
311 for(i=0;i<es->size;i++)
315 void CLG_(add_cost)(EventSet* es, ULong* dst, ULong* src)
322 for(i=0; i<es->size; i++)
326 void CLG_(add_cost_lz)(EventSet* es, ULong** pdst, ULong* src)
336 dst = *pdst = CLG_(get_eventset_cost)(es);
337 CLG_(copy_cost)(es, dst, src);
341 for(i=0; i<es->size; i++)
346 Bool CLG_(add_and_zero_cost)(EventSet* es, ULong* dst, ULong* src)
351 CLG_ASSERT((es != 0) && (dst != 0));
354 for(i=0; i<es->size; i++) {
401 Bool CLG_(add_diff_cost)(EventSet* es, ULong* dst, ULong* old, ULong* new_cost)
406 CLG_ASSERT((es != 0) && (dst != 0));
409 for(i=0; i<es->size; i++) {
419 Bool CLG_(add_diff_cost_lz)(EventSet* es, ULong** pdst, ULong* old, ULong* new_cost)
425 CLG_ASSERT((es != 0) && (pdst != 0));
430 dst = *pdst = CLG_(get_eventset_cost)(es);
431 CLG_(zero_cost)(es, dst);
434 for(i=0; i<es->size; i++) {
446 Int CLG_(sprint_cost)(Char* buf, EventSet* es, ULong* c)
450 if (!c || es->size==0) return 0;
454 for(i=1; i<es->size; i++) {
473 EventMapping* CLG_(get_eventmapping)(EventSet* es)
477 CLG_ASSERT(es != 0);
482 es->size);
483 em->capacity = es->size;
485 em->es = es;
498 if ((em->es->mask & mask)==0) continue;