From patchwork Thu Jun 6 09:48:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 165968 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp8551347ili; Thu, 6 Jun 2019 02:49:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqzYwK1QeCzmIblzCugTJEfsuyBMFw0ftDlrnay+9gVwx8H2KgMrm2OFM845S21k0kMelJcJ X-Received: by 2002:a17:90a:9385:: with SMTP id q5mr49028179pjo.126.1559814545964; Thu, 06 Jun 2019 02:49:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559814545; cv=none; d=google.com; s=arc-20160816; b=tyCEm7WCAq4a9JsVxbbPk09i8+bE3V9NwhazwiUtlfaec4he/ANMo9aam2T8QXNB1H kFqHew0gNs2Mp38w1GD9DbYV1RsIeTVLVRXYTzEWDc8O3JV/i+l+k/Um8eyKX+33R+4U NKc0mH5LvaDI64DoKjd50MnEv02itUko2qaWp4NNb5xveEbT0O58c/0NsDHPO76ZUex1 RPJssxNl3y//k8RnRaY1j/pIk9p2o2q3Ko8fUapclgjgG9VAL4zkGvnS0FHdnV2tNpB2 sqwC3AdlRDiaXbR8RGrS2rYh2Kh2fY5NsoxgXnMDrygnBKIUD9L5tS3P14ocLOPwAbXt jECg== 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=yNb0Fj6n9km2JVdDN9Uekf1sOIr2hggzzvNxUDiKBF4=; b=Vqk5JDaxk+LdpllP9JzE6ThK2XhLOe4Ty+1kj3t+2l1vTvoz1UjZdtjVeTnvcWBnOU BwTWXyknNFd/g2BVtoJi4U6Vi0aN/q/Iw8gLbS78l2k3VjKyFtoCci8ukuUROiNFSx/A f8iQdHRRBDhquCqtvPdGvUG9w/9pcctv12jvo7vOjesq0i0uEb6Yhm2cjQfuyZU7WfZS trZrNu4qAxReBL9I8yuB6HWPQzQomYfypZTZAd672jhl/P9/Q0GbbRQij3XXjGAYphSb pL+AcvVXYM2N4m67JXd6hK37Ub0OZcfqQJq8STDAxsp46ayfKh68N+vYkYg3BMVTF0as K6Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SdjqbUbT; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-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 f9si1665811pgs.115.2019.06.06.02.49.05; Thu, 06 Jun 2019 02:49:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of netdev-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=SdjqbUbT; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-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 S1727913AbfFFJtD (ORCPT + 9 others); Thu, 6 Jun 2019 05:49:03 -0400 Received: from mail-yw1-f67.google.com ([209.85.161.67]:38062 "EHLO mail-yw1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727846AbfFFJtD (ORCPT ); Thu, 6 Jun 2019 05:49:03 -0400 Received: by mail-yw1-f67.google.com with SMTP id r128so616965ywe.5 for ; Thu, 06 Jun 2019 02:49:03 -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=yNb0Fj6n9km2JVdDN9Uekf1sOIr2hggzzvNxUDiKBF4=; b=SdjqbUbT1cHno2hjuwgq87mWDphOAtQJ3FRy/UQjLOeTmvC55V0Paqyc5eIT5UTaMj kaJ3QT3w1DVNOSN5D3oLm0P4DQzS510cF7JEkzDKyuyjahqcyCWY12YOxQNf5R7lU6xF 3pp+d5hH3tKDwybV4X5mikJ9G/i4ePHmNy6EQaA++MHvQ+BPipVeCGbbBFA8uJ6VWxyq +vmRcD0ZEJjSlUQrWXH7zTk1ibmyZe7vX7oG8jggMKi1h3yxgWTKiPyxX8aIJyXL7ESV etzXHJHh9udMFILd7limdtRD6uX4XryAKpHGZfke5kvmeTxtsFcSugKCsKeu9KI++MPf BL9Q== 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=yNb0Fj6n9km2JVdDN9Uekf1sOIr2hggzzvNxUDiKBF4=; b=rw1OUFd0ZyEHBwdKvflTCaKgr0nzItXkIlQxDT8nXjqSIpueoiVsuA5OpTsmruGSxh SHS2s3lnGuddOoJ88i6sJwBhuFJYb2LHnpX020m9bFVDX9WXDgVsCsJmQ3aCr94wVjrU Yn/TTfzG9vOIp19mKXU3wJWMNCJSDnWN5Exw54Xi3/a+ay7TQbQ7261TRkz5/JS75oyx vweKUjs9RkF4YEcxMHtO6p8mVRieBia6adURbDxygLVEKatjWVbKGHE5n3+S8RA5F1i+ S876iFQ4gYRmSetrF0gYJXdCYLBwj9SWxZ9/7Drr99EPBcLk7Ykht1NC+kFmdS8kErXn Cqmw== X-Gm-Message-State: APjAAAXCQ1sr8AqBTX7Eo6jemC6j3nUN1UMIIeSTl02k0K49xuqG2Gh4 Ldp64uI6XGFA5+25IKgfWDV93A== X-Received: by 2002:a81:1d13:: with SMTP id d19mr22128098ywd.490.1559814542843; Thu, 06 Jun 2019 02:49:02 -0700 (PDT) Received: from localhost.localdomain (li1322-146.members.linode.com. [45.79.223.146]) by smtp.gmail.com with ESMTPSA id 85sm357652ywm.64.2019.06.06.02.48.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Jun 2019 02:49:02 -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 v2 0/4] perf augmented_raw_syscalls: Support for arm64 Date: Thu, 6 Jun 2019 17:48:41 +0800 Message-Id: <20190606094845.4800-1-leo.yan@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@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. Changes from v1: * Removed duplicated macro and aligned the numbers indention for arm64. 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 | 101 +++++++++++++++++- 2 files changed, 108 insertions(+), 1 deletion(-) -- 2.17.1