Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2558876rdg; Mon, 16 Oct 2023 08:02:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFOBqHsqsJwi302scgoivHt3uLZc0l+X9350aJJb6N2w9ocXw+1MSOQtQ9WWl80rLnzgnKk X-Received: by 2002:a17:90a:1196:b0:262:f449:4497 with SMTP id e22-20020a17090a119600b00262f4494497mr32873440pja.2.1697468519826; Mon, 16 Oct 2023 08:01:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697468519; cv=none; d=google.com; s=arc-20160816; b=FKHEVoyP/l9z8DRSQWZF7hAEO/TjnQU0a4mcEHUOKw2VRs/ba1XGunBmvKiPxqxSMC 7vktVnnmS6Mu8v1qqdv7Z6NmidfQBMz9hwFF9BKCZZ9TYizsnd7y5A21m3WHzLN8Ojpx zvk7E69unEYuPWXMpYrpkknElwyXAe4ySZOOS4JMscLwX9FJSxsUuI7Y9jF13y5qVNe0 r+Kl0StH5DKVT/Uim9pDs1zKV3Z5x5RgB93leNkoPPyNM+B3dhfkIOCto22SLp2qwQsz pjC5KLzk3/PVvuOuElAl59IhsAlwCyFZTyTD93yrN2CJqVuEGUjMIYuAJqwG1XpnRrMV mMdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=bbPXs8vQbo/nf9Sru5cJ87j7FLqk3ypgqgAiGAaGDaE=; fh=X7qvVuG73soHV7779Z6pPynoMHJSButh2CvlCfa+Xjs=; b=lv2Zd5qa53peKUraoTWXftbSOlLojhwRPcruGE/Wm01DbvUjBsE/ck1F+OcVaX6I7r tYJWu5nDdiYR3U3Q4yYiMYhyHXbIK3yxjK7m5tXDfJyARPL2j4EJY9ww7g1hUNkgO0cz d4ePJXZ4Jl2cE2sxgMiPy9wSV6rnXHLQG0eO33+HRJK8iq9tyTlfmZhiQgcd9jkw33aA svKpG2qYFtvZNy/JYbpkJ9rMZwHp68CqJlpSzVbPKXWyt4VxBq1OnceFAeNoPREP0eVy Ul5820wF79Qu6ARwPHDskpWx04elxBqPRQJBnWgK2DsB2AFQfi7HDu3CaqGMqU4OXy/3 Ke0Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id t7-20020a17090abc4700b002791cef6654si6439189pjv.1.2023.10.16.08.01.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 08:01:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 72E9380622AE; Mon, 16 Oct 2023 08:01:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233606AbjJPPBs (ORCPT + 99 others); Mon, 16 Oct 2023 11:01:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233263AbjJPPBo (ORCPT ); Mon, 16 Oct 2023 11:01:44 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 409C5E6 for ; Mon, 16 Oct 2023 08:01:39 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0EA23C433C8; Mon, 16 Oct 2023 15:01:37 +0000 (UTC) Date: Mon, 16 Oct 2023 11:03:12 -0400 From: Steven Rostedt To: Daniel Vetter Cc: Pekka Paalanen , jim.cromie@gmail.com, =?UTF-8?B?xYF1a2Fzeg==?= Bartosik , linux-kernel@vger.kernel.org, "wayland-devel@lists.freedesktop.org" , Sean Paul , dri-devel Subject: Re: [PATCH v1] dynamic_debug: add support for logs destination Message-ID: <20231016110312.3d18ea82@gandalf.local.home> In-Reply-To: References: <20231003155810.6df9de16@gandalf.local.home> <20231011114816.19d79f43@eldfell> <20231012115548.292fa0bb@eldfell> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 16 Oct 2023 08:01:56 -0700 (PDT) On Thu, 12 Oct 2023 11:53:52 +0200 Daniel Vetter wrote: > > You said that turning the kernel ring buffer contents into strings is a > > very heavy operation, so it is not possible to push this scope > > separation to userspace, right? > > I think it's the kernel that does the formatting, but honestly not sure > how this works with perf traces. Might be that it's actually userspace > doing the formatting later on so that it doesn't incur the overhead while > recording. perf and trace-cmd do the formatting in user space via libtraceevent: git://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git It reads the format files of the events: /sys/kernel/tracing/events/*/*/format and uses that to read the raw data saved from the kernel into human readable output. Note, this means that addresses coming from kernel trace events are not hashed! -- Steve