X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Fsystem-tests%2Frun-kprobe-generate-instr-points.py;h=4ee00bf187d66d8ba413476fa9d7b8bf0e85edb9;hb=5c65bbc2ea87bdcecc0c02cc7c19c50c94d6d6cb;hp=072ff3dbde2c61ab0b14ab9b2cddbaf16393533d;hpb=6dffa64f09899cc452e4824eabb1d15ddd9ab155;p=lttng-ci.git diff --git a/scripts/system-tests/run-kprobe-generate-instr-points.py b/scripts/system-tests/run-kprobe-generate-instr-points.py index 072ff3d..4ee00bf 100644 --- a/scripts/system-tests/run-kprobe-generate-instr-points.py +++ b/scripts/system-tests/run-kprobe-generate-instr-points.py @@ -58,15 +58,19 @@ def main(): raw_symbol_list = kallsyms_file.readlines() # Keep only the symbol name. - raw_symbol_list = [x.split()[2].strip() for x in raw_symbol_list] + symbol_list = [] + for symbol in raw_symbol_list: + symbol = symbol.split()[2].strip() + if 'ftrace' not in symbol: + symbol_list.append(symbol) instrumentation_points = [] # Add all symbols. - instrumentation_points.extend(raw_symbol_list) + instrumentation_points.extend(symbol_list) # For each symbol, create 2 new instrumentation points by random offsets. - for s in raw_symbol_list: + for s in symbol_list: offsets = rng.sample(range(1, 10), 2) for offset in offsets: instrumentation_points.append(s + "+" + str(hex(offset)))