From nobody Tue Dec 16 20:33:31 2025 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="FCsdXnMQ" 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-Google-Smtp-Source: AGHT+IFetT6LA2as4CdJTi2zyucAEZ9+MaO/PFI5HGIj+AVSpSBk8RQAQfFz+stqPzyFLlL/c80Vpg== 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=20Bartosik?= 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 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 :