Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E44BC28D1E for ; Thu, 6 Jun 2019 09:49:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E64A02064A for ; Thu, 6 Jun 2019 09:49:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="SdjqbUbT" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727883AbfFFJtD (ORCPT ); Thu, 6 Jun 2019 05:49:03 -0400 Received: from mail-yw1-f67.google.com ([209.85.161.67]:33750 "EHLO mail-yw1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727702AbfFFJtD (ORCPT ); Thu, 6 Jun 2019 05:49:03 -0400 Received: by mail-yw1-f67.google.com with SMTP id k8so627718ywh.0 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=jo+YOv61CEoIYsCpy/wKSBjNjXuKHE63LUi9x1JAhWfd0wVwOBHXkcuf0JOmKg3wFw frlqb5YEa/XkggAr/SsKH9850qJ+s5K4lw3xACz0Zt3hHgjqS8/RTzNEHolQKHaohGYH /9Bs5BaCK1+IIe9RbBaduqru5u5X2IOUiFxJX3i8qbJQMiyygzvADX4sz432Kt5Gl+Hr vbRBIA1DtlTkbvl7y728HK8InFRUCTq5b1GxaFkQGuiPc8sXwN8Sib38F6opy0NNu5KT JV+u296x4YGIV3L3teLWagP0XoGN2KA2ogQ3CiFN18epSfND+ix5hN6tT8dzZP/DuZag dG/g== X-Gm-Message-State: APjAAAWWFOj5SDXK+e8trikn+ptErvZPDFAWDO/vkssnpik7AWovZAmc N4jJVvWgIICaKpsA/DOsp1xpoQ== X-Google-Smtp-Source: APXvYqxz0XWfsmbzfDmzbRe2redmsNqGmSe1BzZBfwxV8y9htux3O/q5LgublDbdDBqLOTH72HI2fA== 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: bpf-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: bpf@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