Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1796785lqp; Mon, 15 Apr 2024 19:09:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUCVF+m4QqW2NZaIoa/8rvyFRg16p/kOaJVj5utvdyueAYiLntWEzLKrDjphVG3b+Lek2hwIg01uKJt6bBuw7eU0TbOdc7wMwPmqBHGHg== X-Google-Smtp-Source: AGHT+IFeNsEPyma2m3vx+/d2nsZ/cxRFDB2OX/jrZ43qZrb90seTCGRaWQ7GmPhgMfmbyzE7tBsZ X-Received: by 2002:a05:622a:3:b0:436:7933:59cd with SMTP id x3-20020a05622a000300b00436793359cdmr14815876qtw.11.1713233343176; Mon, 15 Apr 2024 19:09:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713233343; cv=pass; d=google.com; s=arc-20160816; b=FMW8g06EREsimlcR/CCtkYO/4cfahXSplmBG8FWrrI2fOGtkmcepNLYjugz24e7g4m VQ9xcWyMap6b2GXZr2dyNKf2+h0IFjsZNn7w1MT9Ro1Qv7OFISQ+/F+tVpqLuDu0XsuK SB+/Cj5cL33QN8g/zNZjKoIen5in8dpsmBYTZ793JoJxE/7QLxheuwCl1sexyXntEI1H KvPYq/nYf+cIVZrWwwSf5n31a4SL/vddCVpfOlxAxRD/lHseAjqAywTFlwJshzWdJ08K ghDlFolYSMjRMRGYGjMR+pSnVieDjw8M4yqnKrWfnDX2ISqZ0lvQMJFVzQ4Nb13hYW1s nsUQ== 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:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=b9Egc/Fg8xHLi5Mts732z9c41kzvRH7tFrpKcVjJQOk=; fh=LUsOOFL6ACujfyGxmAg3iFaqyO0zGtt6yeHyOTIvoiA=; b=i/vaGaoI7TRzhrx8AW5RT+mN0LoeQRCu5oW4IUe9AP+bNC7MBIqFwSNBufk810ovr6 B/HuXq0ZvYVttFVxXvaxjW4RYn+AXUWIFAbzJ002txcpjCJlvkX3glYrQMLOg6NwYBn8 /tNl1CadP48AthDNGWYUu6W4IjVE8VC+cPK+7Uu3EvRr4rq4HFCsI9DA6vB8RAfzZoPq BWOx7l0UoSVrZXhjCD4in+0tt30EPttYFc5auDXi72ptHzo8VEeDzU1bF+WPvOmkVWaH XeIm0t4CqmCuHGJQ4tsAjsp86krNOBV18sVNlNS9SgGSq42nrqseJy7jo8nwMjDT1oF7 pLqg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Qe3ZwLvf; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-146099-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146099-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d3-20020ac85ac3000000b0043661d18b41si11122283qtd.507.2024.04.15.19.09.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 19:09:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146099-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Qe3ZwLvf; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-146099-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146099-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E25FD1C20C45 for ; Tue, 16 Apr 2024 02:09:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 023C6F4E7; Tue, 16 Apr 2024 02:08:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="Qe3ZwLvf" Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 39213E56A; Tue, 16 Apr 2024 02:08:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713233337; cv=none; b=TSNHVaVe9cWG1Ch05d9w8IjovpVEwShtjYyL9wSJI0e3LwM5DWqm/XUD+DO9ZX3431fSLyVFPRDY245MfGQ/F/9+R31QQ35fwpJtHgSYfoaMjxupstEmhKwL9h2bme3Sfow9aeg6IcQx2QiwPwnL0LuFXOJXPncrEJpXCeN7MD0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713233337; c=relaxed/simple; bh=Iyj54HUQP+Qsvc+etz0QrWEECprIhcb8cLlp/IDiDQw=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=p5sCrxP/mpgjL8zmAd34HTfSWHo66AgxIU8EE+rBHxKKsoe+W20FAQoHQpAhQS2zcb2p2eVZYBhC+PyTEFASpRUzZwcMTOyiH8SeiqyJ2SbTxGMF523GuSUXDAIf7HHRmHo/HlmqE7qLywOOofLODF1H4wyPy3RYOlB0nPiGA20= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=Qe3ZwLvf; arc=none smtp.client-ip=217.70.183.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 3D23920002; Tue, 16 Apr 2024 02:08:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1713233333; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=b9Egc/Fg8xHLi5Mts732z9c41kzvRH7tFrpKcVjJQOk=; b=Qe3ZwLvftYzkG9UU9XYO9v03X2YD++1fkwyTE+20XSAdL4Liu66/Tv4h8MIIGP/xR5hyj7 yMLjJpgLN3g7IbBGKZPHDvh7a+PXeMXL9uhhm8dt1PE8aosGHTy30XJ2RGq2Eu0dzNNWZj iY/D6LsOHpCxLeO5M5wbT4TkhuQtSK4Zr2Yyglx/J7idyTZ3K+Da3n4t505AI55ip5wQuB 0S98jqVMpA3h43Hpsn9W+IEbU9ZSYdQmg+lU/w64/NwzQP0o/FQHVmuq/9VME/q4kEU1gt RPGk87NmMpkGVklGWyBJE8AGuw69hW+SVgQk8xEzUnpcrzw2qCg5MHR+/DMfpg== Date: Tue, 16 Apr 2024 04:08:46 +0200 From: Luca Ceresoli To: Steven Rostedt Cc: Masami Hiramatsu , Mathieu Desnoyers , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Liam Girdwood , Mark Brown , Thomas Petazzoni Subject: Re: TP_printk() bug with %c, and more? Message-ID: <20240416040846.00de86aa@booty> In-Reply-To: <20240415044431.308f2e09@rorschach.local.home> References: <20240315174900.14418f22@booty> <20240315132146.29edf416@gandalf.local.home> <20240315190312.2bd6a198@booty> <20240315145852.46125ac5@gandalf.local.home> <20240318164307.53c5595f@booty> <20240415044431.308f2e09@rorschach.local.home> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-GND-Sasl: luca.ceresoli@bootlin.com Hello Steven, On Mon, 15 Apr 2024 04:44:30 -0400 Steven Rostedt wrote: > On Mon, 18 Mar 2024 16:43:07 +0100 > Luca Ceresoli wrote: > > > However the arrows are still reversed. > > This requires a kernel change. The problem is that the print fmt has: > > print fmt: "%c%s %s %s %s %s", (int) REC->path_node && (int) REC->path_connect ? '*' : ' ', __get_str(wname), (((REC->path_dir) == SND_SOC_DAPM_DIR_OUT) ? "->" : "<-"), __get_str(pname), (((REC->path_dir) == SND_SOC_DAPM_DIR_OUT) ? "->" : "<-"), __get_str(pnname) > > User space (trace-cmd and perf) have no idea what SND_SOC_DAPM_DIR_OUT > is. The kernel needs to convert that, otherwise the parsing will fail, > or it will default it to zero. Thanks for the insight. I'm definitely trying to fix this based on your hint as soon as I get my hand on a board. Luca -- Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com