• Home
  • Raw
  • Download

Lines Matching refs:function

155             function = lib.get_function(func_id)
156 function.subtree_event_count += event_count
159 function.event_count += event_count
160 function.sample_count += 1
162 function.build_addr_hit_map(addr, event_count if i == 0 else 0, event_count)
181 for function in lib.functions.values():
182 if function.subtree_event_count < min_func_limit:
183 to_del_funcs.append(function.func_id)
185 hit_func_ids.add(function.func_id)
212 function = self.functions.get(func_id)
213 if not function:
214 function = self.functions[func_id] = FunctionScope(func_id)
215 return function
357 function = self.name_to_func.get(key)
358 if function is None:
360 function = Function(lib_id, symbol.symbol_name, func_id, symbol.symbol_addr,
362 self.name_to_func[key] = function
363 self.id_to_func[func_id] = function
364 return function.func_id
368 for function in self.name_to_func.values():
369 if function.func_id not in left_func_ids:
370 del self.id_to_func[function.func_id]
589 for function in self.functions.id_to_func.values():
590 if function.func_name == 'unknown':
592 lib_name = self.libs.get_lib_name(function.lib_id)
594 addr2line.add_addr(lib_name, function.start_addr, function.start_addr)
595 addr2line.add_addr(lib_name, function.start_addr,
596 function.start_addr + function.addr_len - 1)
602 for function in lib.functions.values():
603 func_addr = self.functions.id_to_func[function.func_id].start_addr
604 for addr in function.addr_hit_map:
609 for function in self.functions.id_to_func.values():
610 if function.func_name == 'unknown':
612 dso = addr2line.get_dso(self.libs.get_lib_name(function.lib_id))
615 start_source = addr2line.get_addr_source(dso, function.start_addr)
616 end_source = addr2line.get_addr_source(dso, function.start_addr + function.addr_len - 1)
625 function.source_info = (source_file.file_id, start_line, end_line)
633 for function in lib.functions.values():
634 for addr in function.addr_hit_map:
642 count_info = function.addr_hit_map[addr]
643 function.build_line_hit_map(source_file.file_id, line, count_info[0],
657 for function in sorted(self.functions.id_to_func.values(), key=lambda a: a.lib_id):
658 if function.func_name == 'unknown':
660 lib_name = self.libs.get_lib_name(function.lib_id)
670 code = objdump.disassemble_code(dso_info, function.start_addr, function.addr_len)
671 function.disassembly = code
722 function = self.functions.id_to_func[func_id]
724 func_data['l'] = function.lib_id
725 func_data['f'] = modify_text_for_html(function.func_name)
726 if function.source_info:
727 func_data['s'] = function.source_info
728 if function.disassembly:
730 for code, addr in function.disassembly: