Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp746107imu; Tue, 27 Nov 2018 05:48:22 -0800 (PST) X-Google-Smtp-Source: AFSGD/W/InwsitnyhZOPVKf6Mq5EpJV8xXSmoihPmzdbpIiIC+OMrAkrNzzN0lkPjjxQWda88jX+ X-Received: by 2002:a17:902:a40f:: with SMTP id p15mr33115940plq.286.1543326502021; Tue, 27 Nov 2018 05:48:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543326501; cv=none; d=google.com; s=arc-20160816; b=htwZeu/e2tXpMKzeIgpl5A+YacAHNvIzlxPQNT3tmdDB+nbumwrL8Ij4U2YEXQQsiJ cPzFFHUuSyN9BxDhcH6VVDjADztyxNuTmMdOjJv4O8vk00CvugbyjNxwaItNgWCyEoey 3eZVoZq+GH2VGUlYBJ6QtewiQw+hPWMaeTrb+ePZwMzX3rBuIzjFabxf8+cHXCrVC1f+ PGTRr3KAWCc1hpr97gtGsxSsdOKEU22GlWl4TyTL2GErk/KHzuocrxouR6FyCg6N/vtx 0LXk1SAHs+MnjgRFOP2801o4pzsXNokAMwjpbXH+ai4OH6KYkyG+TLnQkdKJZO2uO0MZ VdSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=DGI/ccSioq583E+qajWCYDWxSOCUVST0oK6kbutEZqI=; b=MGUB4Rjl3cuiatNo5ivFG0SbhuTUdUtVftuIwmmcKAs1KRHHuZDIzJW+ITJ5jthqU7 Mkw7ima22UI7Gogqo1Ue9xak79GsyaiYXIA7LDA2MM3bS8+GIr+U3ieBPjXIyBYuuUHR Q76wkoGOEdTyIUSuhV+4n8TYMfYxajvYwEmZaANEXso9pjmNsoPd/dU1xc0WZwjOUq3w l6bWbgnnzAlTnLcRPPv3145c+YkpDqV0N3oO9w8uKGEogZZX52VmEdaDH0C6k/VlEZgH AjDxvs729qL7goiVTYsx1WB1gMMvGchSFxj4nK8RjCuzerJ9mluXoyqAz6W6JUMO/Qe2 jgDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rt67o6FR; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d195si1510664pfd.93.2018.11.27.05.48.02; Tue, 27 Nov 2018 05:48:21 -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=@kernel.org header.s=default header.b=rt67o6FR; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729866AbeK0Xdu (ORCPT + 99 others); Tue, 27 Nov 2018 18:33:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:34318 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729417AbeK0Xds (ORCPT ); Tue, 27 Nov 2018 18:33:48 -0500 Received: from quaco.infradead.org (unknown [190.15.121.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F3415214F1; Tue, 27 Nov 2018 12:35:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543322160; bh=DGI/ccSioq583E+qajWCYDWxSOCUVST0oK6kbutEZqI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rt67o6FRonBIAsvExrItmlKkXJY+jyJrlwMSYaLUJXWWGPkvt4zoNAJ5NHEZt+Cct PwEq+qmWrJRIeM0w3vMpWy32BpUI0mxkvBJw4iTzcYng0iRN9pZmkA9uQmjFhPDuR7 rq0nfdvUgJqJhL4oxpSdAPWmLRgIMNNCoEcSLXs8= Received: by quaco.infradead.org (Postfix, from userid 1000) id 511834111D; Mon, 26 Nov 2018 12:27:26 -0300 (-03) Date: Mon, 26 Nov 2018 12:27:26 -0300 From: Arnaldo Carvalho de Melo To: Peter Zijlstra Cc: Song Liu , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Alexei Starovoitov , Daniel Borkmann , Kernel Team Subject: Re: [PATCH perf,bpf 0/5] reveal invisible bpf programs Message-ID: <20181126152726.GA5518@kernel.org> References: <20181121195502.3259930-1-songliubraving@fb.com> <20181122093219.GK2131@hirez.programming.kicks-ass.net> <71189F83-A09F-4A03-95EC-694D37FD7675@fb.com> <20181126145004.GO2113@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181126145004.GO2113@hirez.programming.kicks-ass.net> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, Nov 26, 2018 at 03:50:04PM +0100, Peter Zijlstra escreveu: > Now, I'm not saying this patch set is useless; but I'm saying most > people should not need this, and it is massive overkill for the needs of > most people. So, the comparision is sort of with kernel modules, that can come and go while you're profiling/tracing, if that happens, then samples, in post processing, are not resolvable, and that is the case for kernel modules right now. Sure, you're right, that doesn't happen so frequently, so nobody hollered (thankfully that is now verbotten ;-)) at us so far. You need to have the load-kernel-bin/unload-kernel-bin events recorded, and you need to somehow match those addresses to some symtab/src(for people that want to have src mixed up with assembly) and you need that jitted code, with timestamps of when it was loaded and it was unloaded. People doing post processing analysis of weird problems need all those details. Now I don't know how frequently those binary blobs gets loaded/unloaded in the brave new world of eBPF, but for completeness sake, we need those load/unload events and we need to grab a copy of the raw jitted binary, etc. - Arnaldo