~ubuntu-branches/ubuntu/saucy/libv8/saucy

« back to all changes in this revision

Viewing changes to tools/ll_prof.py

  • Committer: Package Import Robot
  • Author(s): Jérémy Lal
  • Date: 2012-04-07 16:26:13 UTC
  • mfrom: (15.1.27 sid)
  • Revision ID: package-import@ubuntu.com-20120407162613-dqo1m6w9r3fh8tst
Tags: 3.8.9.16-3
* mipsel build fixes :
  + v8_use_mips_abi_hardfloat=false, this lowers EABI requirements.
  + v8_can_use_fpu_instructions=false, detect if FPU is present.
  + set -Wno-unused-but-set-variable only on mipsel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python
2
2
#
3
 
# Copyright 2010 the V8 project authors. All rights reserved.
 
3
# Copyright 2012 the V8 project authors. All rights reserved.
4
4
# Redistribution and use in source and binary forms, with or without
5
5
# modification, are permitted provided that the following conditions are
6
6
# met:
673
673
OBJDUMP_SYMBOL_LINE_RE = re.compile(
674
674
  r"^([a-f0-9]+)\s(.{7})\s(\S+)\s+([a-f0-9]+)\s+(?:\.hidden\s+)?(.*)$")
675
675
OBJDUMP_DYNAMIC_SYMBOLS_START_RE = re.compile(
676
 
   r"^DYNAMIC SYMBOL TABLE")
 
676
  r"^DYNAMIC SYMBOL TABLE")
 
677
OBJDUMP_SKIP_RE = re.compile(
 
678
  r"^.*ld\.so\.cache$")
677
679
KERNEL_ALLSYMS_FILE = "/proc/kallsyms"
678
680
PERF_KERNEL_ALLSYMS_RE = re.compile(
679
681
  r".*kallsyms.*")
692
694
    # is 0.
693
695
    if mmap_info.tid == 0 and not options.kernel:
694
696
      return True
 
697
    if OBJDUMP_SKIP_RE.match(mmap_info.filename):
 
698
      return True
695
699
    if PERF_KERNEL_ALLSYMS_RE.match(mmap_info.filename):
696
700
      return self._LoadKernelSymbols(code_map)
697
701
    self.infos.append(mmap_info)