Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1980113yba; Mon, 15 Apr 2019 02:23:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwUIjg38qjvv/D8vikmwCVDlTMkSTKUnoAkz0tozZa3EEdcjOGyN6hO+rMPdmxI5UzcIJAf X-Received: by 2002:a17:902:be04:: with SMTP id r4mr75423804pls.218.1555320222935; Mon, 15 Apr 2019 02:23:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555320222; cv=none; d=google.com; s=arc-20160816; b=N6pLRNiIdPe3YBagPwP39dpUjUCYOWJl8jU9t7llCIcq5jVsGcKs/dJD1OevwHIsmI mrwvpmCBlfvGF1aHo0CHBT3MhJI56Byq0LYVXeGhpqwno2OM6F1YxdthmHaukqZwPfJc nXHaiEjjHqfoZ+SWKGXausqZj193fnKD15wpCr+3EXd2ael6soEu4U3wbIOwTEgLh6V9 JD52yLIajz4HvPxGEdZfiLWyIaKf/Tvts8WUg0IFHerakD3K+MV1t/Tfn0mvNIt+N8ft Mo3TXNoERqNO8hjDBz1dcCwCsK8C5BzggKjY+d6o15Tmdc8XNwmaGpmRdGcf8vM5OOD7 EUqg== 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=wjrMDp3+R5GHdQmhR16MNrlSiKVbyZTfs6YTH4mswlQ=; b=kWyyFW+2sfbSWALaBR9iWNUZborA0C0bockdpOG5dbmLOsKgTxLSF+BtZdCkz2b1g+ PZh9GImLc7VY4vQB0kXfVBEfDW3U6u1xpVpKr5b+g0pu0Y/KoJnQ4uhNdcqRdiANHmrw AQDcWWFmJkgl8DuYFTTqWMR1NJCzW1uU21pDOktflsKPlzSGe/6LorWZwNWQCmRhuLXy UOfqerJmd2hm+/CoMdFUDRB4639T0yFd8T1Pf2/TqFOW7IgrKjiO1atFlRzN4fOSTsmW zf08pFxz1XxFWeK7Cwp1CDqs+cLxC9An5vIOb4Piba0PnqZejIla5WWIMbanFBR1Nrqa VeWA== 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 x13si31267314pga.2.2019.04.15.02.23.25; Mon, 15 Apr 2019 02:23:42 -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 S1726357AbfDOJWs (ORCPT + 99 others); Mon, 15 Apr 2019 05:22:48 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:37645 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725798AbfDOJWs (ORCPT ); Mon, 15 Apr 2019 05:22:48 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.07654969|-1;CH=green;DM=CONTINUE|CONTINUE|true|0.415708-0.142496-0.441796;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03277;MF=han_mao@c-sky.com;NM=1;PH=DS;RN=3;RT=3;SR=0;TI=SMTPD_---.ELbNRwG_1555320166; Received: from localhost(mailfrom:han_mao@c-sky.com fp:SMTPD_---.ELbNRwG_1555320166) by smtp.aliyun-inc.com(10.147.40.7); Mon, 15 Apr 2019 17:22:46 +0800 From: Mao Han To: linux-kernel@vger.kernel.org Cc: Mao Han , Guo Ren Subject: [PATCH V5 0/2] csky: perf callchain dwarf support Date: Mon, 15 Apr 2019 17:17:28 +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: Guo Ren Changes since v4: - remove some of the dwarf regs definition Changes since v3: - update with patch from Arnaldo replace other hweight_long with hweight64 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 (2): 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 | 77 +++++++++++++++++++++ 12 files changed, 382 insertions(+), 1 deletion(-) 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