Lines Matching full:unit
157 parse_error("invalid unit mask type");
165 parse_error("invalid unit mask tag");
174 parse_error("Missing name for unit mask");
176 parse_error("Missing type for unit mask");
190 parse_error("invalid unit mask entry");
195 parse_error("invalid unit mask entry");
218 * \t0x0 No unit mask
228 "oprofile: could not open unit mask description file %s\n", file);
246 parse_error("no unit mask name line");
248 parse_error("oprofile: maximum unit mask entries exceeded");
303 fprintf(stderr, "oprofile: could not find unit mask %s\n", value);
307 /* um:a,b,c,d merge multiple unit masks */
329 parse_error("combined unit mask must be all the same types");
331 parse_error("combined unit mask must be all bitmasks or exclusive");
335 parse_error("too many members in combined unit mask");
342 parse_error("Empty unit mask");
495 event->unit = merge_um(value);
497 event->unit = find_um(value);
618 /* sanity check: all unit mask must be used */
635 static void delete_unit_mask(struct op_unit_mask * unit)
638 for (cur = 0 ; cur < unit->num ; ++cur) {
639 if (unit->um[cur].desc)
640 free(unit->um[cur].desc);
643 if (unit->name)
644 free(unit->name);
646 list_del(&unit->um_next);
647 free(unit);
672 struct op_unit_mask * unit = list_entry(pos, struct op_unit_mask, um_next);
673 delete_unit_mask(unit);
699 for (i = 0; i < event->unit->num; i++) {
700 if (event->unit->um[i].value == um)
849 unsigned v = event->unit->um[i].value;
851 switch (event->unit->unit_type_mask) {
873 for (i = 0; i < event->unit->num; i++)
923 if (event->unit->unit_type_mask == utm_bitmask) {
924 for (i = 0; i < event->unit->num; ++i)
925 um &= ~(event->unit->um[i].value);
931 for (i = 0; i < event->unit->num; ++i) {
932 if (event->unit->um[i].value == um)
936 if (i == event->unit->num)