Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4669542yba; Wed, 10 Apr 2019 02:20:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqyfIcggBogvSRum0K6dnRpT+LGqxBEP+u7nQXb67s0dwuQvpy5+5rnt29iSPkTVWBSgx9kz X-Received: by 2002:a65:5304:: with SMTP id m4mr39296903pgq.281.1554888052846; Wed, 10 Apr 2019 02:20:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554888052; cv=none; d=google.com; s=arc-20160816; b=Zqty2wu+suY6DynjuK1RFmy/4garrtOON8O5vjkFbeJrauQDVmJJmhE9Y3vJMQ+H0f ei3wV5eWogZDJXvCDx3on6tQMPztnsHjMg1+jozisD4z3v/Qpvxs/+hHzungcVBdHmxP p2RUV3LHQTeTcFx2d99P0PAW/q1h4vq17avnHGxhoPEzqsvXA9bJ/488XO2HAMhNwru6 jcNrNBpKGw2aqv97wBe8PyRxgGoOqg6FN0pnOC60tmA+5Vbad47MCpV2V8xQP2VnyVsw Itax2y5gdh/MzqClgwlVwF4OHUEN0wmupcuT/6/MVUpbslhnZDmM0WKRvgYO544TR4HD vSPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=k6sgoS4Pqx+SGPpICReGzc1buYFVOEwhreYHDAmMRco=; b=hngdrh3u7H5yM2VX6XDuwnvrSQ9wpI7X9Mv1brQABuyxJ11nhR5iL1clfUKIuQGGuk CtC5PtUrmiEOiquxahMjC/M+MO0drSp4s0vKvIGcB6fPbCPifHI8oMhLaidxdH0o8GKh iHErn3WMv6ZVvTq3rAmjB5PzPMTTRzHOdhW+bXpCpH1GHbaVteQjXds/4TTn4kvFeI+I PJSq1556v0d9ghOxUdgAf7is1X++uar0jKRTTXNAxLEag+pWmgzy3ocvW4IuEy1JWuF/ +HxUc7R1E6PH0LbzZdxz1Ztqrrlu4lGfwsso0KnRQ9yKUIoz4WsvcxeuOEfBVL8+mdK8 MJ0w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h72si749104pfd.86.2019.04.10.02.20.36; Wed, 10 Apr 2019 02:20:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729509AbfDJIYt (ORCPT + 99 others); Wed, 10 Apr 2019 04:24:49 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:57327 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729024AbfDJIYt (ORCPT ); Wed, 10 Apr 2019 04:24:49 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.07436846|-1;CH=green;DM=CONTINUE|CONTINUE|true|0.438601-0.11346-0.44794;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03310;MF=han_mao@c-sky.com;NM=1;PH=DS;RN=9;RT=9;SR=0;TI=SMTPD_---.EJJYW7S_1554884686; Received: from localhost(mailfrom:han_mao@c-sky.com fp:SMTPD_---.EJJYW7S_1554884686) by smtp.aliyun-inc.com(10.147.40.7); Wed, 10 Apr 2019 16:24:46 +0800 From: Mao Han To: linux-kernel@vger.kernel.org Cc: Mao Han , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Guo Ren Subject: [PATCH v3 0/3] csky: perf callchain dwarf support Date: Wed, 10 Apr 2019 16:16:42 +0800 Message-Id: X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch set add perf DWARF unwinding support for C-SKY. Including user registers/stack dump API, and libdw support. CC: Peter Zijlstra CC: Ingo Molnar CC: Arnaldo Carvalho de Melo CC: Alexander Shishkin CC: Jiri Olsa CC: Namhyung Kim CC: Guo Ren Changes since v2: - use same registers name as struct pt_regs - code convention Changes since v1: - seperate the callchain support using frame pointer Mao Han (3): perf: use hweight64 instead of hweight_long csky: Add support for perf registers sampling csky: add support for libdw arch/csky/Kconfig | 2 + arch/csky/include/uapi/asm/perf_regs.h | 51 ++++++++++++++ arch/csky/kernel/Makefile | 1 + arch/csky/kernel/perf_regs.c | 40 +++++++++++ tools/arch/csky/include/uapi/asm/perf_regs.h | 51 ++++++++++++++ tools/perf/Makefile.config | 6 +- tools/perf/arch/csky/Build | 1 + tools/perf/arch/csky/Makefile | 3 + tools/perf/arch/csky/include/perf_regs.h | 100 +++++++++++++++++++++++++++ tools/perf/arch/csky/util/Build | 2 + tools/perf/arch/csky/util/dwarf-regs.c | 49 +++++++++++++ tools/perf/arch/csky/util/unwind-libdw.c | 78 +++++++++++++++++++++ tools/perf/util/evsel.c | 2 +- 13 files changed, 384 insertions(+), 2 deletions(-) create mode 100644 arch/csky/include/uapi/asm/perf_regs.h create mode 100644 arch/csky/kernel/perf_regs.c create mode 100644 tools/arch/csky/include/uapi/asm/perf_regs.h create mode 100644 tools/perf/arch/csky/Build create mode 100644 tools/perf/arch/csky/Makefile create mode 100644 tools/perf/arch/csky/include/perf_regs.h create mode 100644 tools/perf/arch/csky/util/Build create mode 100644 tools/perf/arch/csky/util/dwarf-regs.c create mode 100644 tools/perf/arch/csky/util/unwind-libdw.c -- 2.7.4