Re: [PATCH v8 2/5] tracing/probes: support '%pD' type for print struct file's name

2024-03-25 Thread Google
On Fri, 22 Mar 2024 14:43:05 +0800 Ye Bin wrote: > As like previous patch, this patch support print type '%pD' for print file's nit: Note that "previous patch" is obscure after it is merged with other patches in other trees/branches. So it should be "As like %pd". Anyway, let me change it. Tha

[PATCH v8 2/5] tracing/probes: support '%pD' type for print struct file's name

2024-03-21 Thread Ye Bin
As like previous patch, this patch support print type '%pD' for print file's name. For example "name=$arg1:%pD" casts the `$arg1` as (struct file*), dereferences the "file.f_path.dentry.d_name.name" field and stores it to "name" argument as a kernel string. Here is an example: [tracing]# echo 'p:te