Lines Matching refs:em
406 EventMapping* em;
410 em = (EventMapping*) CLG_MALLOC("cl.events.geMapping.1",
414 em->capacity = es->size;
415 em->size = 0;
416 em->es = es;
418 return em;
421 void CLG_(append_event)(EventMapping* em, const HChar* n)
427 CLG_ASSERT(em != 0);
429 if ((em->es->mask & mask)==0) continue;
437 CLG_ASSERT(em->capacity > em->size);
438 em->entry[em->size].group = i;
439 em->entry[em->size].index = j;
440 em->entry[em->size].offset = offset;
441 em->size++;
450 HChar *CLG_(eventmapping_as_string)(const EventMapping* em)
455 CLG_ASSERT(em != 0);
460 for(i=0; i< em->size; i++) {
464 eg = eventGroup[em->entry[i].group];
466 VG_(xaprintf)(xa, "%s", eg->name[em->entry[i].index]);
478 HChar *CLG_(mappingcost_as_string)(const EventMapping* em, const ULong* c)
482 if (!c || em->size==0) return VG_(strdup)("cl.events.mcas", "");
488 VG_(xaprintf)(xa, "%llu", c[em->entry[0].offset]);
490 for(i=1; i<em->size; i++) {
491 if (c[em->entry[i].offset] == 0) {
499 VG_(xaprintf)(xa, " %llu", c[em->entry[i].offset]);