Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7866771ybi; Thu, 6 Jun 2019 02:51:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqyI7E15GD+pF+XD0rioLm+k5/0/rRn5Kke+SK2lp05DPJ2oGfKE7RBlrExs9lk1kT4cJVMU X-Received: by 2002:a63:4045:: with SMTP id n66mr2565923pga.386.1559814679079; Thu, 06 Jun 2019 02:51:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559814679; cv=none; d=google.com; s=arc-20160816; b=GOzAajyGua9HosObK1scAGuAhKmfAXYn1lQtQ7KIWWtoUgUxE9lsM7d8ZY18DoAbBv Y6q8PkeFw+1JoFgMB6kPCaPIFAbYVe4bz9B0M61ax3ic0wpvY8GvuQSN2/tMHoRheZTL fm2XxSpQcsnbYS7Sf3aygIm1GVJmjYK41Q8tm9eeCoQq8z3YONKR0Elhuc86lYLlkeMr WdwSwEyMq+Efxd1uo8DBozt/iuxdNJ1lgb5MN0mxI7P2aCKQfhWeySLeyhU68ICFsuTu sNF16uuOk8wazhOXywZdnsCNODQJsGPMCJcTtyih8vL1KJDhckxnZlXuLhyaCYaJOrAF U7dA== 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=HwkhWKMpPJaL0/9ESC+uPWWc8yhmmR/+PoDADfFsBeAN5vhUUc8rFIu08rrtdxVEZS 32W53NgUFBbK4CeB9eAJNHFmVOvs1IQOK+1eTcMfH/dP7stkdy+52V+9D37cM60+/+bM F7dUoYSEeMHhY7Tz3ku5bQh2dnCE79l8m43/LkxftY4KDZyjyeclDvQq3qLLf/Q3j1gC u3bq3O6sqTqnSXy37xum5xX9jRcKmvKjTveQ58NRqSNbNdkuaAkwyUMlWbbuh9oCUtSo teMg7z7dtCll4SeuCdFptexm2k984JSCAdIFDDLVWctTKHywe4K8qfbrJEdSmh6bnJOZ GRhQ== 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 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 k13si1329519pll.64.2019.06.06.02.51.03; Thu, 06 Jun 2019 02:51:19 -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=SdjqbUbT; 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 S1727996AbfFFJtE (ORCPT + 99 others); Thu, 6 Jun 2019 05:49:04 -0400 Received: from mail-yw1-f67.google.com ([209.85.161.67]:36723 "EHLO mail-yw1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727842AbfFFJtE (ORCPT ); Thu, 6 Jun 2019 05:49:04 -0400 Received: by mail-yw1-f67.google.com with SMTP id t126so622140ywf.3 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=K5n13Lk57DD86+xVJ3hKm14BWvnqy65TXCV0I/aYB97SMCXCIxuVgqM4I+MPyQ0Ft4 VjO+H5Rq2Uj/AOb3sS3qoktNNDhq2WAgDjzQ+koyESEQtCWI8C7c9/Hj33ffBLEL94PP Bzr1hlaoeUXMvPb6VyhAeuo5uXp1V4r3TKwc0M4f0TP1KAyCuCgUqGbjKtorWjfECRWN PUNO1KwF+s4+Vwbc89jXP9WOeywBklgyhHzUz8a90hrLg4q9hiIZN5AyoYqxAjSmiOCV KnPA8gbFXFNnJGwLO02CgYXdvblepjHqofHD6TO5tgIHETPSGikA6yizbADQ/5OHXd// UAPQ== X-Gm-Message-State: APjAAAXgkS1QXEQ+SSbJrNeg7rI1ePKverVMDPf1oq9zDutBRsisSKot nLuo5hC70Ia/lIJU1Qz/uW9AJQ== 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: 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. 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