Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3432013imu; Wed, 7 Nov 2018 10:13:35 -0800 (PST) X-Google-Smtp-Source: AJdET5e7Xiq+FjJ3qk3MT3+ltODbfrYtM/T77qzyPn4FHwRDeGIUkNxf5H6zj5+JL98coxdgvGa1 X-Received: by 2002:a17:902:7882:: with SMTP id q2-v6mr1271609pll.188.1541614415740; Wed, 07 Nov 2018 10:13:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541614415; cv=none; d=google.com; s=arc-20160816; b=UVDOmwrjcaqMQfyN5iGpPpiZDkavdpbWkltCTN64qSK2hfvMeKcuYQX17J15w+FmrH y88gkQkBTvqkmM9E/pRNTTJ/EpjaWpp/sCna3o7zie35+k/V36v+sXL7b9yik+8WnLQV 7UdeaUxQEwtDVKEApBBwRO2EhkH1pkRqgck2MlgdqNdW4j6VMGwdJGQh0ny3sXNXoFQW 9vpaKkcAT3FJmhrAa7QyQOd9ca6CV5PuH/MiG8qvS/xkkE9cW9T77JobvI5pI4vSetpV 4m4Y8ft/t5CXvPZeN9DhIGGgAeVJnggUCkWWBwZT54UViYgcKlmceEFRvC0QvReO7cMP GF4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=WJulaHyZTW+3D3nyyBUhImJNKnq+eB6poijbUDSXIco=; b=HDYE4wodSW+VRq+aX/XZd6ifRcGymzH10mcD5LLniplKqQFVuG4oW4bnynN7tecyZS P1RkGeGbYP/Ofz70lReO0HhP+9l/Z3TB4wgoTRqm++tBIm15Kx0nOyvYz7k1G3WH4iNf wfi/JQx/nUy1aZgaP8D8E5Kh8963Ky4oXQV6g6eCoEPrrcO183eslnsszJv3lOxRIhHI seOhXcqwEH7dbLvPZRFzdGYOrF4vvnM0IGotxqdoRPo/eUPnefZkI6avkL4Fd5B6uv+n /hpidqRDhJm9qvxfp2MegYclLtHiKDg8oJPV2mT8nsTJJd0Y8wUIxgLhBNvh7XAjA5Lq nVlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=glNTkWrI; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 16-v6si1298771pfy.64.2018.11.07.10.13.20; Wed, 07 Nov 2018 10:13:35 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=glNTkWrI; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727999AbeKHDoW (ORCPT + 99 others); Wed, 7 Nov 2018 22:44:22 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:34307 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727656AbeKHDoV (ORCPT ); Wed, 7 Nov 2018 22:44:21 -0500 Received: by mail-pl1-f196.google.com with SMTP id f12-v6so7030127plo.1; Wed, 07 Nov 2018 10:12:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=WJulaHyZTW+3D3nyyBUhImJNKnq+eB6poijbUDSXIco=; b=glNTkWrI+TIs8RzbgQiNkFYj9ozMXd8KeAcw2gP1IgvDLBAMTp30kkKKIxFzuzcwSs rRAmqPLFFm6zGOAqcXllGgLYiBxtxS4dhoRlv2860a3w0ioo5P5MnB+EQ3s3Ml4YMgU9 Ko+enxSQy9MSe6na822bvFojY1a1K9PW+3/DWdtuXxyO9hBZ51A61uqe8vAq5am0yOmz h++J+lRZcWwE/xo2ztoLjHpFR1hG4TIQ494T+KRyvu14Ccql0yPgbKjSIjIBPdcChCoN /+XiOVsvUKxWdbWzyDPiKq7I9zGjq68U3DhSic9a5TMAB8LMU7kdcErhE3KEktS7WyNh a9Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=WJulaHyZTW+3D3nyyBUhImJNKnq+eB6poijbUDSXIco=; b=so6dD0CkEunq0R6kJZBaqTRQ92jODWDISfKBqQO0N8WY/7RKL8xcxtUscpOTxSBRb1 iO5OQLhPq0vdmqwL4CVMIlkAjAH4NKlYcCWT/Ff70N85VPhpFw+8dU4BZVps0vyPFoXH E7XYnKxbcrz8ed8tJUB4rmW98be0KMcSsIBplfnu7loYVjIV11cmmxaM1nol9XJdg0qf h9Kt0s4Nj4EM6wwzrJhNRdBXj9RNmO/lH4HaoK4pgQAwvyLhWoz0XhoB6vzLxUGhWZ9O zB6w2QW4n/AG2mOGwoHd32k3KcB7IW9giH0RE9FPVOE1tYttYWQUTsxcHfM2kwLX3TlI H1dg== X-Gm-Message-State: AGRZ1gKK+krX3kezJAnhf41glkJ/XOpTQLMEpGgOZ1gwRX9JU831ppD1 WsTLxKHcGJwA3eWbcpJ99sGJjmSs X-Received: by 2002:a17:902:3a3:: with SMTP id d32-v6mr1240048pld.304.1541614368588; Wed, 07 Nov 2018 10:12:48 -0800 (PST) Received: from ?IPv6:2601:282:800:fd80:b9ef:3cc7:d955:8635? ([2601:282:800:fd80:b9ef:3cc7:d955:8635]) by smtp.googlemail.com with ESMTPSA id c127-v6sm1401935pfa.31.2018.11.07.10.12.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Nov 2018 10:12:47 -0800 (PST) Subject: Re: [RFC perf,bpf 5/5] perf util: generate bpf_prog_info_event for short living bpf programs To: Alexei Starovoitov , David Ahern , David Miller Cc: Song Liu , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Kernel Team , "ast@kernel.org" , "daniel@iogearbox.net" , "peterz@infradead.org" , "acme@kernel.org" References: <6C5A9FBD-F50D-444C-9038-E9557EC850D2@fb.com> <27fc8327-3390-ba5a-6063-89c9e7165e7b@fb.com> <20181106.153647.1701013551426767213.davem@davemloft.net> <39fe6abc-5c3e-bac3-0c0b-cf68bea23ab0@fb.com> <0a05a14c-3a79-e894-ae48-cbe1df4feb91@gmail.com> <82745121-339e-2751-c9db-d1fca02d0b33@fb.com> <7d0b100b-a64b-0d30-8ec0-2689ef44423d@gmail.com> From: David Ahern Message-ID: Date: Wed, 7 Nov 2018 11:12:45 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/6/18 6:09 PM, Alexei Starovoitov wrote: > On 11/6/18 4:44 PM, David Ahern wrote: >> >> So one use case is profiling bpf programs. I was also considering the >> auditing discussion from some weeks ago which I thought the events are >> also targeting. > > yes. there should be separate mode for 're: audit discussion' where > only bpf events are collected. This patch set doesn't add that to > perf user space side. > The kernel side is common though. It can be used for bpf load/unload > only and for different use case in this set. Which is making > bpf program appear in normal 'perf report'. It would be good for perf-script to work in the next version. Users should be able to dump the event from the kernel and the synthesized events. Should be trivial to add and allows a review of both perspectives -- profiling and monitoring events.