Re: [PATCH v4 7/7] selftests/ftrace: add test cases for VFS type "%pd" and "%pD"

2024-01-23 Thread yebin (H)
On 2024/1/24 9:32, Masami Hiramatsu (Google) wrote: On Tue, 23 Jan 2024 17:21:39 +0800 Ye Bin wrote: This patch adds test cases for new print format type "%pd/%pD".The test cases test the following items: 1. Test README if add "%pd/%pD" type; 2. Test "%pd" type for dput(); 3. Test "%pD" typ

Re: [PATCH v4 3/7] tracing/probes: support '%pd' type for print struct dentry's name

2024-01-23 Thread yebin (H)
On 2024/1/23 22:40, Masami Hiramatsu (Google) wrote: On Tue, 23 Jan 2024 17:21:35 +0800 Ye Bin wrote: Similar to '%pd' for printk, use '%pd' for print struct dentry's name. Signed-off-by: Ye Bin --- kernel/trace/trace_kprobe.c | 6 ++ kernel/trace/trace_probe.h | 1 + 2 files cha

Re: [PATCH v4 7/7] selftests/ftrace: add test cases for VFS type "%pd" and "%pD"

2024-01-23 Thread yebin (H)
On 2024/1/24 9:32, Masami Hiramatsu (Google) wrote: On Tue, 23 Jan 2024 17:21:39 +0800 Ye Bin wrote: This patch adds test cases for new print format type "%pd/%pD".The test cases test the following items: 1. Test README if add "%pd/%pD" type; 2. Test "%pd" type for dput(); 3. Test "%pD" typ

Re: [PATCH v2 1/7] string.h: add str_has_suffix() helper for test string ends with specify string

2024-01-22 Thread yebin (H)
On 2024/1/23 0:07, Steven Rostedt wrote: On Mon, 22 Jan 2024 15:40:09 +0800 Ye Bin wrote: str_has_suffix() is test string if ends with specify string. Signed-off-by: Ye Bin --- include/linux/string.h | 20 1 file changed, 20 insertions(+) diff --git a/include/linu

Re: [PATCH 0/3] support '%pd' and '%pD' for print file name

2024-01-19 Thread yebin (H)
On 2024/1/19 22:43, Masami Hiramatsu (Google) wrote: On Fri, 19 Jan 2024 09:38:45 +0800 Ye Bin wrote: During fault locating, the file name needs to be printed based on the dentry/file address. The offset needs to be calculated each time, which is troublesome. Similar to printk, kprobe suppo