aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2014-04-19 16:07:15 +0200
committerOleg Nesterov <[email protected]>2014-04-30 19:10:35 +0200
commit8dbacad93a2a12adebcc717e6055b1bcc1739ab8 (patch)
tree30304d63a8174762bf68e1dc271390c0eaec39ed /tools/perf/scripts
parentff261964cfcfe49d73690ca29b0ba2853d9497e3 (diff)
uprobes/x86: Make good_insns_* depend on CONFIG_X86_*
Add the suitable ifdef's around good_insns_* arrays. We do not want to add the ugly ifdef's into their only user, uprobe_init_insn(), so the "#else" branch simply defines them as NULL. This doesn't generate the extra code, gcc is smart enough, although the code is fine even if it could not detect that (without CONFIG_IA32_EMULATION) is_64bit_mm() is __builtin_constant_p(). The patch looks more complicated because it also moves good_insns_64 up close to good_insns_32. Signed-off-by: Oleg Nesterov <[email protected]> Reviewed-by: Jim Keniston <[email protected]> Acked-by: Srikar Dronamraju <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions