From patchwork Thu Jun 6 07:56:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 165952 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp8440407ili; Thu, 6 Jun 2019 00:56:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQ8Z6L8OJh/yRxVCF53o/7EZeEe8Hp+V+jmMjH8FLh/23XYIHJreRtwKo5lyLi4jCXrd3q X-Received: by 2002:a17:90a:1706:: with SMTP id z6mr28475089pjd.108.1559807802446; Thu, 06 Jun 2019 00:56:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559807802; cv=none; d=google.com; s=arc-20160816; b=fltgmjwAyKm9n5vaI63df+xITKU0MALZQStzYk2GdIfwZZmpSugKpwvhnuin5ZBzuZ KeBPGs7N5XBmGAZ+wh2OOxJVsGXQ/W92qZV88lPGpYM2RJNXzM6MNy+UkuKV+54AMvXc JXk8InzHaJlvRG1JtBcYovxc59SCeZSHlcpPCULqCG3i3wpJHKb7PS8H8tluIi1K04qp GQbf9+jZnr/KhQk0Aq4MG1KFRFzA2yGWqWZB/Y++Cl53KZUcuoIuwBDjjgQZfQdcg7eY aHJMvN0RaQJa0z27haOMFnRnh2wjg47q4tqZMTXeePrQIcrCJcAbfR3/6iQslkaDfLat myCA== 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 :dkim-signature; bh=5zxl/1kwHqAI4DRUEiMT/LtSxO6kWAE0NYYYjCPxIgw=; b=X93gDwhe0umG3rZk/BdQ/vP8UPErydwAEF0Xl4wChMt4IL5/xz0dDW63lgBvbP2zx4 1PUyB2HE94OzTeLn/wUwA5CrvA9OxNSPxB8svHHJ114RYReNw0p1dF4lQhPSL7P6HWwg t/IWrbYuOkBRYCW7AlXAqKysvloIFnl5m9RkEcB0s8GTaEBc8qIjwL4wyuxSYWZEggQe sWoGKPAt2W+iOqxeJUNloFZL6wht3xyfeSkk5PpAUo5qY9rZsYaFfTwv7otkTzJRXwM/ pqa/KIkzYyePqxvu1xnb4Gq5ayTQk6qABZxj86clHhODiXItBcGioWRW9QS1Ac73/Q2c mMJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JYJ+BH8p; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 195si1387556pgb.327.2019.06.06.00.56.42; Thu, 06 Jun 2019 00:56: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; dkim=pass header.i=@linaro.org header.s=google header.b=JYJ+BH8p; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726835AbfFFH4l (ORCPT + 30 others); Thu, 6 Jun 2019 03:56:41 -0400 Received: from mail-yb1-f195.google.com ([209.85.219.195]:38128 "EHLO mail-yb1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725267AbfFFH4k (ORCPT ); Thu, 6 Jun 2019 03:56:40 -0400 Received: by mail-yb1-f195.google.com with SMTP id x7so604359ybg.5 for ; Thu, 06 Jun 2019 00:56:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=5zxl/1kwHqAI4DRUEiMT/LtSxO6kWAE0NYYYjCPxIgw=; b=JYJ+BH8ph9BynXcTk2T/3rfh/N0Ej+7xz1AMhk6isvVyWzHAuJc/sM8EEU+qAcYtvl BAxgMC7pwl1YD2LI1XPyg1yT0FesASXKl7La/mTM9ibgfsmC/hJ3YYuBUQ76nPx1cXT8 /wxcxr4b/GImAmIEFcbo/ufvJh6kqnUJJbztB6Tk5TB/n2VYGPO/fXFEJ/edIwOm6mnK hn7QrepywI0oofHP87M/f5zrj4UgwXMzpppSSCxAIu9s2tRr+IbB4g0APtILtcFMk/Ho xYMPWajy77pzC5mzpW7AXUsZQSEgWcNeMcjl3lhMNJyldTfbD9Na5CsLCdbrV7wWpM0Z gNqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=5zxl/1kwHqAI4DRUEiMT/LtSxO6kWAE0NYYYjCPxIgw=; b=YwNnnyB6IgNPpMmemidQLGqkUNluB1uG2HfY09x2+0CtqPkc9jveOhzZTA0AX5s6bW t8Z9dCyCUfUnJUVLYxS46pzcZwux9mWGSY9FHpcQ1sUeDHO391eLDw0NUUuu1MuF9Ecl o+zfwP51FC/RXcRMhdA1nJdutBG/t5VtEyPAufd3bjtoYuoDrK7PsIseo5rcFEJihqKz gUaYm9Th45eYunlzf0Yq964p94PB7wsGqu7tjL4C5UH3N5rMD8tm2wz2vwK5gBd19z9p Z8QIFMignF7AZraNQoQfefvVISIVmy1uVa/DnNS5F2VHmLNP4XnaUH3kEWmUyW1yNjHN 7UOA== X-Gm-Message-State: APjAAAUponGqypbMx3diIHlumM9a129h05TElYPLr2WlZ/4v+EfLAEW4 aZ5B1i80ztCegrWBZ0e3AVLvQQ== X-Received: by 2002:a25:19d6:: with SMTP id 205mr3559544ybz.135.1559807799726; Thu, 06 Jun 2019 00:56:39 -0700 (PDT) Received: from localhost.localdomain (li1322-146.members.linode.com. [45.79.223.146]) by smtp.gmail.com with ESMTPSA id 14sm316343yws.16.2019.06.06.00.56.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Jun 2019 00:56:38 -0700 (PDT) From: Leo Yan To: Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Adrian Hunter , Mathieu Poirier , Mike Leach , Suzuki K Poulose , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org Cc: Leo Yan Subject: [PATCH v1 0/4] perf augmented_raw_syscalls: Support for arm64 Date: Thu, 6 Jun 2019 15:56:13 +0800 Message-Id: <20190606075617.14327-1-leo.yan@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When I tried to run the trace on arm64 platform with eBPF program augmented_raw_syscalls, it reports several failures for eBPF program compilation. So tried to resolve these issues and this patch set is the working result. 0001 patch lets perf command to exit directly if find eBPF program building failure. 0002 patch is minor refactoring code to remove duplicate macro. 0003 patch is to add support arm64 raw syscalls numbers. 0004 patch is to document clang configuration so that can easily use this program on both x86_64 and aarch64 platforms. Leo Yan (4): perf trace: Exit when build eBPF program failure perf augmented_raw_syscalls: Remove duplicate macros perf augmented_raw_syscalls: Support arm64 raw syscalls perf augmented_raw_syscalls: Document clang configuration tools/perf/builtin-trace.c | 8 ++ .../examples/bpf/augmented_raw_syscalls.c | 102 +++++++++++++++++- 2 files changed, 109 insertions(+), 1 deletion(-) -- 2.17.1