[PATCH v3 1/2] cgroup/rstat: Tracking cgroup-level niced CPU time

2024-09-23 Thread Joshua Hahn
From: Joshua Hahn Cgroup-level CPU statistics currently include time spent on user/system processes, but do not include niced CPU time (despite already being tracked). This patch exposes niced CPU time to the userspace, allowing users to get a better understanding of their hardware limits and

Re: [PATCH net-next v2 0/5] selftests: mptcp: add time per subtests in TAP output

2024-09-09 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (main) by Jakub Kicinski : On Fri, 06 Sep 2024 20:46:06 +0200 you wrote: > Patches here add 'time=ms' in the diagnostic data of the TAP output, > e.g. > > ok 1 - pm_netlink: defaults addr list # time=9ms > >

[PATCH net-next v2 2/5] selftests: mptcp: connect: remote time in TAP output

2024-09-06 Thread Matthieu Baerts (NGI0)
It is now added by the MPTCP lib automatically, see the parent commit. The time in the TAP output might be slightly different from the one displayed before, but that's OK. Reviewed-by: Mat Martineau Signed-off-by: Matthieu Baerts (NGI0) --- v2: - Fixed typo in the commit message (

[PATCH net-next v2 1/5] selftests: mptcp: lib: add time per subtests in TAP output

2024-09-06 Thread Matthieu Baerts (NGI0)
It adds 'time=ms' in the diagnostic data of the TAP output, e.g. ok 1 - pm_netlink: defaults addr list # time=9ms This addition is useful to quickly identify which subtests are taking a longer time than the others, or more than expected. Note that there are no specific formats to

[PATCH net-next v2 0/5] selftests: mptcp: add time per subtests in TAP output

2024-09-06 Thread Matthieu Baerts (NGI0)
Patches here add 'time=ms' in the diagnostic data of the TAP output, e.g. ok 1 - pm_netlink: defaults addr list # time=9ms This addition is useful to quickly identify which subtests are taking a longer time than the others, or more than expected. Note that there are no specific

Re: [PATCH net-next 0/3] selftests: mptcp: add time per subtests in TAP output

2024-09-04 Thread Matthieu Baerts
e >> '#': >> >> ( +# +) > > 👍️ > >> I see you didn't commit the previous modification. I can open a PR if it >> helps. > > I was just playing with the regexps in the interpreter. If you could > send a PR that'd perfect. Sure,

Re: [PATCH net-next 0/3] selftests: mptcp: add time per subtests in TAP output

2024-09-04 Thread Jakub Kicinski
ot;(not )?ok (\d+)( -)? ([^#]*[^ ])( +# )?([^ > > ].*)?$") > > Looks good to me. While at it, we can add a '+' for the spaces after the > '#': > > ( +# +) 👍️ > I see you didn't commit the previous modification. I can open a PR if it >

Re: [PATCH net-next 0/3] selftests: mptcp: add time per subtests in TAP output

2024-09-04 Thread Matthieu Baerts
Hi Jakub, On 04/09/2024 01:22, Jakub Kicinski wrote: > On Mon, 02 Sep 2024 13:13:03 +0200 Matthieu Baerts (NGI0) wrote: >> Patches here add 'time=ms' in the diagnostic data of the TAP output, >> e.g. >> >> ok 1 - pm_netlink: defaults addr list # time=9ms &

Re: [PATCH net-next 2/3] sefltests: mptcp: connect: remote time in TAP output

2024-09-03 Thread Jakub Kicinski
On Mon, 02 Sep 2024 13:13:05 +0200 Matthieu Baerts (NGI0) wrote: > Subject: [PATCH net-next 2/3] sefltests: mptcp: connect: remote time in TAP > output nit: typo in the subject -- pw-bot: cr

Re: [PATCH net-next 0/3] selftests: mptcp: add time per subtests in TAP output

2024-09-03 Thread Jakub Kicinski
On Tue, 3 Sep 2024 16:22:17 -0700 Jakub Kicinski wrote: > (None, '4', ' -', 'mptcp[...] MPTCP', ' # ', 'time=6173ms') > (None, '4', ' -', 'mptcp[...] TC', None, 'P # time=6173ms') Sorry I fumbl

Re: [PATCH net-next 0/3] selftests: mptcp: add time per subtests in TAP output

2024-09-03 Thread Jakub Kicinski
On Mon, 02 Sep 2024 13:13:03 +0200 Matthieu Baerts (NGI0) wrote: > Patches here add 'time=ms' in the diagnostic data of the TAP output, > e.g. > > ok 1 - pm_netlink: defaults addr list # time=9ms Looking closer, this: # ok 3 - mptcp[...] MPTCP # time=7184ms # ok 4 - m

[PATCH v2 2/2] x86/vmware: Fix steal time clock under SEV

2024-08-15 Thread Alexey Makhalov
Shared memory containing steal time counter should be set to decrypted when SEV is active. Co-developed-by: Bo Gan Signed-off-by: Bo Gan Signed-off-by: Alexey Makhalov --- arch/x86/kernel/cpu/vmware.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/arch/x86/kernel

Re: [PATCH 2/2] x86/vmware: Fix steal time clock under SEV

2024-08-15 Thread kernel test robot
-base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Alexey-Makhalov/x86-vmware-Fix-steal-time-clock-under-SEV/20240815-050918 base: tip/x86/vmware patch link: https://lore.ke

Re: [PATCH 2/2] x86/vmware: Fix steal time clock under SEV

2024-08-15 Thread kernel test robot
-base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Alexey-Makhalov/x86-vmware-Fix-steal-time-clock-under-SEV/20240815-050918 base: tip/x86/vmware patch link: https://lore.ke

[PATCH 2/2] x86/vmware: Fix steal time clock under SEV

2024-08-14 Thread Alexey Makhalov
Shared memory containing steal time counter should be set to decrypted when SEV is active. Co-developed-by: Bo Gan Signed-off-by: Bo Gan Signed-off-by: Alexey Makhalov --- arch/x86/kernel/cpu/vmware.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/x86/kernel

Re: [PATCH 1/6] kallsyms: Optimize multiple times of realloc() to one time of malloc()

2024-07-15 Thread Masahiro Yamada
> > However, there generally are around 10+ symbols, which means that > the expansion is generally 10+ times. > > As an optimization, introduce linked list 'sym_list' to associate and > count all symbols, then store them into 'table' at one time. > >

[PATCH v3] ring-buffer: Limit time with disabled interrupts in rb_check_pages()

2024-07-15 Thread Petr Pavlu
uffer->reader_lock. This prevents the check from running concurrently, for example, with a potential reader which can make the list temporarily inconsistent when swapping its old reader page into the buffer. A problem with this approach is that the time when interrupts are disabled is non-deter

Re: [PATCH v2] ring-buffer: Limit time with disabled interrupts in rb_check_pages()

2024-07-11 Thread Steven Rostedt
On Thu, 4 Jul 2024 13:03:47 +0200 Petr Pavlu wrote: > > I'm dumb. What's an "era"? > > I meant it as a calendar era or epoch. The idea was to hint this is > a number that identifies some structural state of the pages list. Maybe > pages_gen ("generation") or another name would be better? Ah,

Re: [PATCH v4 1/2] LoongArch: KVM: Add steal time support in kvm side

2024-07-08 Thread maobibo
: Steal time feature is added here in kvm side, VM can search supported features provided by KVM hypervisor, feature KVM_FEATURE_STEAL_TIME is added here. Like x86, steal time structure is saved in guest memory, one hypercall function KVM_HCALL_FUNC_NOTIFY is added to notify KVM to enable the feature

Re: [PATCH vhost 20/23] vdpa/mlx5: Pre-create hardware VQs at vdpa .dev_add time

2024-07-08 Thread Dragos Tatulea
. > > > > This patch switches to creating all VQs and their associated resources > > at device creation time. The motivation is to reduce the vdpa device > > live migration downtime by moving the expensive operation of creating > > all the hardware VQs and their associated

Re: [PATCH vhost 20/23] vdpa/mlx5: Pre-create hardware VQs at vdpa .dev_add time

2024-07-08 Thread Zhu Yanjun
在 2024/6/17 17:07, Dragos Tatulea 写道: Currently, hardware VQs are created right when the vdpa device gets into DRIVER_OK state. That is easier because most of the VQ state is known by then. This patch switches to creating all VQs and their associated resources at device creation time. The

[PATCH vhost v3 21/24] vdpa/mlx5: Pre-create hardware VQs at vdpa .dev_add time

2024-07-08 Thread Dragos Tatulea
Currently, hardware VQs are created right when the vdpa device gets into DRIVER_OK state. That is easier because most of the VQ state is known by then. This patch switches to creating all VQs and their associated resources at device creation time. The motivation is to reduce the vdpa device live

Re: [PATCH vhost 20/23] vdpa/mlx5: Pre-create hardware VQs at vdpa .dev_add time

2024-07-08 Thread Michael S. Tsirkin
gt; > wrote: > > > > > > > > > > > > > > Currently, hardware VQs are created right when the vdpa device > > > > > > > gets into > > > > > > > DRIVER_OK state. That is easier because most of the VQ state is > >

Re: [PATCH vhost 20/23] vdpa/mlx5: Pre-create hardware VQs at vdpa .dev_add time

2024-07-08 Thread Dragos Tatulea
right when the vdpa device gets > > > > > > into > > > > > > DRIVER_OK state. That is easier because most of the VQ state is > > > > > > known by > > > > > > then. > > > > > > > > > > > >

Re: [PATCH vhost 20/23] vdpa/mlx5: Pre-create hardware VQs at vdpa .dev_add time

2024-07-08 Thread Michael S. Tsirkin
because most of the VQ state is known > > > > > by > > > > > then. > > > > > > > > > > This patch switches to creating all VQs and their associated resources > > > > > at device creation time. The motivation is to reduce the

Re: [PATCH vhost 20/23] vdpa/mlx5: Pre-create hardware VQs at vdpa .dev_add time

2024-07-08 Thread Dragos Tatulea
; > > > > > > > Currently, hardware VQs are created right when the vdpa device gets into > > > > DRIVER_OK state. That is easier because most of the VQ state is known by > > > > then. > > > > > > > > This patch switches to creatin

Re: [PATCH v4 1/2] LoongArch: KVM: Add steal time support in kvm side

2024-07-08 Thread Huacai Chen
Bibo, > >>> > >>> On Fri, May 24, 2024 at 3:38 PM Bibo Mao wrote: > >>>> > >>>> Steal time feature is added here in kvm side, VM can search supported > >>>> features provided by KVM hypervisor, feature KVM_FEATURE_STEAL_TIME > >>&

Re: [PATCH v4 1/2] LoongArch: KVM: Add steal time support in kvm side

2024-07-07 Thread maobibo
On 2024/7/6 下午5:41, Huacai Chen wrote: On Sat, Jul 6, 2024 at 2:59 PM maobibo wrote: Huacai, On 2024/7/6 上午11:00, Huacai Chen wrote: Hi, Bibo, On Fri, May 24, 2024 at 3:38 PM Bibo Mao wrote: Steal time feature is added here in kvm side, VM can search supported features provided by

Re: [PATCH v4 1/2] LoongArch: KVM: Add steal time support in kvm side

2024-07-06 Thread Huacai Chen
On Sat, Jul 6, 2024 at 2:59 PM maobibo wrote: > > Huacai, > > On 2024/7/6 上午11:00, Huacai Chen wrote: > > Hi, Bibo, > > > > On Fri, May 24, 2024 at 3:38 PM Bibo Mao wrote: > >> > >> Steal time feature is added here in kvm side, VM can search su

Re: [PATCH v4 1/2] LoongArch: KVM: Add steal time support in kvm side

2024-07-05 Thread maobibo
Huacai, On 2024/7/6 上午11:00, Huacai Chen wrote: Hi, Bibo, On Fri, May 24, 2024 at 3:38 PM Bibo Mao wrote: Steal time feature is added here in kvm side, VM can search supported features provided by KVM hypervisor, feature KVM_FEATURE_STEAL_TIME is added here. Like x86, steal time structure

Re: [PATCH v4 1/2] LoongArch: KVM: Add steal time support in kvm side

2024-07-05 Thread Huacai Chen
Hi, Bibo, On Fri, May 24, 2024 at 3:38 PM Bibo Mao wrote: > > Steal time feature is added here in kvm side, VM can search supported > features provided by KVM hypervisor, feature KVM_FEATURE_STEAL_TIME > is added here. Like x86, steal time structure is saved in guest memory, >

Re: [PATCH v2] ring-buffer: Limit time with disabled interrupts in rb_check_pages()

2024-07-04 Thread Petr Pavlu
ke the list temporarily inconsistent when swapping its old reader >> page into the buffer. >> >> A problem with this approach is that the time when interrupts are >> disabled is non-deterministic, dependent on the ring buffer size. This >> particularly affects PREEM

Re: [PATCH v2] ring-buffer: Limit time with disabled interrupts in rb_check_pages()

2024-07-03 Thread Steven Rostedt
he buffer. > > A problem with this approach is that the time when interrupts are > disabled is non-deterministic, dependent on the ring buffer size. This > particularly affects PREEMPT_RT because the reader_lock is a raw > spinlock which doesn't become sleepable on PREEMPT_RT kernels.

Re: [PATCH vhost 20/23] vdpa/mlx5: Pre-create hardware VQs at vdpa .dev_add time

2024-07-03 Thread Eugenio Perez Martin
> > > DRIVER_OK state. That is easier because most of the VQ state is known by > > > then. > > > > > > This patch switches to creating all VQs and their associated resources > > > at device creation time. The motivation is to reduce the vdpa device

[PATCH v2] ring-buffer: Limit time with disabled interrupts in rb_check_pages()

2024-07-03 Thread Petr Pavlu
uffer->reader_lock. This prevents the check from running concurrently, for example, with a potential reader which can make the list temporarily inconsistent when swapping its old reader page into the buffer. A problem with this approach is that the time when interrupts are disabled is non-deter

[PATCH vhost v2 21/24] vdpa/mlx5: Pre-create hardware VQs at vdpa .dev_add time

2024-06-26 Thread Dragos Tatulea
Currently, hardware VQs are created right when the vdpa device gets into DRIVER_OK state. That is easier because most of the VQ state is known by then. This patch switches to creating all VQs and their associated resources at device creation time. The motivation is to reduce the vdpa device live

Re: [PATCH vhost 20/23] vdpa/mlx5: Pre-create hardware VQs at vdpa .dev_add time

2024-06-26 Thread Dragos Tatulea
is known by > > then. > > > > This patch switches to creating all VQs and their associated resources > > at device creation time. The motivation is to reduce the vdpa device > > live migration downtime by moving the expensive operation of creating > > all the hardware VQs

Re: [PATCH] ring-buffer: Limit time with disabled interrupts in rb_check_pages()

2024-06-23 Thread Petr Pavlu
uring the check, > a caller typically needs to take cpu_buffer->reader_lock. This prevents > the check from running concurrently with a potential reader which can > make the list temporarily inconsistent when swapping its old reader page > into the buffer. > > A problem is that

[PATCH] ring-buffer: Limit time with disabled interrupts in rb_check_pages()

2024-06-21 Thread Petr Pavlu
uffer->reader_lock. This prevents the check from running concurrently with a potential reader which can make the list temporarily inconsistent when swapping its old reader page into the buffer. A problem is that the time when interrupts are disabled is non-deterministic, dependent on the ring buffer si

Re: [PATCH vhost 20/23] vdpa/mlx5: Pre-create hardware VQs at vdpa .dev_add time

2024-06-19 Thread Eugenio Perez Martin
ted resources > at device creation time. The motivation is to reduce the vdpa device > live migration downtime by moving the expensive operation of creating > all the hardware VQs and their associated resources out of downtime on > the destination VM. > > The VQs are now created in

[PATCH vhost 20/23] vdpa/mlx5: Pre-create hardware VQs at vdpa .dev_add time

2024-06-17 Thread Dragos Tatulea
Currently, hardware VQs are created right when the vdpa device gets into DRIVER_OK state. That is easier because most of the VQ state is known by then. This patch switches to creating all VQs and their associated resources at device creation time. The motivation is to reduce the vdpa device live

[PATCH 1/6] kallsyms: Optimize multiple times of realloc() to one time of malloc()

2024-06-13 Thread Zheng Yejian
hat the expansion is generally 10+ times. As an optimization, introduce linked list 'sym_list' to associate and count all symbols, then store them into 'table' at one time. Signed-off-by: Zheng Yejian --- scripts/kallsyms.c | 33 - 1 file changed,

[PATCH v4 2/2] LoongArch: Add steal time support in guest side

2024-05-24 Thread Bibo Mao
hypervisor to enable steal time. When vcpu is offline, physical address is set as 0 and tells hypervisor to disable steal time. Here is output of vmstat on guest when there is workload on both host and guest. It shows steal time stat information. procs ---memory-- -io -system

[PATCH v4 1/2] LoongArch: KVM: Add steal time support in kvm side

2024-05-24 Thread Bibo Mao
Steal time feature is added here in kvm side, VM can search supported features provided by KVM hypervisor, feature KVM_FEATURE_STEAL_TIME is added here. Like x86, steal time structure is saved in guest memory, one hypercall function KVM_HCALL_FUNC_NOTIFY is added to notify KVM to enable the

[PATCH v4 0/2] LoongArch: Add steal time support

2024-05-24 Thread Bibo Mao
Para-virt feature steal time is added in both kvm and guest kernel side. It is silimar with other architectures, steal time structure comes from guest memory, also pseduo register is used to save/restore base address of steal time structure, so that when vm is migrated, kvm module on target

Re: [PATCH v3 1/2] LoongArch: KVM: Add steal time support in kvm side

2024-05-21 Thread kernel test robot
Hi Bibo, kernel test robot noticed the following build errors: [auto build test ERROR on 3c999d1ae3c75991902a1a7dad0cb62c2a3008b4] url: https://github.com/intel-lab-lkp/linux/commits/Bibo-Mao/LoongArch-KVM-Add-steal-time-support-in-kvm-side/20240521-104902 base

Re: [PATCH v3 2/2] LoongArch: Add steal time support in guest side

2024-05-21 Thread kernel test robot
Hi Bibo, kernel test robot noticed the following build warnings: [auto build test WARNING on 3c999d1ae3c75991902a1a7dad0cb62c2a3008b4] url: https://github.com/intel-lab-lkp/linux/commits/Bibo-Mao/LoongArch-KVM-Add-steal-time-support-in-kvm-side/20240521-104902 base

[PATCH v3 2/2] LoongArch: Add steal time support in guest side

2024-05-20 Thread Bibo Mao
hypervisor to enable steal time. When vcpu is offline, physical address is set as 0 and tells hypervisor to disable steal time. Here is output of vmstat on guest when there is workload on both host and guest. It includes steal time stat information. procs ---memory-- -io

[PATCH v3 0/2] LoongArch: Add steal time support

2024-05-20 Thread Bibo Mao
Para-virt feature steal time is added in both kvm and guest kernel side. It is silimar with other architectures, steal time structure comes from guest memory, also pseduo register is used to save/restore base address of steal time structure, so that vm migration is supported also. --- v2 ... v3

[PATCH v3 1/2] LoongArch: KVM: Add steal time support in kvm side

2024-05-20 Thread Bibo Mao
Steal time feature is added here in kvm side, VM can search supported features provided by KVM hypervisor, feature KVM_FEATURE_STEAL_TIME is added here. Like x86, steal time structure is saved in guest memory, one hypercall function KVM_HCALL_FUNC_NOTIFY is added to notify KVM to enable the

Re: [PATCH v2 2/2] LoongArch: Add steal time support in guest side

2024-04-30 Thread maobibo
pv_enable_steal_time() is called. This function will pass guest physical address of struct kvm_steal_time and tells hypervisor to enable steal time. When vcpu is offline, physical address is set as 0 and tells hypervisor to disable steal time. Here is output of vmstat on guest when there is workload on both

Re: [PATCH v2 2/2] LoongArch: Add steal time support in guest side

2024-04-30 Thread Huacai Chen
() is called. This > function will pass guest physical address of struct kvm_steal_time and > tells hypervisor to enable steal time. When vcpu is offline, physical > address is set as 0 and tells hypervisor to disable steal time. > > Here is output of vmstat on guest when there is work

[PATCH v2 1/2] LoongArch: KVM: Add steal time support in kvm side

2024-04-29 Thread Bibo Mao
Steal time feature is added here in kvm side, VM can search supported features provided by KVM hypervisor, feature KVM_FEATURE_STEAL_TIME is added here. Like x86, steal time structure is saved in guest memory, one hypercall function KVM_HCALL_FUNC_NOTIFY is added to notify KVM to enable the

[PATCH v2 2/2] LoongArch: Add steal time support in guest side

2024-04-29 Thread Bibo Mao
hypervisor to enable steal time. When vcpu is offline, physical address is set as 0 and tells hypervisor to disable steal time. Here is output of vmstat on guest when there is workload on both host and guest. It includes steal time stat information. procs ---memory-- -io

[PATCH v2 0/2] LoongArch: Add steal time support

2024-04-29 Thread Bibo Mao
Para-virt feature steal time is added in both kvm and guest kernel side. It is silimar with other architectures, steal time structure comes from guest memory, also pseduo register is used to save/restore base address of steal time structure, so that vm migration is supported also. --- v2: 1

[PATCH 1/2] LoongArch: KVM: Add steal time support in kvm side

2024-03-26 Thread Bibo Mao
Steal time feature is added here in kvm side, VM can search supported features provided by KVM hypervisor, feature KVM_FEATURE_STEAL_TIME is added here. Like x86, steal time structure is saved in guest memory, one hypercall function KVM_HCALL_FUNC_NOTIFY is added to notify KVM to enable the

[PATCH 2/2] LoongArch: Add steal time support in guest side

2024-03-26 Thread Bibo Mao
hypervisor to enable steal time. When vcpu is offline, physical address is set as 0 and tells hypervisor to disable steal time. Signed-off-by: Bibo Mao --- arch/loongarch/include/asm/paravirt.h | 5 + arch/loongarch/kernel/paravirt.c | 130 ++ arch/loongarch/kernel/time.c

[PATCH 1/2] LoongArch: KVM: Add steal time support in kvm side

2024-03-26 Thread Bibo Mao
Steal time feature is added here in kvm side, VM can search supported features provided by KVM hypervisor, feature KVM_FEATURE_STEAL_TIME is added here. Like x86, steal time structure is saved in guest memory, one hypercall function KVM_HCALL_FUNC_NOTIFY is added to notify KVM to enable the

[PATCH 2/2] LoongArch: Add steal time support in guest side

2024-03-26 Thread Bibo Mao
hypervisor to enable steal time. When vcpu is offline, physical address is set as 0 and tells hypervisor to disable steal time. Signed-off-by: Bibo Mao --- arch/loongarch/include/asm/paravirt.h | 5 + arch/loongarch/kernel/paravirt.c | 130 ++ arch/loongarch/kernel/time.c

[PATCH 0/2] LoongArch: Add steal time support

2024-03-26 Thread Bibo Mao
Para-virt feature steal time is added in both kvm and guest kernel side. It is silimar with other architectures, steal time structure comes from guest memory, also pseduo register is used to save/restore base address of steal time structure, so that vm migration is supported also. Bibo Mao (2

Re: Boot-time dumping of ftrace fuctiongraph buffer

2024-02-02 Thread Ahmad Fatoum
Hello Steve, On 02.02.24 02:46, Steven Rostedt wrote: > On Thu, 1 Feb 2024 13:21:37 +0100 > Ahmad Fatoum wrote: >> For this to be maximally useful, I need to configure this not only at >> boot-time, >> but also dump the ftrace buffer at boot time. Probe deferral can hi

Re: Boot-time dumping of ftrace fuctiongraph buffer

2024-02-02 Thread Ahmad Fatoum
robes = "pci_proc_init" > actions = "traceon" > } > end_event { > probes = "pci_proc_init%return" > actions = "traceoff" > } > } > }

Re: Boot-time dumping of ftrace fuctiongraph buffer

2024-02-01 Thread Google
actions = "traceon" } end_event { probes = "pci_proc_init%return" actions = "traceoff" } } } - Thank you, > > For this to be maximally useful, I need

Re: Boot-time dumping of ftrace fuctiongraph buffer

2024-02-01 Thread Steven Rostedt
ion graph trace > > - See if the last call before (non-devm) cleanup is getting a clock, a GPIO, > a regulator or w/e. > > For this to be maximally useful, I need to configure this not only at > boot-time, > but also dump the ftrace buffer at boot time. Probe deferral can

Boot-time dumping of ftrace fuctiongraph buffer

2024-02-01 Thread Ahmad Fatoum
inted to the console, so I know what I am looking for on the next boot) - Dump the function graph trace - See if the last call before (non-devm) cleanup is getting a clock, a GPIO, a regulator or w/e. For this to be maximally useful, I need to configure this not only at boot-time, but

Re: [PATCH 1/3] init: Declare rodata_enabled and mark_rodata_ro() at all time

2024-01-31 Thread Luis Chamberlain
On Wed, Jan 31, 2024 at 06:53:13AM +, Christophe Leroy wrote: > The problem being identified in commit 677bfb9db8a3 ("module: Don't > ignore errors from set_memory_XX()"), you can keep/re-apply the series > [PATCH 1/3] init: Declare rodata_enabled and mark_rodata

Re: [PATCH 1/3] init: Declare rodata_enabled and mark_rodata_ro() at all time

2024-01-31 Thread Marek Szyprowski
>> D?couvrez pourquoi ceci est important ? >>>>>> https://aka.ms/LearnAboutSenderIdentification ] >>>>>> >>>>>> On Mon, Jan 29, 2024 at 12:09:50PM -0800, Luis Chamberlain wrote: >>>>>>> On Thu, Dec 21, 2023 at 10:02:46AM

Re: [PATCH 1/3] init: Declare rodata_enabled and mark_rodata_ro() at all time

2024-01-31 Thread Christophe Leroy
tSenderIdentification ] >>>>> >>>>> On Mon, Jan 29, 2024 at 12:09:50PM -0800, Luis Chamberlain wrote: >>>>>> On Thu, Dec 21, 2023 at 10:02:46AM +0100, Christophe Leroy wrote: >>>>>>> Declaring rodata_enabled and mark_rodata_

Re: [PATCH 1/3] init: Declare rodata_enabled and mark_rodata_ro() at all time

2024-01-31 Thread Marek Szyprowski
/LearnAboutSenderIdentification ] >>>> >>>> On Mon, Jan 29, 2024 at 12:09:50PM -0800, Luis Chamberlain wrote: >>>>> On Thu, Dec 21, 2023 at 10:02:46AM +0100, Christophe Leroy wrote: >>>>>> Declaring rodata_enabled and mark_rodata_ro() at all

Re: [PATCH 1/3] init: Declare rodata_enabled and mark_rodata_ro() at all time

2024-01-31 Thread Christophe Leroy
9, 2024 at 12:09:50PM -0800, Luis Chamberlain wrote: >>>> On Thu, Dec 21, 2023 at 10:02:46AM +0100, Christophe Leroy wrote: >>>>> Declaring rodata_enabled and mark_rodata_ro() at all time >>>>> helps removing related #ifdefery in C files. >>>&g

Re: [PATCH 1/3] init: Declare rodata_enabled and mark_rodata_ro() at all time

2024-01-30 Thread Christophe Leroy
gt; On Thu, Dec 21, 2023 at 10:02:46AM +0100, Christophe Leroy wrote: >>>>>> Declaring rodata_enabled and mark_rodata_ro() at all time >>>>>> helps removing related #ifdefery in C files. >>>>>> >>>>>> Signed-off-by: Christophe Leroy >

Re: [PATCH 1/3] init: Declare rodata_enabled and mark_rodata_ro() at all time

2024-01-30 Thread Luis Chamberlain
;> pourquoi ceci est important ? > >> https://aka.ms/LearnAboutSenderIdentification ] > >> > >> On Mon, Jan 29, 2024 at 12:09:50PM -0800, Luis Chamberlain wrote: > >>> On Thu, Dec 21, 2023 at 10:02:46AM +0100, Christophe Leroy wrote: > >>>>

Re: [PATCH 1/3] init: Declare rodata_enabled and mark_rodata_ro() at all time

2024-01-30 Thread Marek Szyprowski
On Mon, Jan 29, 2024 at 12:09:50PM -0800, Luis Chamberlain wrote: >>> On Thu, Dec 21, 2023 at 10:02:46AM +0100, Christophe Leroy wrote: >>>> Declaring rodata_enabled and mark_rodata_ro() at all time >>>> helps removing related #ifdefery in C files. >>>

Re: [PATCH 1/3] init: Declare rodata_enabled and mark_rodata_ro() at all time

2024-01-30 Thread Christophe Leroy
n wrote: >> On Thu, Dec 21, 2023 at 10:02:46AM +0100, Christophe Leroy wrote: >>> Declaring rodata_enabled and mark_rodata_ro() at all time >>> helps removing related #ifdefery in C files. >>> >>> Signed-off-by: Christophe Leroy >> >> Very nice

Re: [PATCH 1/3] init: Declare rodata_enabled and mark_rodata_ro() at all time

2024-01-30 Thread Chen-Yu Tsai
Hi, On Mon, Jan 29, 2024 at 12:09:50PM -0800, Luis Chamberlain wrote: > On Thu, Dec 21, 2023 at 10:02:46AM +0100, Christophe Leroy wrote: > > Declaring rodata_enabled and mark_rodata_ro() at all time > > helps removing related #ifdefery in C files. > > > > Sign

Re: [PATCH 1/3] init: Declare rodata_enabled and mark_rodata_ro() at all time

2024-01-29 Thread Luis Chamberlain
On Thu, Dec 21, 2023 at 10:02:46AM +0100, Christophe Leroy wrote: > Declaring rodata_enabled and mark_rodata_ro() at all time > helps removing related #ifdefery in C files. > > Signed-off-by: Christophe Leroy Very nice cleanup, thanks!, applied and pushed Luis

Re: [PATCH 1/3] init: Declare rodata_enabled and mark_rodata_ro() at all time

2023-12-22 Thread Christophe Leroy
Kees >> >> Christophe Leroy writes: >>> Declaring rodata_enabled and mark_rodata_ro() at all time >>> helps removing related #ifdefery in C files. >>> >>> Signed-off-by: Christophe Leroy >>> --- >>> include/linux/init.h |

Re: [PATCH 1/3] init: Declare rodata_enabled and mark_rodata_ro() at all time

2023-12-21 Thread Kees Cook
On December 21, 2023 4:16:56 AM PST, Michael Ellerman wrote: >Cc +Kees > >Christophe Leroy writes: >> Declaring rodata_enabled and mark_rodata_ro() at all time >> helps removing related #ifdefery in C files. >> >> Signed-off-by: Christophe Leroy >

Re: [PATCH 1/3] init: Declare rodata_enabled and mark_rodata_ro() at all time

2023-12-21 Thread Michael Ellerman
Cc +Kees Christophe Leroy writes: > Declaring rodata_enabled and mark_rodata_ro() at all time > helps removing related #ifdefery in C files. > > Signed-off-by: Christophe Leroy > --- > include/linux/init.h | 4 > init/main.c | 21 +++--

[PATCH 1/3] init: Declare rodata_enabled and mark_rodata_ro() at all time

2023-12-21 Thread Christophe Leroy
Declaring rodata_enabled and mark_rodata_ro() at all time helps removing related #ifdefery in C files. Signed-off-by: Christophe Leroy --- include/linux/init.h | 4 init/main.c | 21 +++-- 2 files changed, 7 insertions(+), 18 deletions(-) diff --git a/include

Re: [PATCH RFC 0/4] virtio-net: add tx-hash, rx-tstamp, tx-tstamp and tx-time

2023-12-19 Thread Willem de Bruijn
l series > > > Message-Id: 20210208185558.995292-1-willemdebruijn.ker...@gmail.com > > > Subject: [PATCH RFC v2 0/4] virtio-net: add tx-hash, rx-tstamp, > > > tx-tstamp and tx-time > > > From: Willem de Bruijn > > > > > >

Re: [PATCH RFC 0/4] virtio-net: add tx-hash, rx-tstamp, tx-tstamp and tx-time

2023-12-19 Thread Jason Wang
92-1-willemdebruijn.ker...@gmail.com > > Subject: [PATCH RFC v2 0/4] virtio-net: add tx-hash, rx-tstamp, > > tx-tstamp and tx-time > > From: Willem de Bruijn > > > > RFC for four new features to the virtio network device: > > > > 1. pass tx

Re: [PATCH RFC 0/4] virtio-net: add tx-hash, rx-tstamp, tx-tstamp and tx-time

2023-12-18 Thread Willem de Bruijn
tx-hash, rx-tstamp, > tx-tstamp and tx-time > From: Willem de Bruijn > > RFC for four new features to the virtio network device: > > 1. pass tx flow state to host, for routing + telemetry > 2. pass rx tstamp to guest, for better RTT estimation > 3. pass

[PATCH RFC 4/4] virtio-net: support future packet transmit time

2023-12-18 Thread Steffen Trumtrar
From: Willem de Bruijn Add optional transmit time (SO_TXTIME) offload for virtio-net. The Linux TCP/IP stack tries to avoid bursty transmission and network congestion through pacing: computing an skb delivery time based on congestion information. Userspace protocol implementations can achieve

[PATCH RFC 0/4] virtio-net: add tx-hash, rx-tstamp, tx-tstamp and tx-time

2023-12-18 Thread Steffen Trumtrar
This series tries to pick up the work on the virtio-net timestamping feature from Willem de Bruijn. Original series Message-Id: 20210208185558.995292-1-willemdebruijn.ker...@gmail.com Subject: [PATCH RFC v2 0/4] virtio-net: add tx-hash, rx-tstamp, tx-tstamp and tx-time From

[PATCH 71/87] fs/tracefs: convert to new inode {a,m}time accessors

2023-09-28 Thread Jeff Layton
Signed-off-by: Jeff Layton --- fs/tracefs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/tracefs/inode.c b/fs/tracefs/inode.c index 891653ba9cf3..429603d865a9 100644 --- a/fs/tracefs/inode.c +++ b/fs/tracefs/inode.c @@ -152,7 +152,7 @@ struct inode *tracefs_get_ino

[PATCH v7 2/9] acpi/bus: Set driver_data to NULL every time .add() fails

2023-07-03 Thread Michal Wilczynski
Most drivers set driver_data during .add() callback, but usually they don't set it back to NULL in case of a failure. Set driver_data to NULL in acpi_device_probe() to avoid code duplication. Signed-off-by: Michal Wilczynski --- drivers/acpi/bus.c | 4 +++- 1 file changed, 3 insertions(+), 1 del

[PATCH v6 2/9] acpi/bus: Set driver_data to NULL every time .add() fails

2023-06-30 Thread Michal Wilczynski
Most drivers set driver_data during .add() callback, but usually they don't set it back to NULL in case of a failure. Set driver_data to NULL in acpi_device_probe() to avoid code duplication. Signed-off-by: Michal Wilczynski --- drivers/acpi/bus.c | 4 +++- 1 file changed, 3 insertions(+), 1 del

[PATCH v5 02/10] acpi/bus: Set driver_data to NULL every time .add() fails

2023-06-16 Thread Michal Wilczynski
Most drivers set driver_data during .add() callback, but usually they don't set it back to NULL in case of a failure. Set driver_data to NULL in acpi_device_probe() to avoid code duplication. Signed-off-by: Michal Wilczynski --- drivers/acpi/bus.c | 4 +++- 1 file changed, 3 insertions(+), 1 del

Re: [PATCH v2 5/8] fsdax: dedupe: iter two files at the same time

2022-12-01 Thread Darrick J. Wong
hem called at the same time. > > Signed-off-by: Shiyang Ruan Thank you for adding that explanation, it makes the problem much more obvious. :) Reviewed-by: Darrick J. Wong --D > --- > fs/dax.c | 16 > 1 file changed, 8 insertions(+), 8 deletions(-) > > di

[PATCH v2 5/8] fsdax: dedupe: iter two files at the same time

2022-12-01 Thread Shiyang Ruan
The iomap_iter() on a range of one file may loop more than once. In this case, the inner dst_iter can update its iomap but the outer src_iter can't. This may cause the wrong remapping in filesystem. Let them called at the same time. Signed-off-by: Shiyang Ruan --- fs/dax.c

RE: ** POTENTIAL FRAUD ALERT - RED HAT ** [PATCH v2 1/1] Drivers: hv: vmbus: Increase wait time for VMbus unload

2021-04-20 Thread Michael Kelley
tly. > > * > > -* Wait no more than 10 seconds so that the panic path can't get > > -* hung forever in case the response message isn't seen. > > +* Wait up to 100 seconds since an Azure host must writeback any dirty > > +* data i

Re: ** POTENTIAL FRAUD ALERT - RED HAT ** [PATCH v2 1/1] Drivers: hv: vmbus: Increase wait time for VMbus unload

2021-04-20 Thread Wei Liu
> +* data in its disk cache before the VMbus UNLOAD request will > > +* complete. This flushing has been empirically observed to take up > > +* to 50 seconds in cases with a lot of dirty data, so allow additional > > +* leeway and for inaccuracies in mde

Re: ** POTENTIAL FRAUD ALERT - RED HAT ** [PATCH v2 1/1] Drivers: hv: vmbus: Increase wait time for VMbus unload

2021-04-20 Thread Vitaly Kuznetsov
equest will > + * complete. This flushing has been empirically observed to take up > + * to 50 seconds in cases with a lot of dirty data, so allow additional > + * leeway and for inaccuracies in mdelay(). But eventually time out so > + * that the panic path can&

[PATCH v2 1/1] Drivers: hv: vmbus: Increase wait time for VMbus unload

2021-04-19 Thread Michael Kelley
efore the VMbus UNLOAD request will +* complete. This flushing has been empirically observed to take up +* to 50 seconds in cases with a lot of dirty data, so allow additional +* leeway and for inaccuracies in mdelay(). But eventually time out so +* that the panic

[PATCH v3 07/20] drm/dp: Clarify DP AUX registration time

2021-04-19 Thread Lyude Paul
bridges. So, let's fix this documentation to clarify when the right time to use drm_dp_aux_init() or drm_dp_aux_register() is. Signed-off-by: Lyude Paul --- drivers/gpu/drm/drm_dp_helper.c | 57 + 1 file changed, 37 insertions(+), 20 deletions(-) diff --

[PATCH 1/1] Drivers: hv: vmbus: Increase wait time for VMbus unload

2021-04-19 Thread Michael Kelley
flushing has been empirically observed to take up +* to 50 seconds in cases with a lot of dirty data, so allow additional +* leeway and for inaccuracies in mdelay(). But eventually time out so +* that the panic path can't get hung forever in case the res

[PATCH 5.4 17/73] ASoC: max98373: Added 30ms turn on/off time delay

2021-04-19 Thread Greg Kroah-Hartman
From: Ryan Lee [ Upstream commit 3a27875e91fb9c29de436199d20b33f9413aea77 ] Amp requires 10 ~ 30ms for the power ON and OFF. Added 30ms delay for stability. Signed-off-by: Ryan Lee Link: https://lore.kernel.org/r/20210325033555.29377-2-ryans@maximintegrated.com Signed-off-by: Mark Brown

[PATCH 5.10 021/103] ASoC: max98373: Added 30ms turn on/off time delay

2021-04-19 Thread Greg Kroah-Hartman
From: Ryan Lee [ Upstream commit 3a27875e91fb9c29de436199d20b33f9413aea77 ] Amp requires 10 ~ 30ms for the power ON and OFF. Added 30ms delay for stability. Signed-off-by: Ryan Lee Link: https://lore.kernel.org/r/20210325033555.29377-2-ryans@maximintegrated.com Signed-off-by: Mark Brown

[PATCH 5.11 025/122] ASoC: max98373: Added 30ms turn on/off time delay

2021-04-19 Thread Greg Kroah-Hartman
From: Ryan Lee [ Upstream commit 3a27875e91fb9c29de436199d20b33f9413aea77 ] Amp requires 10 ~ 30ms for the power ON and OFF. Added 30ms delay for stability. Signed-off-by: Ryan Lee Link: https://lore.kernel.org/r/20210325033555.29377-2-ryans@maximintegrated.com Signed-off-by: Mark Brown

  1   2   3   4   5   6   7   8   9   10   >