Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1635059ybf; Sun, 1 Mar 2020 14:23:15 -0800 (PST) X-Google-Smtp-Source: APXvYqwjm4JcMm1vy3scUXtSA1fQDdVPxDHNfDiXaeTB97f+fWkfZNhHuXKaMik6LQR4cXh29+VP X-Received: by 2002:aca:c45:: with SMTP id i5mr9161724oiy.111.1583101394917; Sun, 01 Mar 2020 14:23:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583101394; cv=none; d=google.com; s=arc-20160816; b=nwa1bDO2BWHxx9X6kkdYJjeZ7XuJ/3eW/OjF+5Czx2gxo3Wx2qFb3PgEaA8HiySPnS sKpTiX8Mau6RFF1FCiPP3Ld7CAUuMLYVQ05MU6YA7RQtGV+xiC/l+1TonkC5sZEv2J/j ZD2nrsTH08ZP3M5Bpex5wveyfX2c6YW2MrYyY0SgqVBeTMYZZ04EhJdK3DhJzmM460NW R0JVAqhPLYL0nqmbx/IHOBuNDUjKc55/3+f57kxCdf57GBuuwm6gjA2p/lGSR3XEA20n dCSekRcLiuDTKYYuo05LJEbMnvNQs3xWcXNqQH4Xzwx1VoMxG10EDiij2CX44mBHCFbj z+Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version; bh=NmprisF7lRQnCTsG58/Z8qJZevp6PNZiDobu7OaizaY=; b=Yhv3wulr7OMIZkSueOBGBPfaZtNcBYQJwmHcqpA4Scs/Xe3YGmg2w+QuhTNy1oaktH 0wbdrZfu00Eyg/ZC7WkGeWBgjKgjBIjDdhU3i08ug26dcelSIWjtou5jEqvjccJg0TSD 81hoqbd9+2gHtbAi6EcFcP3Tv7bvZPK85pRV9PyNvytUzoR0Hm2092oEpCG4MN7x3ss4 eo+Pmzu8JdU42ttS5h/seHtX+Q7eh4vMi47kGrrBt+vQr2RkigXyqcCmzoOoFJ8tJdap ySFp4V9fotTCb/a1wGLRd3+CdX7gNl2P/b1P5ZtP3AhahcTuIszT76RyFgwmKRI5ZUTH 77ew== 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 n17si1646087oic.145.2020.03.01.14.23.02; Sun, 01 Mar 2020 14:23:14 -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 S1726673AbgCAWWb convert rfc822-to-8bit (ORCPT + 99 others); Sun, 1 Mar 2020 17:22:31 -0500 Received: from mail.fireflyinternet.com ([109.228.58.192]:49586 "EHLO fireflyinternet.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726525AbgCAWWb (ORCPT ); Sun, 1 Mar 2020 17:22:31 -0500 X-Default-Received-SPF: pass (skip=forwardok (res=PASS)) x-ip-name=78.156.65.138; Received: from localhost (unverified [78.156.65.138]) by fireflyinternet.com (Firefly Internet (M1)) with ESMTP (TLS) id 20406408-1500050 for multiple; Sun, 01 Mar 2020 22:22:27 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT To: Steven Rostedt From: Chris Wilson In-Reply-To: <20200301131816.277dd398@oasis.local.home> Cc: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20200301155248.4132645-1-chris@chris-wilson.co.uk> <20200301131816.277dd398@oasis.local.home> Message-ID: <158310134594.5508.5362429296192213548@skylake-alporthouse-com> User-Agent: alot/0.6 Subject: Re: [PATCH 1/2] trace: Export anonymous tracing Date: Sun, 01 Mar 2020 22:22:25 +0000 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Steven Rostedt (2020-03-01 18:18:16) > On Sun, 1 Mar 2020 15:52:47 +0000 > Chris Wilson wrote: > > > To facilitate construction of per-client event ringbuffers, in > > particular for a per-client debug and error report log, it would be > > extremely useful to create an anonymous file that can be handed to > > userspace so that it can see its and only its events. trace already > > provides a means of encapsulating the trace ringbuffer into a struct > > file that can be opened via the tracefs, and so with a couple of minor > > tweaks can provide the same access via an anonymous inode. > > I'm curious to why we need it to be anonymous. Why not allow them to be > visible from the tracing directory. This could allow for easier > debugging. Note, the trace instances have ref counters thus they can't > be removed if something has a reference to it. Do you really want a few thousand (or even tens) i915-client-%d? That does not particularly seem like it adds ease-of-use, and would need to be restricted to the client [or root]. The intent is for the client to have a private channel for detailed debug/error reporting of its own calls into the kernel. -Chris