Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp20762ybt; Thu, 18 Jun 2020 17:04:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbgZ8hklPsz2aMEeijmGih+znoTKNi3xwQw+BoBY1AzZkYsiZ3AWgaQQSMqNAvVbjyLXA+ X-Received: by 2002:aa7:d388:: with SMTP id x8mr716826edq.380.1592525059539; Thu, 18 Jun 2020 17:04:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592525059; cv=none; d=google.com; s=arc-20160816; b=VwJrnrBUKppp0ai1RJGqKwsi+RhU4Sr4iNKeA3zIlVQ2MFGuJ2tOOaqasJaysokQcY ivgVa5mC6YIWvl1XdpfN46zS4AXoVa1P6oNelrWWZeML6Qc7VlZpWZ4HrOMk6yUXyAYa sLDqiUxhuRmQsU1rKCnXvgIF3Lw+NgOIKmngO6UjVNhKo+MyRCwD1Bi2NnL0GiDNrOGP LfIAJLwbl4kZ+Xp2z9oCUI0/79ysSiIiWUOHgh7RMNsOFjeoM4fX6yPdBleDGfqLpRVs Kh16YRdRXkE5IDpCydZCUw6Xkm90P6dws+pbjKiuZcYMBZzvp7tb1hpnTciLzwzC+OaU bqSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=O/XPCNGtA8DnhLGkLLNtGx2ABx05I6XwgKVwem4YO5Y=; b=sAmGUlTYhdp+RBo8njnQltESAeXM3JQZloZOGh8VIlCvqrTSNYC9xo2LqPQYo8upTS PxzwfUML1k+YppATJLXsXGa20jcgIVM3lsBQx7RKRdPn/7kmg/BgcgqCz58hWMv9S03r dt8Ig1WksA/0It/CgwEuVExErmInJrcXmQbY8+kkKPuu87B0jWIpgzZIyd/BKNjJQt0A oJJyL/DLK7/X2CmQZOZ6UcbVJYcrESJeX+mrx0u077iSCIzfImyEvrGQYX2Xoira7GLj j24rBojUCajZ6yBXFW2RfCKZWobmhIX6EghzBNaAYBpRHjYCYeOJg6gl7DCRQhzsvpAx QhBw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id by8si2783945edb.354.2020.06.18.17.03.57; Thu, 18 Jun 2020 17:04:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727795AbgFSABm (ORCPT + 99 others); Thu, 18 Jun 2020 20:01:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:40048 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726478AbgFSABm (ORCPT ); Thu, 18 Jun 2020 20:01:42 -0400 Received: from oasis.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 13469208C3; Fri, 19 Jun 2020 00:01:40 +0000 (UTC) Date: Thu, 18 Jun 2020 20:01:38 -0400 From: Steven Rostedt To: "Paul E. McKenney" Cc: "Joel Fernandes (Google)" , linux-kernel@vger.kernel.org, Davidlohr Bueso , Ingo Molnar , Josh Triplett , Lai Jiangshan , Marco Elver , Mathieu Desnoyers , rcu@vger.kernel.org, "Uladzislau Rezki (Sony)" Subject: Re: [PATCH 3/7] rcu/trace: Add name of the source for gp_seq Message-ID: <20200618200138.500b20cb@oasis.local.home> In-Reply-To: <20200618221901.GZ2723@paulmck-ThinkPad-P72> References: <20200618202955.4024-1-joel@joelfernandes.org> <20200618202955.4024-3-joel@joelfernandes.org> <20200618221901.GZ2723@paulmck-ThinkPad-P72> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 18 Jun 2020 15:19:01 -0700 "Paul E. McKenney" wrote: > For future reference, the TPS() around strings is not optional. Without > it, trace messages from crash dumps are garbled, if I remember correctly. When you pass in a string like this, only the pointer to the string is saved in the ring buffer. User space tools have no idea what those pointers are. The TPS() around strings maps those pointers to the string and shows them in the /sys/kernel/tracing/printk_formats file, such that perf and trace-cmd know how to make sense of those strings. -- Steve