Lines Matching refs:name

26 # Map from an event name to an architecture standard
40 # Map from the name of a metric group to a description of the group.
45 'name', 'topic', 'desc',
74 """Generate a C table name from directory names."""
250 def real_event(name: str, event: str) -> Optional[str]:
260 if not name:
262 if name.lower() in fixed:
263 return fixed[name.lower()]
267 """Convert a JSON Unit to Linux PMU name."""
301 self.name = jd['EventName'].lower() if 'EventName' in jd else None
370 self.event = real_event(self.name, event)
430 if item.is_file() and item.name.endswith('.json'):
432 if event.name:
433 _arch_std_events[event.name.lower()] = event
441 if e.name:
456 return (fix_none(j.pmu).replace(',','_'), fix_none(j.name), j.desc is not None, fix_none(j.topic),
573 # Ignore other directories. If the file name does not have a .json
575 if not item.is_file() or not item.name.endswith('.json'):
578 if item.name == 'metricgroups.json':
589 topic = get_topic(item.name)
592 if event.name:
613 _pending_events_tblname = file_name_to_table_name('pmu_events_', parents, item.name)
615 _pending_metrics_tblname = file_name_to_table_name('pmu_metrics_', parents, item.name)
617 if item.name == 'sys':
626 # Ignore other directories. If the file name does not have a .json
628 if not item.is_file() or not item.name.endswith('.json') or item.name == 'metricgroups.json':
631 add_events_table_entries(item, get_topic(item.name))
736 \tconst char *name;
759 \t\t.name = \"{tblname}\",
770 \t\t.name = \"{tblname}\",
827 if (!pe.name)
838 const char *name,
852 if (!pe.name && !name)
855 if (!pe.name && name) {
859 if (pe.name && !name) {
864 cmp = strcasecmp(pe.name, name);
901 const char *name,
913 ret = pmu_events_table__find_event_pmu(table, table_pmu, name, fn, data);
1083 const struct pmu_events_table *find_sys_events_table(const char *name)
1086 tables->name;
1088 if (!strcmp(tables->name, name))
1097 tables->name;
1111 tables->name;
1167 for item in sorted(os.scandir(path), key=lambda e: e.name):
1172 item_path = '/'.join(parents) + ('/' if len(parents) > 0 else '') + item.name
1177 ftw(item.path, parents + [item.name], action)
1180 ap.add_argument('arch', help='Architecture name like x86')
1217 if item.name == _args.arch or _args.arch == 'all' or item.name == 'test':
1218 archs.append(item.name)