diff options
author | Oleg Nesterov <[email protected]> | 2014-04-19 14:03:05 +0200 |
---|---|---|
committer | Oleg Nesterov <[email protected]> | 2014-04-30 19:10:33 +0200 |
commit | 2ae1f49ae1978fedb6ad607e1f8b084aa9752f95 (patch) | |
tree | 78eef5eaf138afefcf47516d2317686392f33c1d /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 73175d0d19657ec132cc24e8cf0e341e73c54868 (diff) |
uprobes/x86: Add is_64bit_mm(), kill validate_insn_bits()
1. Extract the ->ia32_compat check from 64bit validate_insn_bits()
into the new helper, is_64bit_mm(), it will have more users.
TODO: this checks is actually wrong if mm owner is X32 task,
we need another fix which changes set_personality_ia32().
TODO: even worse, the whole 64-or-32-bit logic is very broken
and the fix is not simple, we need the nontrivial changes in
the core uprobes code.
2. Kill validate_insn_bits() and change its single caller to use
uprobe_init_insn(is_64bit_mm(mm).
Signed-off-by: Oleg Nesterov <[email protected]>
Reviewed-by: Jim Keniston <[email protected]>
Acked-by: Srikar Dronamraju <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions