Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5580283yba; Thu, 11 Apr 2019 00:54:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwpswj0MYda163p7mFMKsF+Bu1FaugOevTS7bW27+f4sSJoj2my56f7G0aEXy9CYhP6UNc3 X-Received: by 2002:a63:170d:: with SMTP id x13mr46016907pgl.169.1554969248456; Thu, 11 Apr 2019 00:54:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554969248; cv=none; d=google.com; s=arc-20160816; b=FYIWPEwmqgV1tuy4qh8b0kjtJB4jd2KYr1ERJ3N89xo/jnuxHQVJG6TzW1EPh+2EaJ isqVVsufeyNSqcTC/ysGw/sS6qO5wxBI5He78UoXOMBj07M7WjnKQcwXMf/GLCHfLuUR w+eFjB8iTLYMUTAyeILHQ4P4KCxsMd/PEFzVlwQXO8fmJaZEoZuujE6TaEgk3PfNNPPm TJLl21yX1ZapWSoP0lPxPBvjZzSXRteJc5GHO2elXO5Ksr+nY+cwDdoNnrHZ1ZPgS4x3 ldonrxs5Fiq+/Gztci+d72uY93jifwECMs6MXHE2WR2LQ1B0GKXTxH4mRjoq0HjAbZN+ 0F9w== 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=0zXdCsU4QrMrnIAyFuMqSofXuZB8LKvnnwdzpbEvhHE=; b=a8A8S4bq89j1LxONzFdKaCOI2YlXZnsPN4m1AtizyM4s/hqUeueQuPlyb6D7k+uXm+ tF68wNkFaTKEwBuKZdDqkFjb/aYQLN9E5kUJCe9DEr9BYWv0BRzk1R8x8iM/SdcbLCsk QVVG3vqT/GT8Rnda78lx6pD7eFZkZuw7pzTrk/D81TiVRrdrYNLiVTl0JRmdqsvmJbU6 5i6AUZHs3BW+R7dtLJqXnvUF6gEF9GHgIJbDGuqmA0qG9vHs/s/xl+NZ2sLzf0ZrTWO9 IEX3zmWkaDiOtOcXm9PtcThuGejkRUy+ofBkw41xRW2O55oOJkuR0qmgykc7iWilUH4w QgRg== 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 cv17si32990325plb.380.2019.04.11.00.53.52; Thu, 11 Apr 2019 00:54:08 -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 S1726708AbfDKHwl (ORCPT + 99 others); Thu, 11 Apr 2019 03:52:41 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:59286 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726121AbfDKHwk (ORCPT ); Thu, 11 Apr 2019 03:52:40 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.07436667|-1;CH=green;DM=CONTINUE|CONTINUE|true|0.503563-0.118714-0.377724;FP=0|0|0|0|0|-1|-1|-1;HT=e01l07440;MF=han_mao@c-sky.com;NM=1;PH=DS;RN=9;RT=9;SR=0;TI=SMTPD_---.EJokYFd_1554969155; Received: from localhost(mailfrom:han_mao@c-sky.com fp:SMTPD_---.EJokYFd_1554969155) by smtp.aliyun-inc.com(10.147.44.129); Thu, 11 Apr 2019 15:52:36 +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 v4 0/3] csky: perf callchain dwarf support Date: Thu, 11 Apr 2019 15:44:58 +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 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 (3): perf evsel: Use hweight64() instead of hweight_long(attr.sample_regs_user) 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 | 12 ++-- 13 files changed, 389 insertions(+), 7 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