Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1293907lqp; Mon, 15 Apr 2024 01:45:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVq5V9nhtDY+3hbtUsa65YHj11i9XhfhQr9ad0JEfRHht6BeDvPpvZrH8Nmbb0bXBGeCWqx3IKjoFfpO5T6YWbijW+fDIChaofK8PqXXw== X-Google-Smtp-Source: AGHT+IGSle8IDsQBNZmGQhTw7kEUQWuaYtshIvOICQgdhkEHCaLXYKLpF/SQBhOOJX6+Zy5YkoEI X-Received: by 2002:a05:6358:395:b0:183:f0e8:b632 with SMTP id a21-20020a056358039500b00183f0e8b632mr10404907rwj.11.1713170702753; Mon, 15 Apr 2024 01:45:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713170702; cv=pass; d=google.com; s=arc-20160816; b=UeuSKnj23RQSP7mMpWYZ7CuUxvzWinXBwaGkutilLO48Sk1qG12tpUJN9i9VMb+58t /KSXgU9CXT0kmwKpi6q9n4bKkDKrq7Qsfnw4NGcxJjpCe0g6jiY4meX1AWqPll5DvPi3 tKE3uca16t4lLgEj0Neqdz+FUp6X+I25HnuwP5feCK3NNVb+F41p8wPKDw2PynUWo6gA AchT+yCM7xkwLn4xxPikzrYgzzKWjn0FTOm/5V3efafK194DXWb9q2Hj7HWt4jvbj2MB PwJYkoGZdMkMzCq0QXC8QnA9KnSLpy5LQ9zveseBtpebZok6YwQFpuDZ1HXT/TacpMtz 8uOA== 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 :subject:cc:to:from:date; bh=DBBTnXISGqvnEtKSDNsrMZDg6GcbyuEhLTHRaOSoMII=; fh=HVp5QDp8xfNYci1tVdgFGQS7CNSjgBwzcLNRsBDnku8=; b=0TYHlVFWxIxf4MZPovTobfl2d4HjFOH2Z2XdGlunSpuhkPgWM4rgydtMsYzuilMfQj zkJG/5KnxtoF3ObOz6r+wYa7ONKhSpykFNjONR8vbN1qkN8m0EZuiaB2fAWYD34zxkmJ Q70YbyONiBtSs2+hO6Y0P0Kzjkhx4XdQYTun9Cm+6Of497/bZg1EkWMjGpGAzVFUaZkS 3NeLFaoFu9VZQXsHli1SFq7VXbMgyeeP9oSEIYq62ZSRjzVGA+UyOp9oJW378MEzn7Ga 19fQka5aRcn9w+1SuhRnnA4aut7dH1D3G3TnRFgnTBa3IwFA/Uj1WBgPYIY4PQwWdC4G H10Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-144785-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144785-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q63-20020a634342000000b005d8b2b582dfsi7396290pga.837.2024.04.15.01.45.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 01:45:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144785-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-144785-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144785-linux.lists.archive=gmail.com@vger.kernel.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 921CD285438 for ; Mon, 15 Apr 2024 08:44:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 450B5383B2; Mon, 15 Apr 2024 08:44:36 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 BAF6E241E1; Mon, 15 Apr 2024 08:44:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713170675; cv=none; b=j5d1IK861s/yE/GcI5BhdTGjtLCuYssCoWBl3V0oaWwZ6ZoYC7ZhLekYzhITF2q46vCXdu6RqY1uy0C/p6lL5xcnvLUCSy1tCPdYkKhwEeIAfBHMZ4G7ytuD9ekNX3t9Zj55rBb9MbSCiTLcinKWK0pB9DtygjzOmHMrlb4LkzQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713170675; c=relaxed/simple; bh=DBBTnXISGqvnEtKSDNsrMZDg6GcbyuEhLTHRaOSoMII=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=befL5WANmAjg1fLLu0YaSEuN6RuSgYJ+TiaO6J4r7JfPRJCEdl1I7TYrw+0fH3jRYXjPYNusWwagwtkf4UoxAi3pl5eQIh+y+2IiCuu6krlHF/mFa2n/jng2LCs6IfpoTBYcxpPgjvDGbHtUrKduT6xHnPuV9DMmMyFMSg1kgr8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30D34C113CC; Mon, 15 Apr 2024 08:44:34 +0000 (UTC) Date: Mon, 15 Apr 2024 04:44:30 -0400 From: Steven Rostedt To: Luca Ceresoli 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: <20240415044431.308f2e09@rorschach.local.home> In-Reply-To: <20240318164307.53c5595f@booty> References: <20240315174900.14418f22@booty> <20240315132146.29edf416@gandalf.local.home> <20240315190312.2bd6a198@booty> <20240315145852.46125ac5@gandalf.local.home> <20240318164307.53c5595f@booty> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.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 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. -- Steve