[PATCH v2 5/7] tracing: add new type "%pd/%pD" in readme_msg[]

2024-01-21 Thread Ye Bin
Signed-off-by: Ye Bin --- kernel/trace/trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 2a7c6fd934e9..13197d3b86bd 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -5745,7 +5745,7 @@ static const char

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

2024-01-21 Thread Ye Bin
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" type for vfs_read(); Signed-off-by: Ye Bin --- .../ftrace/test.d/kprobe/kprobe_args_vfs.tc | 79

[PATCH v2 4/7] tracing/probes: support '%pD' type for print struct file's name

2024-01-21 Thread Ye Bin
Similar to '%pD' for printk, use '%pD' for print struct file's name. Signed-off-by: Ye Bin --- kernel/trace/trace_probe.c | 41 -- 1 file changed, 26 insertions(+), 15 deletions(-) diff --git a/kernel/trace/trace_probe.c b/kernel/trace/trace_probe.c index

[PATCH v2 6/7] Documentation: tracing: add new type '%pd' and '%pD' for kprobe

2024-01-21 Thread Ye Bin
Similar to printk() '%pd' is for fetch dentry's name from struct dentry's pointer, and '%pD' is for fetch file's name from struct file's pointer. Signed-off-by: Ye Bin --- Documentation/trace/kprobetrace.rst | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git

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

2024-01-21 Thread Ye Bin
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 changed, 7 insertions(+) diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c index

[PATCH v2 2/7] tracing/probes: add traceprobe_expand_dentry_args() helper

2024-01-21 Thread Ye Bin
Add traceprobe_expand_dentry_args() to expand dentry args. this API is prepare to support "%pd" print format for kprobe. Signed-off-by: Ye Bin --- kernel/trace/trace_probe.c | 34 ++ kernel/trace/trace_probe.h | 2 ++ 2 files changed, 36 insertions(+) diff

[PATCH v2 0/7] support '%pd' and '%pD' for print file name

2024-01-21 Thread Ye Bin
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 supports printing file names for dentry/file addresses. Diff v2 vs v1: 1. Use "%pd/%pD" print format instead of

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

2024-01-21 Thread Ye Bin
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/linux/string.h b/include/linux/string.h index 433c207a01da..e47e9597af27 100644 ---

[PATCH] percpu: improve percpu_alloc_percpu_fail event trace

2024-01-21 Thread George Guo
From: George Guo Add do_warn, warn_limit fields to the output of the percpu_alloc_percpu_fail ftrace event. This is required to percpu_alloc failed with no warning showing. Signed-off-by: George Guo --- include/trace/events/percpu.h | 22 ++ mm/percpu.c

Re: [PATCH net] ipvs: Simplify the allocation of ip_vs_conn slab caches

2024-01-21 Thread Kunwu Chan
On 2024/1/19 23:20, Simon Horman wrote: On Thu, Jan 18, 2024 at 10:22:05AM +0800, Kunwu Chan wrote: Hi Simon, Thanks for your reply. On 2024/1/17 17:29, Simon Horman wrote: On Wed, Jan 17, 2024 at 03:20:45PM +0800, Kunwu Chan wrote: Use the new KMEM_CACHE() macro instead of direct

Re: [PATCH] block: Add ioprio to block_rq tracepoint

2024-01-21 Thread dongliang cui
Hi, Can this submission be uploaded,or is there anything that needs to be modified? On Tue, Dec 26, 2023 at 10:10 AM Dongliang Cui wrote: > > Sometimes we need to track the processing order of > requests with ioprio set, especially when using > mq-deadline. So the ioprio of request can be

Re: [PATCH V1] vdpa_sim: reset must not run

2024-01-21 Thread Jason Wang
On Thu, Jan 18, 2024 at 3:23 AM Steve Sistare wrote: > > vdpasim_do_reset sets running to true, which is wrong, as it allows > vdpasim_kick_vq to post work requests before the device has been > configured. To fix, do not set running until VIRTIO_CONFIG_S_FEATURES_OK > is set. > > Fixes:

Re: [RFC V1 00/13] vdpa live update

2024-01-21 Thread Jason Wang
On Thu, Jan 18, 2024 at 4:32 AM Steven Sistare wrote: > > On 1/10/2024 9:55 PM, Jason Wang wrote: > > On Thu, Jan 11, 2024 at 4:40 AM Steve Sistare > > wrote: > >> > >> Live update is a technique wherein an application saves its state, exec's > >> to an updated version of itself, and restores

Re: [RFC V1 05/13] vhost-vdpa: VHOST_IOTLB_REMAP

2024-01-21 Thread Jason Wang
On Thu, Jan 18, 2024 at 4:32 AM Steven Sistare wrote: > > On 1/10/2024 10:08 PM, Jason Wang wrote: > > On Thu, Jan 11, 2024 at 4:40 AM Steve Sistare > > wrote: > >> > >> When device ownership is passed to a new process via VHOST_NEW_OWNER, > >> some devices need to know the new userland

WARNING in depot_fetch_stack

2024-01-21 Thread Ubisectech Sirius
Hello. We are Ubisectech Sirius Team, the vulnerability lab of China ValiantSec. Recently, our team has discovered a issue in Linux kernel 6.7.0-g052d534373b7. Attached to the email were a POC file of the issue. Stack dump: [ 154.711833][ T8003] [ cut here ] [

Re: Re: Re: EEVDF/vhost regression (bisected to 86bfbb7ce4f6 sched/fair: Add lag based placement)

2024-01-21 Thread Michael S. Tsirkin
On Mon, Jan 08, 2024 at 02:13:25PM +0100, Tobias Huschle wrote: > On Thu, Dec 14, 2023 at 02:14:59AM -0500, Michael S. Tsirkin wrote: > > > > Peter, would appreciate feedback on this. When is cond_resched() > > insufficient to give up the CPU? Should > > Documentation/kernel-hacking/hacking.rst

[PATCH] ARM: dts: qcom: msm8926-htc-memul: Add rmtfs memory node

2024-01-21 Thread Luca Weiss
reg = <0x0ff0 0x170>; no-map; }; }; --- base-commit: ad5c60d66016e544c51ed98635a74073f761f45d change-id: 20240121-memul-rmtfs-9aa9b54f200a Best regards, -- Luca Weiss

[PATCH] ARM: dts: qcom: apq8026-lg-lenok: Add vibrator support

2024-01-21 Thread Luca Weiss
hostwake_default_state: wlan-hostwake-default-state { pins = "gpio37"; function = "gpio"; --- base-commit: ad5c60d66016e544c51ed98635a74073f761f45d change-id: 20240121-lenok-vibrator-ce5b1734e2bb Best regards, -- Luca Weiss