From patchwork Sat Feb 10 23:50:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?=C5=81ukasz_Bartosik?= X-Patchwork-Id: 199350 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp1704036dyd; Sat, 10 Feb 2024 16:03:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IFHDDZS/RSIYQgPe4bEEyk1lD/p2RIwHIu2AHJayzGopJQaa8Y02yvuEstjyu4QZQj8B0mO X-Received: by 2002:a05:6a20:9397:b0:19c:5ae6:4425 with SMTP id x23-20020a056a20939700b0019c5ae64425mr2606047pzh.59.1707609835522; Sat, 10 Feb 2024 16:03:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707609835; cv=pass; d=google.com; s=arc-20160816; b=obvZDCfrbVVgy3qORm0ZehgSuDgsPgBBOfcDvtEAxTJI4UYDKosFYQ0kVUjrqS0x3x nUjz8wP9BFYbObLV3c7QjuSG44p/VFtesyeuUadk3Ro035x4hN1T+2Yt6ouowPQPg51k X4wqloUdFgVByfPNQ/l0XMThjHhWSa2pdS7eZXKvTxU8IsUIPEIIN+nXRqvnwQO/8VcY niut8O1EtVODPcpvDKSA5byZ/wVmad74evHpzc77IAJTzPnp99uNpOuyec9tCC/sHuR9 N5S8yD8hNq+FgxVin85ZOYG/dep2V+ETfRnX2gF9mmxYV2GPL1bvIhJj1jzPnD5ssbfK Lesw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=IDLyZQY0Gp7KhBNnuaHo8uCD80YF3Aj4cErAT5jFTkw=; fh=sY87fMtGl6g1a0nBc3LTfdqjyiI80g9gx+fVrrYsWpg=; b=v87dlzkow+4MoltyFw2EcjOXcysX3U3KGRHSn9FveJZJZRQQe9P7w2SGKhq4tulNhT mMHU9fVxDvVd63xhPq/yJZvhp51ncP+ho0stjIKBsoec7OVAw8+wxS77wtsE6lvS7hLk /AQoTlZTWRsxGqOKKL4qjjfSen9fohUZRysGrukYnIk5PFF5AMulo3tBKczWOrmA1b0x qsSTomloE5QGDcDdqO9+vfFr1NWgtXCdnLzRvWRC1GgnXSlAXu1UH4beYZ3yi+LVtYcf OMB8lWexSeLWieTZhzv/RwY3wQO/XOteKGCeJ9auu02R+Rez6w/MHG8vGGao014VCsDl iHmA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=FCsdXnMQ; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-60622-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60622-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org X-Forwarded-Encrypted: i=2; AJvYcCVwdrP92XIs3DlCw+rQPxm2n0ILzgVARo7E1sz7zeUAwwLDShKZCIxoBAT3pQxbPksa7saxef8QzAuYwWKHIz6pQCrq0Q== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id bo6-20020a056a02038600b005dc4af11fedsi4223431pgb.887.2024.02.10.16.03.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 16:03:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60622-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=FCsdXnMQ; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-60622-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60622-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 8D2C4B23182 for ; Sun, 11 Feb 2024 00:00:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A194865BC0; Sat, 10 Feb 2024 23:51:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="FCsdXnMQ" Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com [209.85.208.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F3BA96026D for ; Sat, 10 Feb 2024 23:51:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707609099; cv=none; b=HFp49EWV+m7nahdcvj510Uj0rkPNyWVLTG2/Ak4zL/mlXCrA9zgyFkKN0COM4h68ddt7FdC7YLE5TlCyCeALHHiAmPkKreUhsSY9LkPMAUfw3lIJkaSN2964pnpOCrqwdpWK5zbEtE/JF4y0c+00bj8cZ5hki8x2CGh5wmW4G24= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707609099; c=relaxed/simple; bh=ReWhSS+1izQtXkqlEOSz/2/Fm5ZmohM2FkH09HrD/N8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TN9+XPPlG3P6kbOJAui5h/1YoqEWamjpFuZLQ5Wiycx3wKPcuKQ940z6fhur9BlVMqadU6rmpw5C5cRhKzs1DODKe0OCuL4qNTSMZYlXVgatrXiz4RWGSvcEYMRNc3FGRxMKF71/VAVO2rc8rxQde8MQyD5zASS+km1cv7r1KZA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=FCsdXnMQ; arc=none smtp.client-ip=209.85.208.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-lj1-f172.google.com with SMTP id 38308e7fff4ca-2d073b54359so29834751fa.0 for ; Sat, 10 Feb 2024 15:51:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1707609095; x=1708213895; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=IDLyZQY0Gp7KhBNnuaHo8uCD80YF3Aj4cErAT5jFTkw=; b=FCsdXnMQkruigWqTwwnI34yhDSMLm5sEVjgn4psqoBaud/SBiOf1+HHROL3So/+yfv Adk95tCY32ibLVp3H75Y381UyrusWexpgmP6X+1kWK1uHwuCUxthZdwIVctjSSzLGS6Z 5tZtF/Y9D5x8p8hNxnMIHDi6BA2f+kQXwGD5U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707609095; x=1708213895; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IDLyZQY0Gp7KhBNnuaHo8uCD80YF3Aj4cErAT5jFTkw=; b=pcjiT33LVS/xdKiuRYXmL1Vz7hvibXzzgxCgGPxM4hpa2IirY7A2MEPPWjx8A5tyzi Zrug8I1ns+1vQR0tL2Fl+zLIgz/FKz7fu/NpHtyu1u+5AIkHQpE53HhpdCy067567eRE Yu2cMl6GwF3febP+wmeOm1Mu1MJ3zeoMLUCxDWonzxnOepxcLLm8L4OaUowiEljxRyPO zFQXufpt1ci4svBL2OFF/OPnqAFwdLklflaEAoNanijlyGVo5Zl8ZNXSq9HUGRmMBD73 E3htGEVMGFdQP98FLWmdg4Hj7tH5TaK+e+1UhlgFM5YFQapd9zE35ZeGW3NuKjrfrxRW l1lA== X-Gm-Message-State: AOJu0YzAmIL0SL60KPhRLRiTKRN85A4dH/lWzeh7DY9BM6LbWBQ0s05l /6ghW0DsgYB8F7yU58/+8XAydwOR4ZxDLhvRnG6/e4RQsIHz3TLatWrLJkFK X-Received: by 2002:ac2:5ecf:0:b0:511:8659:73e4 with SMTP id d15-20020ac25ecf000000b00511865973e4mr939007lfq.8.1707609094898; Sat, 10 Feb 2024 15:51:34 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCV05e2q10UG4B8HgNTYcMFSVqYO5DH9XhpkBr4BqrsDpnBr7GQNu0Z0vGObHET6IWiqhmLt2Fa8kBQV9sp/UIvPS1u8v0tfV2sU/8B1iViCfYhk4kH46gHTO5OLWeDmz3zM+d4i837LDVWSRH4ZcmhZtQsq2a3Nc1H5cEYXOPvSnZFGFbSJgBKuuzF6RJhYhbATNCRFIIXkwYT7xxAjNbEiKMOoOvsuaRgYHAzGwBXDRZobNnmmXAVda3PmKAn2W09HX7e3Zksajh2ijTi+V1HfuJ1qO0bygY5ra9WstZp/sYTryTnI5n+SJVaETRH6OSjjtl+lAQfMuC2puATsFSAw7NXTEB5MyN6IS2GlLfJ5wXVhJC0/hL3siJA+PzMdWfWfKb/8jJ9d6Bh6+J43m7T3JeBEENrpomfC+JHHl2xy1+87elkeOuA6plBmg0ykyWyzzz/uUFaMuVpfEU8fail/1udjhYg9YraaVqQpkQF8le3CpfEGKWCMelVFeT9Sy28QMQBPbv5SAz3JN4xSYZQExZWQtndhb0pBbl9UWhgdNNaYqbN6HOI0SqCwuSp5+iPSl3DQ1zR8OEV+ygjX6KKqXP8CTgYpKnxRL28fBpzBfe/WTg== Received: from ukaszb-l.roam.corp.google.com (alfa56.extreme-net.one.pl. [213.77.89.56]) by smtp.gmail.com with ESMTPSA id o27-20020a056512051b00b0051179ae1846sm365561lfb.280.2024.02.10.15.51.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 15:51:34 -0800 (PST) From: =?utf-8?q?=C5=81ukasz_Bartosik?= To: Jason Baron , Jim Cromie , Greg Kroah-Hartman , Andrew Morton , Kees Cook , Douglas Anderson Cc: Guenter Roeck , Yaniv Tzoreff , Benson Leung , Steven Rostedt , Vincent Whitchurch , Pekka Paalanen , Sean Paul , Daniel Vetter , Simon Ser , John Ogness , Petr Mladek , Sergey Senozhatsky , linux-kernel@vger.kernel.org, upstream@semihalf.com Subject: [PATCH v4 39/39] docs/dyndbg: explain debug-to-tracefs (=T:label.flags) Date: Sun, 11 Feb 2024 00:50:09 +0100 Message-ID: <20240210235009.2405808-40-ukaszb@chromium.org> X-Mailer: git-send-email 2.43.0.687.g38aa6559b0-goog In-Reply-To: <20240210235009.2405808-1-ukaszb@chromium.org> References: <20240210235009.2405808-1-ukaszb@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790558690819730912 X-GMAIL-MSGID: 1790558690819730912 From: Jim Cromie Dyndbg can now send pr_debugs to sysfs *and/or* tracefs. Since tracefs has 2 user groups, dyndbg can write to either: 0. users of existing trace-events, in the global: tracing/trace 1. users of trace_array_printk(), writing to private trace buffers: in tracing/instances/* It is presumed that being able to mix existing pr_debugs into your trace, to add "framing/context/decorations", will prove useful for both kinds of users. If nothing else, it lets users apply trace-cmd upon klog+trace-event activity. 63 private instances are supported, "0" is the global trace. These capabilities are exposed via new grammar into >control: 1. T-flag enables pr_debugs to tracefs p-flag to syslog is independent. by default, +T writes to global buf: /sys/kernel/tracing/trace +T:0 is the explicit :