Re: TP_printk() bug with %c, and more?
From: Steven Rostedt
Date: Mon Apr 15 2024 - 04:44:43 EST
On Mon, 18 Mar 2024 16:43:07 +0100
Luca Ceresoli <luca.ceresoli@xxxxxxxxxxx> 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