[PATCH v9 10/14] perf tools: Check the target platform before assigning unwind methods

2016-06-02 Thread He Kuang
Currently, perf script uses host unwind methods to parse perf.data callchain info regardless of the target architecture. So we get wrong result without any warnings when unwinding callchains of x86(32-bit) on x86(64-bit) machine. This patch adds extra step that check the target platform before

[PATCH v9 10/14] perf tools: Check the target platform before assigning unwind methods

2016-06-02 Thread He Kuang
Currently, perf script uses host unwind methods to parse perf.data callchain info regardless of the target architecture. So we get wrong result without any warnings when unwinding callchains of x86(32-bit) on x86(64-bit) machine. This patch adds extra step that check the target platform before