From patchwork Mon Oct 28 21:43:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalesh Singh X-Patchwork-Id: 13854224 Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) (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 180FD1EE001 for ; Mon, 28 Oct 2024 22:05:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730153134; cv=none; b=FyBceQk4h+q/eV9+8Qept59hub/krIiLrB1zXrLN+5F0jouqzIEGSv0neCfNU3GFUwgKZmmVKTHJ29DYRAd3CpLv74G9sSYUY2sPlX2rl8vKbhQGCBza9bXjLo7N3CJvIuaKkyV0xpsCLsduwgVsS7rhC+Zt5DKudxUVk6noYTI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730153134; c=relaxed/simple; bh=b7NDcp0ZbtvVvN+n9OTWm8KVIbatbAAOOj0YER5oc7c=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=SF/uY060rwdVJAJm319qvtqXrMHk168NAxHXKQUcs9cXcNWYTHmmMPK79GJXvvzFTNK+W8UDQoB4Y6E+zkyZjrD/dmjsHJDjrugICKPU45b3LPHgrkM1aLORipSp4g++gxC5cnuDwKp63SkHRj7dWklFBvi1bEF7l5dCt9rBsio= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--kaleshsingh.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=1QH1M2Xv; arc=none smtp.client-ip=209.85.219.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--kaleshsingh.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="1QH1M2Xv" Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-e293b3e014aso7892980276.3 for ; Mon, 28 Oct 2024 15:05:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1730153130; x=1730757930; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=w3ou0NFxNBMI+LK68R3aSahBHwkUL88oLn/g1FPlgGI=; b=1QH1M2XvwYrj5izJC2xtekYMt62DZ7zG56TLeFpFr+e2UGI8abFbMX2L9Jnx1vVFvR k6M7y9RPM3pGXIM5utjHALB9qanTcptdnOZ2md3wpZXuY+kxTc8ymFNzU3yJKMcvUb2W C1ExmcbWlPK5oY9E24/d/qxV6l5obOKux90exJcfkgopWqYxyos1tgYIHUK21mN0EjRp qzD8aUd9Gmu7bB7c9TBa1dnMC7nx/iuLeRgs+FL0H1mScvIBKJ0DvSRtHsemjhBU7C3J 1cBUhKju+oYaT6Ao97CpfvINrGbpqBzA+MQa5I1gnfiupx4TEA96FVMgPFVLEUC2cOJr rBaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730153130; x=1730757930; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=w3ou0NFxNBMI+LK68R3aSahBHwkUL88oLn/g1FPlgGI=; b=CD6VxPV81kf9uH1H3py6VgJsE/WOB5YH162zLIca5qxYLsgLEv7EYyOZ7MHJOAHhBi 6B02Sw9DjEF2JCrWUNo1YJH8ZbtDD5JZKaQE8K0YWl4+1o+xTYiMVCE4TTRG07dwzyUf 3/36eHcwAFrOXCh0LL9yFmAlaut8egFaMhc4PgIa0oulrnKCcjEYRPAtWCcTfz2Sgef2 +2AMlRrZABPvd9lfeEov7syCnJ+7SkpyCipgFWQNfq0hZPIN8LOIjwzxhKWagkVp1Utl CHOWKqFhsVeA4dS3078JWY01UdSDBPgV4Dm0zIJ94SgezyuxklwLFuJ57Y+RniH+t6Ln aK1w== X-Forwarded-Encrypted: i=1; AJvYcCXYLGCE9BjZ2HWF/Ckn9dQVlFNQvVq37Rts0wh3aTTFXa1TgpE2SrV9m3Rxp7rmeDBHb1sH2Catj5S24D46lpjQzwk=@vger.kernel.org X-Gm-Message-State: AOJu0YzFMZXdbGDaQzxsa16AmltezxynMmC0Y5nfj6FOn3GQuT6mFkvW B2aLHBkDZ0NKQfSB50n4H827eLdsk8SdW2EfFIkgO+eOvg/n14rUght1MnYWX2/QKJVDWt7k51T Yfpux5uAHV56W1YTQl29wKA== X-Google-Smtp-Source: AGHT+IEoJvt/jAg/wrQgLrbnpd1PYPhm7g2qxg9aTFmYZoLnT+5hMX+dRMvN53ZNPQP7hmPh/zEREK2sEQRWA+pWew== X-Received: from kalesh.mtv.corp.google.com ([2a00:79e0:2e3f:8:dd17:1d2c:7822:7fdf]) (user=kaleshsingh job=sendgmr) by 2002:a05:6902:3297:b0:e2e:2e79:207c with SMTP id 3f1490d57ef6-e3087728d56mr8839276.0.1730153130042; Mon, 28 Oct 2024 15:05:30 -0700 (PDT) Date: Mon, 28 Oct 2024 14:43:57 -0700 In-Reply-To: <20241028214550.2099923-1-kaleshsingh@google.com> Precedence: bulk X-Mailing-List: linux-trace-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20241028214550.2099923-1-kaleshsingh@google.com> X-Mailer: git-send-email 2.47.0.163.g1226f6d8fa-goog Message-ID: <20241028214550.2099923-2-kaleshsingh@google.com> Subject: [PATCH 1/3] tracing: Document tracefs gid mount option From: Kalesh Singh To: dhowells@redhat.com, rostedt@goodmis.org, mhiramat@kernel.org Cc: surenb@google.com, jyescas@google.com, kernel-team@android.com, android-mm@google.com, Kalesh Singh , Mathieu Desnoyers , Shuah Khan , Ali Zahraee , Christian Brauner , Eric Sandeen , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org [1] and [2] introduced a new gid mount options that could apply to a group to all entries in tracefs. Document this in the tracing readme. [1] https://lore.kernel.org/r/20211208075720.4855d180@gandalf.local.home/T/#u [2] https://lore.kernel.org/r/20211207171729.2a54e1b3@gandalf.local.home/T/#u Cc: David Howells Cc: Steven Rostedt Cc: Masami Hiramatsu Signed-off-by: Kalesh Singh --- kernel/trace/trace.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index a8f52b6527ca..2b64b3ec67d9 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -5501,6 +5501,10 @@ static const struct file_operations tracing_iter_fops = { static const char readme_msg[] = "tracing mini-HOWTO:\n\n" + "By default tracefs removes all OTH file permission bits.\n" + "When mounting tracefs an optional group id can be specified\n" + "which adds the group to every directory and file in tracefs:\n\n" + "\t e.g. mount -t tracefs [-o [gid=]] nodev /sys/kernel/tracing\n\n" "# echo 0 > tracing_on : quick way to disable tracing\n" "# echo 1 > tracing_on : quick way to re-enable tracing\n\n" " Important files:\n"