Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2479679imu; Tue, 6 Nov 2018 15:38:45 -0800 (PST) X-Google-Smtp-Source: AJdET5cHZnfLO+R2mNv9l0SmaA8W/wBGCs/qiH7DHGs037ecv9N/Kp23F+vLeeviwV2RkiupJ+Sk X-Received: by 2002:a17:902:64:: with SMTP id 91-v6mr28607384pla.161.1541547525216; Tue, 06 Nov 2018 15:38:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541547525; cv=none; d=google.com; s=arc-20160816; b=KKnPjocV5VR2oONrsMP7LS4L8TIFtQaBrThWNnDmVrwkwwOz4FDIl4OMuoEXUZjRMI aYH/n8jqd86aIz0TFr+xjsRxNCTkjSaTmpa4diMx3wNp0l6btvvHD0JwDYVigLA2nZK+ 04144PZcL2QgnaT3IPyL3qURrPsT7uFeZlt/klYiUvo0NCTI1mVPUp30cxAYHC2njVR5 tR8WDRRF15aNlBuIpx1RUsTgQAN/fZByJoADYJTAP7VkNtoi29okNhooFVn6v2IARMTz FHPXL+if4VipzHKN88JcuVB51jBKQ5U9hN1x3+4w9SdOVuwuzuVWc/vJdFtvjGu7UX4y qSFQ== 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:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=LyzksXqb2kA9MSb40ksx7iAxTT7s7YabYcW9rOxICw8=; b=FNa2AvUEgooXJSz9/ZN4+io+CI+/Hlx64NbFKqlXLs6Cl5qirMcEC69OJbNB149mj5 GI5dwRyE2NBnj2qkefsW4hsVCeFGN/2QgskFrbF7ywhtMukSlZpcq7jzTohECpqFd6py qgI9TrmllYvfXCvBbNMO3G8sjLWiEgLA2z95URyIDfJegZNUC0q1VKjFOfNyu0zu0xKy xerF07crK9JvhSe9Iu/cdHZB4ZD40S03Mfax6fiM3+cyQQZmTJnYogRn4YBQirE/+sdt qqtN/P/4vWS2+hPL1G8QysOpAUQZAiaBRgwJtoKhYrrL69xlb6aSfLysu5Iz7wgwzbdQ plEg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r22-v6si56469264pfr.18.2018.11.06.15.38.29; Tue, 06 Nov 2018 15:38:45 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731055AbeKGJEb (ORCPT + 99 others); Wed, 7 Nov 2018 04:04:31 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:55442 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730409AbeKGJEa (ORCPT ); Wed, 7 Nov 2018 04:04:30 -0500 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::cf9]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 61BC81090B255; Tue, 6 Nov 2018 15:36:48 -0800 (PST) Date: Tue, 06 Nov 2018 15:36:47 -0800 (PST) Message-Id: <20181106.153647.1701013551426767213.davem@davemloft.net> To: ast@fb.com Cc: songliubraving@fb.com, dsahern@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Kernel-team@fb.com, ast@kernel.org, daniel@iogearbox.net, peterz@infradead.org, acme@kernel.org Subject: Re: [RFC perf,bpf 5/5] perf util: generate bpf_prog_info_event for short living bpf programs From: David Miller In-Reply-To: <27fc8327-3390-ba5a-6063-89c9e7165e7b@fb.com> References: <6C5A9FBD-F50D-444C-9038-E9557EC850D2@fb.com> <27fc8327-3390-ba5a-6063-89c9e7165e7b@fb.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 06 Nov 2018 15:36:48 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alexei Starovoitov Date: Tue, 6 Nov 2018 23:29:07 +0000 > I think concerns with perf overhead from collecting bpf events > are unfounded. > I would prefer for this flag to be on by default. I will sit in userspace looping over bpf load/unload and see how the person trying to monitor something else with perf feels about that. Really, it is inappropriate to turn this on by default, I completely agree with David Ahern. It's hard enough, _AS IS_, for me to fight back all of the bloat that is in perf right now and get it back to being able to handle simple full workloads without dropping events.. Every new event type like this sets us back. If people want to monitor new things, or have new functionality, fine. But not by default, please.