From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752438AbbEHFwl (ORCPT ); Fri, 8 May 2015 01:52:41 -0400 Received: from szxga01-in.huawei.com ([58.251.152.64]:10355 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752253AbbEHFwg (ORCPT ); Fri, 8 May 2015 01:52:36 -0400 From: Hou Pengyang To: , , , , CC: , , , Subject: [PATCH v4 0/2] arm & arm64: perf: Fix callchain parse error with kernel tracepoint events Date: Fri, 8 May 2015 05:43:02 +0000 Message-ID: <1431063784-137600-1-git-send-email-houpengyang@huawei.com> X-Mailer: git-send-email 1.8.3.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.107.197.210] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For arm & arm64, when tracing with tracepoint events, the IP and cpsr are set to 0, preventing the perf code parsing the callchain and resolving the symbols correctly. These two patches fix this by implementing perf_arch_fetch_caller_regs for arm and arm64, which fills several necessary register info for callchain unwinding and symbol resolving. v3->v4: - fix compile errors v2->v3: - split the original patch into two, one for arm and the other arm64; - change '|=' to '=' when setting cpsr. Hou Pengyang (2): arm: perf: Fix callchain parse error with kernel tracepoint events arm64: perf: Fix callchain parse error with kernel tracepoint events arch/arm/include/asm/perf_event.h | 7 +++++++ arch/arm64/include/asm/perf_event.h | 7 +++++++ 2 files changed, 14 insertions(+) -- 1.8.3.4