3 warning = re.compile(
"^function ")
4 tab = re.compile(
"\s+")
5 topfunc = re.compile(
"::produce\(|::analyze\(|::filter\(")
6 edmns = re.compile(
"::ED(Producer|Analyzer|Filter)")
7 keyword = re.compile(
"calls|overrides|variable|edmplugin")
8 paths = re.compile(
".*?\s*src/([A-Z].*?/[A-z].*?)(/.*?):(.*?):(.*?)")
9 from collections
import defaultdict
11 gets = defaultdict(set)
12 callby = defaultdict(set)
13 calls = defaultdict(set)
19 fields = line.split(
"'")
20 if keyword.search(line) :
21 if fields[2] ==
' calls function ' :
22 if fields[1]
not in callby[fields[3]]:
23 callby[fields[3]].
add(fields[1])
24 if fields[3]
not in calls[fields[1]]:
25 calls[fields[1]].
add(fields[3])
26 if fields[2] ==
' overrides function ' :
27 if fields[3]
not in callby[fields[1]]
and not edmns.search(fields[3]) :
28 callby[fields[1]].
add(fields[3])
29 if fields[2] ==
' static variable ' :
30 if fields[1]
not in gets[fields[3]]:
31 gets[fields[3]].
add(fields[1])
32 if fields[0].strip() ==
'edmplugin type':
33 plugins.add(fields[1])
37 for call
in callby[str]:
44 funcs=defaultdict(list)
56 for func
in sorted(funcs.keys()):
57 get,var = func.split(
"#")
58 clone = copy.deepcopy(funcs[func])
63 if topfunc.search(field)
and not found:
64 fqn = topfunc.split(field)[0]
66 print "Non-const static var '"+var+
"' is accessed in call stack '"+field+
"->",
68 if field
in calls[found]
and found :
71 if field == get
and found :
74 for func
in sorted(funcs.keys()):
75 get,var = func.split(
"#")
76 clone = copy.deepcopy(funcs[func])
81 if topfunc.search(field)
and not found:
82 fqn = topfunc.split(field)[0]
84 print "In call stack '"+field+
"->",
86 if field
in calls[found]
and found :
89 if field == get
and found :
90 print field +
"' non-const static var '"+var+
"' is accessed."
void add(const std::vector< const T * > &source, std::vector< const T * > &dest)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run