Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2568171rdg; Mon, 16 Oct 2023 08:13:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEDZpujXUshUO5erlxknjB51TFV6UW6hDjHH34csToVEQkB92bY2M+g0Xm5oLCqWjYijqLc X-Received: by 2002:a05:6e02:1c08:b0:34f:6dcf:4100 with SMTP id l8-20020a056e021c0800b0034f6dcf4100mr40191450ilh.11.1697469225621; Mon, 16 Oct 2023 08:13:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697469225; cv=none; d=google.com; s=arc-20160816; b=K/QENh8DuDkd9pUmVcG1Ft9mshuC7GcCU8sRA2KgebATgU6QQtQ1ghlbUWAkHAUkMs E/kmr7UJQxg7yaYb92BPihPXMqwsjdDhm6eBxe+GbeOPdybfpq19j5B1l/449Rjso2YO iQcfLCxvBWrbsZXq5Hd96smG6t4xLG/k5Zm4LQAHbfSz/eQEqyvBBRh1fjkgrrlr4Plv 4qK/6W3mruLXHcgiOUmdmv83eSACenN1sL+3iMSu3mUVgtZXTYHttlwNctWZBeOXzSJ7 qJ+zysCi2oydB/u6AHzMQAocGS91GlxLs4N+yz4ezJMx3K9V8/Egtnskl1Dcl1A5nnL7 DS+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=1eR5ud+X4G99kqXhYup2CajHlyncDkkFQVZGmFycYE4=; fh=0fshCkQlqV8TnuFxd5yPT9r8n+ESG0hgRe/zM65IDYs=; b=c0rc94JOs8rJdjBjBuXv+yUqmVpFoyTLwZMEHIr3DYQQjFzotmHJqQ1i0OHAFjxeqY Jek4oLIqtEbIyyvk23LyZx6dOyaQaXEYleJsJIJkhFsxpmDLdI8sHDrw5LmOTI/2B14P 1brUOx/voaWHKZUV8A3TaRLi0aWbCPutDftZVGiYkJFHbLKFnSWAT1OXL7W0NRwyFLCK 3M5SizNfsSzLLb/0VOUrF8PN8FYlnvXXaceUgxzU7cqhQL6m82Vt7nMT1nEwTp27G1vL VYgYo1+1fE7AMQ1RlhX/MqftMDSKSwx/ZfPqw1jEyfpiZ7mky7rBk6juudFH/MdQhflw NuUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b=aBOxAnP8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=semihalf.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id a13-20020a056a000c8d00b006bdf4d02453si33pfv.145.2023.10.16.08.13.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 08:13:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b=aBOxAnP8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=semihalf.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id B346680B1200; Mon, 16 Oct 2023 08:13:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232310AbjJPPNd (ORCPT + 99 others); Mon, 16 Oct 2023 11:13:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232003AbjJPPNb (ORCPT ); Mon, 16 Oct 2023 11:13:31 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2553AB4 for ; Mon, 16 Oct 2023 08:13:30 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-53db3811d8fso9591748a12.1 for ; Mon, 16 Oct 2023 08:13:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf.com; s=google; t=1697469208; x=1698074008; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=1eR5ud+X4G99kqXhYup2CajHlyncDkkFQVZGmFycYE4=; b=aBOxAnP8RYmytbkIQU/05delHEWjWFIC5SsD9GIXFO5yFEs+5rd6yTHkVgsF5AZtx+ bT0csrs84IHH5EScvN8ByTMz9p+Dc7mz7/Pscu3pFj3aW5nNI/WjeUupx4X7TF3etw3e tpUy64NnMt+K8cFnH5sJYNW3dDvW16ixx0+Sh2fI+OgAXpTQ0tLH6zs0xZ3WUijO58Ne N0bJ99HMIzztUwCam8crOzeApjMayv0ZscUUn7drpqVBFxnyk3JkAWBPJdqu99KBJi9S CFUCSRVrdDa+wNImsrgaZgqLgw8DBYUL/PdHSerXkB4pgzXgShb9Ab/qLesKuU82KKI1 0WXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697469208; x=1698074008; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1eR5ud+X4G99kqXhYup2CajHlyncDkkFQVZGmFycYE4=; b=FALqEFU29DQUBcaGbsJecCLEqyEeFP5G+W7MvFpVuIzrqX7lsT4XN6sp5nSNLuzzU6 hWIz2EKvcsfyBOjddPpPRRXYBmxa64Evk3Q7uksf2YGQ3JlPBE122Y3wj/fK/+bVdSUr Hj4o0JdOLVZVbmtFnOm9rijPzJfkdBjk1T/B6S/XqtZdYbHq4q+fDWdYKZHVKhXKhaNn jjYTkDvn3zQVPB2rl5gHELpQF8T+xS2dC9/NMULmlhdnjP0qHEJ4KK87mmt6NtlCFotD x/aVqjZ4IISnLUlhnNHEE6b732C9u23TsaVIjJ03Y8TjjWamJieoOI5kmTCnlQYxO2bl FyqA== X-Gm-Message-State: AOJu0Yw3+0xzfmWQJ1cBWh6njpELWOoYY4rVR8s6xbz/Q13tPSY1nuB3 eg/18KkeHOSjewhCZxGQIl+/zZGhvWFhYvYWIbGl X-Received: by 2002:a05:6402:354c:b0:53d:b59c:8f8d with SMTP id f12-20020a056402354c00b0053db59c8f8dmr7999575edd.8.1697469208569; Mon, 16 Oct 2023 08:13:28 -0700 (PDT) MIME-Version: 1.0 References: <20231003155810.6df9de16@gandalf.local.home> <20231011114816.19d79f43@eldfell> In-Reply-To: From: =?UTF-8?Q?=C5=81ukasz_Bartosik?= Date: Mon, 16 Oct 2023 17:13:16 +0200 Message-ID: Subject: Re: [PATCH v1] dynamic_debug: add support for logs destination To: jim.cromie@gmail.com Cc: Pekka Paalanen , linux-kernel@vger.kernel.org, Steven Rostedt , "wayland-devel@lists.freedesktop.org" , Sean Paul , dri-devel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Mon, 16 Oct 2023 08:13:42 -0700 (PDT) czw., 12 pa=C5=BA 2023 o 20:48 napisa=C5=82(a): > > > If you want the kernel to keep separate flight recorders I guess we cou= ld > > add that, but I don't think it currently exists for the dyndbg stuff at > > least. Maybe a flight recorder v2 feature, once the basics are in. > > > > dyndbg has +p writes to syslog > +T would separately independently write the same to global trace > > This would allow graceful switchover to tracefs, > without removing logging from dmesg, where most folks > (and any monitor tools) would expect it. > > Lukas (iiuc) wants to steer each site to just 1 destination. > Or maybe (in addition to +p > syslog) one trace destination, > either global via events, or a separate tracebuf > > Im ambivalent, but thinking the smooth rollover from syslog to trace > might be worth having to ease migration / weaning off syslog. > > And we have a 4 byte hole in struct _ddebug we could just use. I'm glad you brought that up. This means we can leave class_id field untouched, have separate +T in flags (for consistency) and dst_id can be easily 8 bits wide. Also can you point me to the latest version of writing debug logs to trace events (+T option). I would like to base trace instances work on that because both are closely related. > Unless the align 8 is optional on 32-bits, I verified with "gcc -g -m32 ..." that the align(8) is honored on 32 bits. > I think we're never gonna close the hole anywhere. > :) > is align 8 a generic expression of an architectural simplifying constrain= t ? > or a need for 1-7 ptr offsets ? > > > > > > > That's my idea of it. It is interesting to see how far the requiremen= ts > > > can be reasonably realised. > > > > I think aside from the "make it available directly to unpriviledged > > userspace" everything sounds reasonable and doable. > > > > More on the process side of things, I think Jim is very much looking fo= r > > acks and tested-by by people who are interested in better drm logging > > infra. That should help that things are moving in a direction that's > > actually useful, even when it's not yet entirely complete. > > > > yes, please. Now posted at > > https://lore.kernel.org/lkml/20231012172137.3286566-1-jim.cromie@gmail.co= m/T/#t > > Lukas, I managed to miss your email in the send phase. > please consider yourself a direct recipient :-) > > thanks everyone > > > Cheers, Sima > > -- > > Daniel Vetter > > Software Engineer, Intel Corporation > > http://blog.ffwll.ch