Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9775015pxu; Tue, 29 Dec 2020 04:59:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJxlhH/wzA4iW1AVkM2uoD/g9JZRWeDz2WlKI/YNQabWiHSbdjKjObrFqZG04YsVt5fBSol1 X-Received: by 2002:a05:6402:37b:: with SMTP id s27mr45422198edw.266.1609246747349; Tue, 29 Dec 2020 04:59:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609246747; cv=none; d=google.com; s=arc-20160816; b=wHsTJULlAsHRHqFhTrXU9bUbYAA9SxBz5gGK+M+X6GfeOKhgpmzrY8p8hGh5gcD50z OvFuAXlibQHXIGSWy+Cs0m1/TJ8YNUlyhWfZbupJ8c9Ox0YRQ81dYGgvrryo2ddEzh8a f+H75eBI5vgt7iH6Wnn4Y1SdnkoIQ4xp5I97mmwjhn+/gCg5/pLCigafR5kghIqLQ/LE JC2zAeF66/Li+UVhOz/8f6fEm2TkVDTkvhn5RlBLerdzdBzUeZ4uCs6k6hoHlZsnn9Sq e5sHHKpCtWZShzKjDfQ2hGsTCJu6vG26kk6SL1h7Tn9M3huNHuunvJGeO8BSfFrj3ZPe Mozw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=zpeSN5axJHHuw0L285UTwFLivHZ/bxAOwKOSy1E/DZQ=; b=nCrKy8JRFd3n+Z6UzUGVDx6JNNL/5dRqKhq/VHjx7AGoMj6CGJeGjUlEMjD15sfv1B x0MzSV40zfBrkIEnughevD1jLjtK/g1BXa7G4MlhcQINYctB1zU+L98NAVKEMKwo7zFJ bdvLvPuIw8vz2uhTfiICzsaR0cB+/eUz3V0dOa1txCaR7TqXRY0ME1xslwokyaAODgvj dfeyfrFcGQc0sc2FduzfhQlL65YbjIfd4gY6aK/S6NiQN0pJDlJM8K6aECfht9osqjRn i3lB/cJmKRPJ8KdeN/rvXKRWa6qVUW7qihIObFD+SRXzWEuXRIVlRD8j4lIcw5i7AamI Ewxg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g24si20124365ejh.77.2020.12.29.04.58.45; Tue, 29 Dec 2020 04:59:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726302AbgL2M5P (ORCPT + 99 others); Tue, 29 Dec 2020 07:57:15 -0500 Received: from mail.loongson.cn ([114.242.206.163]:46450 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725979AbgL2M5O (ORCPT ); Tue, 29 Dec 2020 07:57:14 -0500 Received: from linux.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9Dx3zZhJ+tfy00HAA--.27S2; Tue, 29 Dec 2020 20:56:02 +0800 (CST) From: Tiezhu Yang To: Thomas Bogendoerfer , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Xuefeng Li Subject: [PATCH 0/3] Add some perf support for mips Date: Tue, 29 Dec 2020 20:55:58 +0800 Message-Id: <1609246561-5474-1-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: AQAAf9Dx3zZhJ+tfy00HAA--.27S2 X-Coremail-Antispam: 1UD129KBjvJ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3xlh2x3gn0dqz5rrqw2lrqou0/ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tiezhu Yang (3): MIPS: kernel: Support extracting off-line stack traces from user-space with perf perf tools: Support mips unwinding and dwarf-regs perf tools: Generate mips syscalls_n64.c syscall table arch/mips/Kconfig | 2 + arch/mips/include/uapi/asm/perf_regs.h | 42 +++ arch/mips/kernel/Makefile | 2 +- arch/mips/kernel/perf_regs.c | 68 ++++ tools/perf/Makefile.config | 9 +- tools/perf/arch/mips/Makefile | 22 ++ tools/perf/arch/mips/entry/syscalls/mksyscalltbl | 32 ++ .../perf/arch/mips/entry/syscalls/syscall_n64.tbl | 358 +++++++++++++++++++++ tools/perf/arch/mips/include/dwarf-regs-table.h | 31 ++ tools/perf/arch/mips/include/perf_regs.h | 84 +++++ tools/perf/arch/mips/util/Build | 3 + tools/perf/arch/mips/util/dwarf-regs.c | 38 +++ tools/perf/arch/mips/util/perf_regs.c | 6 + tools/perf/arch/mips/util/unwind-libunwind.c | 22 ++ tools/perf/check-headers.sh | 1 + tools/perf/util/dwarf-regs.c | 3 + tools/perf/util/syscalltbl.c | 4 + 17 files changed, 725 insertions(+), 2 deletions(-) create mode 100644 arch/mips/include/uapi/asm/perf_regs.h create mode 100644 arch/mips/kernel/perf_regs.c create mode 100644 tools/perf/arch/mips/Makefile create mode 100644 tools/perf/arch/mips/entry/syscalls/mksyscalltbl create mode 100644 tools/perf/arch/mips/entry/syscalls/syscall_n64.tbl create mode 100644 tools/perf/arch/mips/include/dwarf-regs-table.h create mode 100644 tools/perf/arch/mips/include/perf_regs.h create mode 100644 tools/perf/arch/mips/util/Build create mode 100644 tools/perf/arch/mips/util/dwarf-regs.c create mode 100644 tools/perf/arch/mips/util/perf_regs.c create mode 100644 tools/perf/arch/mips/util/unwind-libunwind.c -- 2.1.0