Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp2821933rdb; Fri, 18 Aug 2023 11:28:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGrrVywm0gv9i/fQllZPICFzgHLB09puMZNgxkjW7R7bklf2TuCY5lRy4koc1ulnMhAxwCW X-Received: by 2002:a05:6402:786:b0:523:36cf:8bf1 with SMTP id d6-20020a056402078600b0052336cf8bf1mr7633edy.34.1692383320141; Fri, 18 Aug 2023 11:28:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692383320; cv=none; d=google.com; s=arc-20160816; b=l236/0I1TuZk8Op6GtgKOPFdE1xodBMRVeUcZIP0/TsZ4VDRGLULP63XaxT6BMZb5M wKV0xbRGO9Cqgt6X5LtaRxYnZFgcHw/jjJ1ajDsnS1+z7aXShH1BzKCOBiQ6F9BCt7mE 64eLpHsGRE9wl+MX737kemYqsM8ORzKpV6QJrwTPR5NJeEx+wysajkpJlMVpxHQbfFyt VM8OV8XchC5AsbAEo1nOQxQMap2xYHlr5q7jz5R21XgcmA2bmxWHKiTBPdZXcLAR9ija lC5aT6lm66Jz+J5+3S3ZnqUGknI2iC5xJ0SEysyY+Nq673jrr3oxeVUDheV+Gqh8MLdc 6zvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0dlyy6tHYRQ6t5qyErrYyqUEoEphT6kFUA9dk15LHdE=; fh=G3PlzF+XUvkHUqL6k16HyHUv4lLfJdSSN8q8ztENvks=; b=t11lV1c6gqqxUnZsGwDI9w+mST32pYxDIIg6QGvEJMDPBJt6gOC9EEeZUbdFDKvqYr slEL7ozCtY69eC5WEKjJs9GGp5RQ/p+xcmntRT0Bk1B7SteWFROO4hSHDM9DdrUhaADl n+zu86V2Ytf0vM097bae/pAeEEQe8UyvD4L9L0LYX4tGTOqX4bab647v1jBjZCY1H8Lh Eclcx0BY7SVH0oP5/RuUfq6dydE6SDzJyJnnn3BYwHvuh8tGmLLdR0yh+J/nxMpZmnEP s5hpXVRJX49um8aAWnVB5WPUSPeyhLmpgHQyqXVZblv94tUeYc1DCkxMGv6DAtb6OB9F Rngg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=um4URlNI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w16-20020aa7dcd0000000b005233567744fsi1745121edu.154.2023.08.18.11.28.14; Fri, 18 Aug 2023 11:28:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=um4URlNI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345147AbjHPRPF (ORCPT + 99 others); Wed, 16 Aug 2023 13:15:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345222AbjHPRPA (ORCPT ); Wed, 16 Aug 2023 13:15:00 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 536F426BB; Wed, 16 Aug 2023 10:14:55 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DC40966DAF; Wed, 16 Aug 2023 17:14:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A795C433C8; Wed, 16 Aug 2023 17:14:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692206094; bh=mNHi7yo/+F6lGkVdNtLVdja/1jJL9G+ynGHwfd2qMK0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=um4URlNIvs/ma837FQM0/oM7565LaRn0CCV2jg+cgnqYCKvLl0D+RthfqSMrZNmPV aAL0gB0DS2W+gr+kUMbugboESvOtGdrfyF5QE4RoAeV3sCsFoqD6v+8PO0EWLIIVaK SVKRHlzT9wAVOUTk736iMjpSrylP1C5AKIoT88limlXPgqP0RFOi1HyFc6u7hrSITk GWXI5Wma5FCF22Mv+4op48TERjKF6Jz4Qh1tEimEJcSzl+zHBs20uAwxtPdZ0vL97p 4kaJSZ2H4Ho3ciqljwMF5wDfz2ElckiiS4LTLuA+U31WyxCi1aHUjRxao78MT+DyQN qGI5J8uU04sAQ== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 67046404DF; Wed, 16 Aug 2023 14:14:51 -0300 (-03) Date: Wed, 16 Aug 2023 14:14:51 -0300 From: Arnaldo Carvalho de Melo To: Ian Rogers Cc: Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , Nathan Chancellor , Nick Desaulniers , Tom Rix , Fangrui Song , Anshuman Khandual , Andi Kleen , Leo Yan , Madhavan Srinivasan , Carsten Haitzler , Ravi Bangoria , "Naveen N. Rao" , Athira Rajeev , Kan Liang , Yang Jihong , James Clark , Tiezhu Yang , Eduard Zingerman , Andrii Nakryiko , Yonghong Song , Rob Herring , LKML , linux-perf-users , bpf , llvm@lists.linux.dev, Wang Nan , Wang ShaoBo , YueHaibing , He Kuang , Brendan Gregg Subject: Re: [PATCH v1 2/4] perf trace: Migrate BPF augmentation to use a skeleton Message-ID: References: <20230810184853.2860737-1-irogers@google.com> <20230810184853.2860737-3-irogers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, Aug 16, 2023 at 01:08:14PM -0300, Arnaldo Carvalho de Melo escreveu: > [acme@five ~]$ getcap ~/bin/perf > /var/home/acme/bin/perf cap_perfmon,cap_bpf=ep > [acme@five ~]$ cat /proc/sys/kernel/unprivileged_bpf_disabled > 2 > [acme@five ~]$ cat /proc/sys/kernel/perf_event_paranoid > -1 This last one can remain at 2: [acme@five ~]$ cat /proc/sys/kernel/perf_event_paranoid 2 [acme@five ~]$ perf trace -e bpf*,perf*,openat,connect* --max-events=10 0.000 ( 0.031 ms): systemd-oomd/1151 openat(dfd: CWD, filename: "/proc/meminfo", flags: RDONLY|CLOEXEC) = 11 25.532 ( ): gnome-terminal/3223 openat(dfd: CWD, filename: "/proc/1244100/cmdline") ... 249.996 ( 0.031 ms): systemd-oomd/1151 openat(dfd: CWD, filename: "/proc/meminfo", flags: RDONLY|CLOEXEC) = 11 423.853 ( 0.036 ms): pool/2490 connect(fd: 7, uservaddr: { .family: LOCAL, path: /var/run/.heim_org.h5l.kcm-socket }, addrlen: 110) = 0 423.929 ( 0.021 ms): sssd_kcm/2514 openat(dfd: CWD, filename: "/proc/2486/cmdline") = 16 499.988 ( 0.030 ms): systemd-oomd/1151 openat(dfd: CWD, filename: "/proc/meminfo", flags: RDONLY|CLOEXEC) = 11 749.981 ( 0.032 ms): systemd-oomd/1151 openat(dfd: CWD, filename: "/proc/meminfo", flags: RDONLY|CLOEXEC) = 11 775.441 ( ): gnome-terminal/3223 openat(dfd: CWD, filename: "/proc/1244100/cmdline") ... 999.988 ( 0.044 ms): systemd-oomd/1151 openat(dfd: CWD, filename: "/sys/fs/cgroup/user.slice/user-1001.slice/user@1001.service/memory.pressure", flags: RDONLY|CLOEXEC) = 11 1000.091 ( 0.010 ms): systemd-oomd/1151 openat(dfd: CWD, filename: "/sys/fs/cgroup/user.slice/user-1001.slice/user@1001.service/memory.current", flags: RDONLY|CLOEXEC) = 11 [acme@five ~]$