Lines Matching defs:str
39 def removesuffix(s: str, suffix: str) -> str:
48 def file_name_to_table_name(parents: Sequence[str], dirname: str) -> str:
56 def c_len(s: str) -> int:
94 def add(self, s: str) -> None:
168 def fixdesc(s: str) -> str:
176 def convert_aggr_mode(aggr_mode: str) -> Optional[str]:
186 def lookup_msr(num: str) -> Optional[str]:
198 def real_event(name: str, event: str) -> Optional[str]:
214 def unit_to_pmu(unit: str) -> Optional[str]:
335 def read_json_events(path: str, topic: str) -> Sequence[JsonEvent]:
347 def preprocess_arch_std_files(archpath: str) -> None:
357 def print_events_table_prefix(tblname: str) -> None:
366 def add_events_table_entries(item: os.DirEntry, topic: str) -> None:
378 def fix_none(s: Optional[str]) -> str:
398 def get_topic(topic: str) -> str:
403 def preprocess_one_file(parents: Sequence[str], item: os.DirEntry) -> None:
422 def process_one_file(parents: Sequence[str], item: os.DirEntry) -> None:
426 def is_leaf_dir(path: str) -> bool:
455 def print_mapping_table(archs: Sequence[str]) -> None:
657 def dir_path(path: str) -> str:
663 def ftw(path: str, parents: Sequence[str],
664 action: Callable[[Sequence[str], os.DirEntry], None]) -> None: