Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1005284yba; Mon, 1 Apr 2019 23:44:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqyc2t89FeQbkoBXeoGBSQYXjE2wOsoO7G3xErX5qjx7fmy54k0CBo11U7eIGzIbuRjvUZZG X-Received: by 2002:a17:902:d24:: with SMTP id 33mr68423221plu.246.1554187442805; Mon, 01 Apr 2019 23:44:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554187442; cv=none; d=google.com; s=arc-20160816; b=pwqO2ursn39bIUts1pvNgzZEnh5Ao6wlrX0+0jdruEkTfp7N96m9Nam94n1oV90Bvl xwc+uGQ9SyAEe8gYX9Scv1VGlMUwAcc6U0T97D0gxk+W0gVJmx2/aH/1FMvJHkOrCdqa V3y2B8usi6Sw5JNWP3e76YVNlckX3/UUObzmm9iqClwV8yi0WhrjNmHy5+GlkYO4bnvA Kmk+238Oh9AmSDRhhewPhS/5ckjblsCXV3FWM1jdY6pKXGZgisjCOj1oL9P01zxQZDCi f9ScxmcWfp8IBPoRUNUEsNaUE6FoDUIJR19znQAPZPNXdQ6aeIixesO+nzwBJHTq91ku m27Q== 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=tHsGPuMLmI4frL9idXSyIapwL0pf5qplJ0mfmhVbQw8=; b=Nb6zXRMUwLlNlLGraxEpnic+ZFFt8lOlOsKSCKY/lQYUHtH2he9HO2Z/CV+SBau5XL ZPUeuX80H2BrMmtw7B+bpA2Xr1gcTJo68QvIazXCyKquFoUhyd40XCd9HTo8/OVCUn4w eoVY6JgZM+Lr9Ncwr/Hv4M1sQm0kpgnJSjdISfyV/qZM5+kuDOEW9urDe+heqDCi5AFt d/YjERZDaqY+cIRmj2I8GIU5dlNAb5ZhbGV54+nk2/gMjy5F1nv3JfFdzQSfBoazcEBs 0FUjLrvLBQTkSN88JwodstlPXgXnuK+2ichd/4aY0GzjBxSD76EccnBg4fcaxI7SJybP Vlcw== 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 c1si11109346pla.240.2019.04.01.23.43.47; Mon, 01 Apr 2019 23:44:02 -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 S1729308AbfDBGlF (ORCPT + 99 others); Tue, 2 Apr 2019 02:41:05 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:45631 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729202AbfDBGlE (ORCPT ); Tue, 2 Apr 2019 02:41:04 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.07652075|-1;CH=green;DM=CONTINUE|CONTINUE|true|0.411663-0.127946-0.46039;FP=0|0|0|0|0|-1|-1|-1;HT=e01a16378;MF=han_mao@c-sky.com;NM=1;PH=DS;RN=9;RT=9;SR=0;TI=SMTPD_---.EFvqbEk_1554187232; Received: from localhost(mailfrom:han_mao@c-sky.com fp:SMTPD_---.EFvqbEk_1554187232) by smtp.aliyun-inc.com(10.147.41.138); Tue, 02 Apr 2019 14:40:32 +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 v2 0/2] csky: perf callchain dwarf support Date: Tue, 2 Apr 2019 14:35:40 +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. Changes since v1: - seperate the callchain support using frame pointer CC: Peter Zijlstra CC: Ingo Molnar CC: Arnaldo Carvalho de Melo CC: Alexander Shishkin CC: Jiri Olsa CC: Namhyung Kim CC: Guo Ren 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 | 48 ++++++++++++++ arch/csky/kernel/Makefile | 1 + arch/csky/kernel/perf_regs.c | 40 ++++++++++++ tools/arch/csky/include/uapi/asm/perf_regs.h | 48 ++++++++++++++ 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 | 98 ++++++++++++++++++++++++++++ tools/perf/arch/csky/util/Build | 2 + tools/perf/arch/csky/util/dwarf-regs.c | 25 +++++++ tools/perf/arch/csky/util/unwind-libdw.c | 58 ++++++++++++++++ 12 files changed, 331 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