CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
symbols Namespace Reference

Functions

def get_libraries
 
def get_symbols
 

Variables

string addr_re = r"(?P<address>[0-9a-f]{1,16})?"
 
string code_re = r"(?P<code>[a-zA-Z])"
 
tuple demangled = set()
 
tuple dependencies = collections.defaultdict(set)
 
tuple deps = set()
 
tuple dm = subprocess.check_output(["c++filt", u])
 
tuple filetype = subprocess.check_output(["file", fpth])
 
tuple fpth = os.path.realpath(os.path.join(dirpath, f))
 
tuple G = nx.DiGraph()
 
tuple H = nx.DiGraph()
 
tuple ldd_line_re = re.compile(r"\s+(.*) => (.*) \(0x")
 
tuple libraries = collections.defaultdict(set)
 
string name = node+".dot"
 
tuple nm_line_re
 
list paths = os.environ['LD_LIBRARY_PATH']
 
tuple provides = collections.defaultdict(set)
 
tuple requires = collections.defaultdict(set)
 
tuple s = nx.dfs_successors(G, node)
 
string symbol_demunged_re = r"(?P<symbol>[a-zA-Z0-9_.$@:&()<>{}\[\]|^!%,~*+-=# ]+)"
 
string symbol_re = r"(?P<symbol>[a-zA-Z0-9_.$@]+)"
 
tuple symbols_re_skip = re.compile("(@@)")
 
tuple T = nx.dfs_tree(H, node)
 
tuple unmet = set()
 

Function Documentation

def symbols.get_libraries (   fname)

Definition at line 38 of file symbols.py.

References PVValHelper.add().

38 
39 def get_libraries(fname):
40  lines = subprocess.check_output(["ldd", fname])
41  for line in lines.splitlines():
42  m = ldd_line_re.match(line)
43  if not m:
44  continue
45  library = m.group(2)
46  libraries[os.path.basename(fname)].add(
47  os.path.basename(library.rstrip('\r\n')))
48 
void add(std::map< std::string, TH1 * > &h, TH1 *hist)
def get_libraries
Definition: symbols.py:38
def symbols.get_symbols (   fname)

Definition at line 25 of file symbols.py.

References PVValHelper.add().

25 
26 def get_symbols(fname):
27  lines = subprocess.check_output(["nm", "-g", fname])
28  for line in lines.splitlines():
29  m = nm_line_re.match(line)
30  if not m:
31  continue
32  symbol = m.group('symbol')
33  if m.group('code') == 'U':
34  requires[os.path.basename(fname)].add(symbol)
35  else:
36  provides[symbol].add(os.path.basename(fname))
37 
void add(std::map< std::string, TH1 * > &h, TH1 *hist)
def get_symbols
Definition: symbols.py:25

Variable Documentation

string symbols.addr_re = r"(?P<address>[0-9a-f]{1,16})?"

Definition at line 10 of file symbols.py.

string symbols.code_re = r"(?P<code>[a-zA-Z])"

Definition at line 11 of file symbols.py.

tuple symbols.demangled = set()

Definition at line 70 of file symbols.py.

Referenced by pat::UserData.checkDictionaries(), dqm::implementation::DQMStore.printTrace(), edm.typeDemangle(), and pat::UserData.typeNameFor().

tuple symbols.dependencies = collections.defaultdict(set)

Definition at line 21 of file symbols.py.

Referenced by EcalDQMonitorTask.EcalDQMonitorTask().

tuple symbols.deps = set()

Definition at line 61 of file symbols.py.

Referenced by edm.checkForModuleDependencyCorrectness(), edm::eventsetup.findDependents(), ProcessCallGraph.preBeginJob(), MuIsoDepositProducer.produce(), CandIsoDepositProducer.produce(), L3MuonIsolationProducer.produce(), and L2MuonIsolationProducer.produce().

tuple symbols.dm = subprocess.check_output(["c++filt", u])

Definition at line 75 of file symbols.py.

Referenced by LMFIOV.fetchIdSql(), reco::tau::RecoTauConstructor.get(), MCTruthHelper< P >.isDirectHardProcessTauDecayProduct(), MCTruthHelper< P >.isDirectPromptTauDecayProduct(), MCTruthHelper< P >.isDirectTauDecayProduct(), L1DataEmulDigi.L1DataEmulDigi(), heppy::RochCor.momcor_data(), heppy::RochCor2012.momcor_data(), heppy::RochCor.momcor_mc(), heppy::RochCor2012.momcor_mc(), PseudoTopProducer.produce(), reco::PFTau.setDecayMode(), reco::tau::RecoTauBuilderConePlugin.setTauQuantities(), LMFIOV.writeDBSql(), and LMFRunIOV.writeDBSql().

tuple symbols.filetype = subprocess.check_output(["file", fpth])

Definition at line 55 of file symbols.py.

Referenced by TrackerMap.printall(), TrackerMap.save(), TrackerMap.save_as_fectrackermap(), TrackerMap.save_as_fedtrackermap(), TrackerMap.save_as_HVtrackermap(), and TrackerMap.save_as_psutrackermap().

tuple symbols.fpth = os.path.realpath(os.path.join(dirpath, f))

Definition at line 54 of file symbols.py.

tuple symbols.G = nx.DiGraph()

Definition at line 80 of file symbols.py.

tuple symbols.H = nx.DiGraph()

Definition at line 98 of file symbols.py.

tuple symbols.ldd_line_re = re.compile(r"\s+(.*) => (.*) \(0x")

Definition at line 17 of file symbols.py.

tuple symbols.libraries = collections.defaultdict(set)

Definition at line 22 of file symbols.py.

string symbols.name = node+".dot"

Definition at line 105 of file symbols.py.

tuple symbols.nm_line_re
Initial value:
1 = re.compile(r"\s+".join([addr_re, code_re, symbol_re]) + r"\s*$",
2  re.I)
static std::string join(char **cmd)
Definition: RemoteFile.cc:19

Definition at line 15 of file symbols.py.

list symbols.paths = os.environ['LD_LIBRARY_PATH']

Definition at line 49 of file symbols.py.

tuple symbols.provides = collections.defaultdict(set)

Definition at line 20 of file symbols.py.

tuple symbols.requires = collections.defaultdict(set)

Definition at line 19 of file symbols.py.

tuple symbols.s = nx.dfs_successors(G, node)

Definition at line 87 of file symbols.py.

string symbols.symbol_demunged_re = r"(?P<symbol>[a-zA-Z0-9_.$@:&()<>{}\[\]|^!%,~*+-=# ]+)"

Definition at line 13 of file symbols.py.

string symbols.symbol_re = r"(?P<symbol>[a-zA-Z0-9_.$@]+)"

Definition at line 12 of file symbols.py.

tuple symbols.symbols_re_skip = re.compile("(@@)")

Definition at line 14 of file symbols.py.

tuple symbols.T = nx.dfs_tree(H, node)

Definition at line 104 of file symbols.py.

tuple symbols.unmet = set()

Definition at line 69 of file symbols.py.