Re: [PATCH] selftests: clone3: Use the capget and capset syscall directly

2024-10-10 Thread zhouyuhang
On 2024/10/10 23:50, Shuah Khan wrote: On 10/10/24 06:16, zhouyuhang wrote: From: zhouyuhang The libcap commit aca076443591 ("Make cap_t operations thread safe.") added a __u8 mutex at the beginning of the struct _cap_struct,it changes the offset of the members in the structure that breaks

Re: [PATCH 6/6] remoteproc: qcom: Enable map/unmap and SHM bridge support

2024-10-10 Thread Dmitry Baryshkov
On Fri, Oct 11, 2024 at 10:35:18AM GMT, Shiraz Hashim wrote: > On Thu, Oct 10, 2024 at 08:57:56AM +0200, neil.armstr...@linaro.org wrote: > > On 08/10/2024 08:21, Mukesh Ojha wrote: > > > On Mon, Oct 07, 2024 at 08:22:39PM +0530, Mukesh Ojha wrote: > > > > On Mon, Oct 07, 2024 at 10:05:08AM +0200,

[PATCH -next] selftests/cgroup: Fix compile error in test_cpu.c

2024-10-10 Thread Xiu Jianfeng
From: Xiu Jianfeng When compiling the cgroup selftests with the following command: make -C tools/testing/selftests/cgroup/ the compiler complains as below: test_cpu.c: In function ‘test_cpucg_nice’: test_cpu.c:284:39: error: incompatible type for argument 2 of ‘hog_cpus_timed’ 284 |

Re: [PATCH v2] selftests: net/rds: add module not found

2024-10-10 Thread Allison Henderson
On Thu, 2024-10-10 at 21:44 +0200, Alessandro Zanni wrote: > This fix solves this error, when calling kselftest with targets > "net/rds": > > The error was found by running tests manually with the command: > make kselftest TARGETS="net/rds" > > The patch also specifies to import ip() function fro

RE: [PATCH net-next v02 1/2] af_packet: allow fanout_add when socket is not RUNNING

2024-10-10 Thread Gur Stavi
> Gur Stavi wrote: > > > Gur Stavi wrote: > > > > > Gur Stavi wrote: > > > > > > > Gur Stavi wrote: > > > > > > > > >> @@ -1846,21 +1846,21 @@ static int fanout_add(struct > sock > > > *sk, > > > > > > > struct fanout_args *args) > > > > > > > > >> err = -EINVAL; > > > > > > > > >> > > > > > >

Re: [PATCH 6/6] remoteproc: qcom: Enable map/unmap and SHM bridge support

2024-10-10 Thread Shiraz Hashim
On Thu, Oct 10, 2024 at 08:57:56AM +0200, neil.armstr...@linaro.org wrote: > On 08/10/2024 08:21, Mukesh Ojha wrote: > > On Mon, Oct 07, 2024 at 08:22:39PM +0530, Mukesh Ojha wrote: > > > On Mon, Oct 07, 2024 at 10:05:08AM +0200, neil.armstr...@linaro.org wrote: > > > > On 04/10/2024 23:23, Mukesh

[PATCH,bpf-next v3 4/4] samples/bpf: remove obsolete tracing related tests

2024-10-10 Thread Daniel T. Lee
The samples/bpf has become outdated and often does not follow up with the latest. This commit removes obsolete tracing-related tests. Specifically, 'test_overhead' is duplicate with selftests (and bench), and 'test_override_return', 'test_probe_write_user' tests are obsolete since they have been r

[PATCH,bpf-next v3 3/4] samples/bpf: remove obsolete cgroup related tests

2024-10-10 Thread Daniel T. Lee
This patch removes the obsolete cgroup related tests. These tests are now redundant because their functionality is already covered by more modern and comprehensive tests under selftests/bpf. The following files are removed: - test_current_task_under_cgroup: tests bpf_current_task_under_cgroup()

[PATCH,bpf-next v3 2/4] selftests/bpf: migrate cgroup sock create test for prohibiting sockets

2024-10-10 Thread Daniel T. Lee
This patch continues the migration and removal process for cgroup sock_create tests to selftests. The test being migrated verifies the ability of cgroup BPF to block the creation of specific types of sockets using a verdict. Specifically, the test denies socket creation when the socket is of type

[PATCH,bpf-next v3 1/4] selftests/bpf: migrate cgroup sock create test for setting iface/mark/prio

2024-10-10 Thread Daniel T. Lee
This patch migrates the old test for cgroup BPF that sets sk_bound_dev_if, mark, and priority when AF_INET{6} sockets are created. The most closely related tests under selftests are 'test_sock' and 'sockopt'. However, these existing tests serve different purposes. 'test_sock' focuses mainly on veri

[PATCH,bpf-next v3 0/4] selftests/bpf: migrate and remove cgroup/tracing related tests

2024-10-10 Thread Daniel T. Lee
The BPF testing framework has evolved significantly over time. However, some legacy tests in the samples/bpf directory have not kept up with these changes. These outdated tests can cause confusion and increase maintenance efforts. This patchset focuses on migrating outdated cgroup and tracing-rela

Re: [PATCH 1/1] selftests: livepatch: add test cases of stack_order sysfs interface

2024-10-10 Thread Josh Poimboeuf
On Fri, Oct 11, 2024 at 09:51:07AM +0800, zhang warden wrote: > > > > On Oct 10, 2024, at 23:51, Josh Poimboeuf wrote: > > > > Maybe add a replace=[true|false] module parameter. > > > > How to do it? > Isn't the way we build modules using make? > How to set this replace value? See for examp

[PATCH,bpf-next v2 4/4] samples/bpf: remove obsolete tracing related tests

2024-10-10 Thread Daniel T. Lee
The samples/bpf has become outdated and often does not follow up with the latest. This commit removes obsolete tracing-related tests. Specifically, 'test_overhead' is duplicate with selftests (and bench), and 'test_override_return', 'test_probe_write_user' tests are obsolete since they have been r

[PATCH,bpf-next v2 3/4] samples/bpf: remove obsolete cgroup related tests

2024-10-10 Thread Daniel T. Lee
This patch removes the obsolete cgroup related tests. These tests are now redundant because their functionality is already covered by more modern and comprehensive tests under selftests/bpf. The following files are removed: - test_current_task_under_cgroup: tests bpf_current_task_under_cgroup()

[PATCH,bpf-next v2 2/4] selftests/bpf: migrate cgroup sock create tests for prohibitig sockets

2024-10-10 Thread Daniel T. Lee
This patch continues the migration and removal process for cgroup sock_create tests to selftests. The test being migrated verifies the ability of cgroup BPF to block the creation of specific types of sockets using a verdict. Specifically, the test denies socket creation when the socket is of type

[PATCH,bpf-next v2 1/4] selftests/bpf: migrate cgroup sock create test for setting iface/mark/prio

2024-10-10 Thread Daniel T. Lee
This patch migrates the old test for cgroup BPF that sets sk_bound_dev_if, mark, and priority when AF_INET{6} sockets are created. The most closely related tests under selftests are 'test_sock' and 'sockopt'. However, these existing tests serve different purposes. 'test_sock' focuses mainly on veri

[PATCH,bpf-next v2 0/4] selftests/bpf: migrate and remove cgroup/tracing related tests

2024-10-10 Thread Daniel T. Lee
The BPF testing framework has evolved significantly over time. However, some legacy tests in the samples/bpf directory have not kept up with these changes. These outdated tests can cause confusion and increase maintenance efforts. This patchset focuses on migrating outdated cgroup and tracing-rela

Re: [PATCH] selftests/bpf: Removed redundant fd after close in bpf_prog_load_log_buf

2024-10-10 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to bpf/bpf-next.git (master) by Andrii Nakryiko : On Wed, 9 Oct 2024 22:57:37 -0700 you wrote: > Removed unnecessary `fd = -1` assignments after closing file descriptors. > because it will be assigned by the function bpf_prog_load().This improves > code readability

Re: [PATCH 1/1] selftests: livepatch: add test cases of stack_order sysfs interface

2024-10-10 Thread zhang warden
> On Oct 10, 2024, at 23:51, Josh Poimboeuf wrote: > > Maybe add a replace=[true|false] module parameter. > How to do it? Isn't the way we build modules using make? How to set this replace value? Regards Wardenjohn

Re: [PATCH bpf-next v3 2/3] selftests/bpf: make xdp_cpumap_attach keep redirect prog attached

2024-10-10 Thread Martin KaFai Lau
On 10/9/24 3:12 AM, Alexis Lothoré (eBPF Foundation) wrote: Current test only checks attach/detach on cpu map type program, and so does not check that it can be properly executed, neither that it redirects correctly. Update the existing test to extend its coverage: - keep the redirected program

Re: [PATCH bpf-next v3 0/3] selftests/bpf: add coverage for xdp_features in test_progs

2024-10-10 Thread patchwork-bot+netdevbpf
Hello: This series was applied to bpf/bpf-next.git (net) by Martin KaFai Lau : On Wed, 09 Oct 2024 12:12:06 +0200 you wrote: > Hello, > this small series aims to increase coverage of xdp features in > test_progs. The initial versions proposed to rework test_xdp_features.sh > to make it fit in tes

Re: [PATCH 3/3] selftests: pidfd: add tests for PIDFD_SELF_*

2024-10-10 Thread Shuah Khan
On 10/10/24 12:15, Lorenzo Stoakes wrote: Add tests to assert that PIDFD_SELF_* correctly refers to the current thread and process. This is only practically meaningful to pidfd_send_signal() and pidfd_getfd(), but also explicitly test that we disallow this feature for setns() where it would make

RE: [PATCH net-next v02 1/2] af_packet: allow fanout_add when socket is not RUNNING

2024-10-10 Thread Willem de Bruijn
Gur Stavi wrote: > > Gur Stavi wrote: > > > > Gur Stavi wrote: > > > > > > Gur Stavi wrote: > > > > > > > >> @@ -1846,21 +1846,21 @@ static int fanout_add(struct sock > > *sk, > > > > > > struct fanout_args *args) > > > > > > > >>err = -EINVAL; > > > > > > > >> > > > > > > > >>spin_

Re: [PATCH net-next v20 01/14] mm: page_frag: add a test module for page_frag

2024-10-10 Thread Shuah Khan
On 10/8/24 21:59, Yunsheng Lin wrote: On 2024/10/9 3:56, Shuah Khan wrote: On 10/8/24 05:20, Yunsheng Lin wrote: The testing is done by ensuring that the fragment allocated from a frag_frag_cache instance is pushed into a ptr_ring instance in a kthread binded to a specified cpu, and a kthread b

[PATCH v2] selftests: net/rds: add module not found

2024-10-10 Thread Alessandro Zanni
This fix solves this error, when calling kselftest with targets "net/rds": The error was found by running tests manually with the command: make kselftest TARGETS="net/rds" The patch also specifies to import ip() function from the utils module. Signed-off-by: Alessandro Zanni --- Notes: v2:

Re: [RFC PATCH 30/39] KVM: guest_memfd: Handle folio preparation for guest_memfd mmap

2024-10-10 Thread Manwaring, Derek
On 2024-10-10 at 16:21+ Patrick Roy wrote: > On Tue, 2024-10-08 at 20:56 +0100, Sean Christopherson wrote: > > Another (slightly crazy) approach would be use protection keys to provide > > the > > security properties that you want, while giving KVM (and userspace) a > > quick-and-easy > > ove

Re: [PATCH] selftests: net: rds: fix module not found

2024-10-10 Thread Alessandro Zanni
On 24/10/09 07:40, Jakub Kicinski wrote: > On Tue, 8 Oct 2024 10:22:53 +0200 Alessandro Zanni wrote: > > This fix solves this error, when calling kselftest with targets "net/rds": > > > > selftests: net/rds: test.py > > Traceback (most recent call last): > > File "tools/testing/selftests/net/rd

[PATCH v2] selftests: drivers: net: fix name not defined

2024-10-10 Thread Alessandro Zanni
This fix solves this error, when calling kselftest with targets "drivers/net": File "tools/testing/selftests/net/lib/py/nsim.py", line 64, in __init__ if e.errno == errno.ENOSPC: NameError: name 'errno' is not defined The error was found by running tests manually with the command: make kselftes

Re: [PATCH] selftests/bpf: Removed redundant variable

2024-10-10 Thread Andrii Nakryiko
On Wed, Oct 9, 2024 at 11:46 PM Zhu Jun wrote: > > The error check is no longer needed for this test case, > simplifying the code. > > Signed-off-by: Zhu Jun > --- > tools/testing/selftests/bpf/prog_tests/signal_pending.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > please add b...

[PATCH 3/3] selftests: pidfd: add tests for PIDFD_SELF_*

2024-10-10 Thread Lorenzo Stoakes
Add tests to assert that PIDFD_SELF_* correctly refers to the current thread and process. This is only practically meaningful to pidfd_send_signal() and pidfd_getfd(), but also explicitly test that we disallow this feature for setns() where it would make no sense. We cannot reasonably wait on our

[PATCH 2/3] pidfd: add PIDFD_SELF* sentinels to refer to own thread/process

2024-10-10 Thread Lorenzo Stoakes
It is useful to be able to utilise pidfd mechanisms to reference the current thread or process (from a userland point of view - thread group leader from the kernel's point of view). Therefore introduce PIDFD_SELF_THREAD to refer to the current thread, and PIDFD_SELF_THREAD_GROUP to refer to the cu

[PATCH 1/3] pidfd: extend pidfd_get_pid() and de-duplicate pid lookup

2024-10-10 Thread Lorenzo Stoakes
The means by which a pid is determined from a pidfd is duplicated, with some callers holding a reference to the (pid)fd, and others explicitly pinning the pid. Introduce __pidfd_get_pid() which abstracts both approaches and provide optional output parameters for file->f_flags and the fd (the latte

[PATCH 0/3] introduce PIDFD_SELF* sentinels

2024-10-10 Thread Lorenzo Stoakes
If you wish to utilise a pidfd interface to refer to the current process or thread it is rather cumbersome, requiring something like: int pidfd = pidfd_open(getpid(), 0 or PIDFD_THREAD); ... close(pidfd); Or the equivalent call opening /proc/self. It is more convenient t

Re: [PATCH] selftests: drivers: net: fix name not defined

2024-10-10 Thread Alessandro Zanni
On 24/10/09 07:32, Jakub Kicinski wrote: > On Wed, 9 Oct 2024 00:01:33 +0200 Alessandro Zanni wrote: > > This fix solves this error, when calling kselftest with targets > > "drivers/net": > > > > File "tools/testing/selftests/net/lib/py/nsim.py", line 64, in __init__ > > if e.errno == errno.EN

Re: (subset) [RFC PATCH 1/2] mfd: 88pm886: add the RTC cell and relevant definitions

2024-10-10 Thread Karel Balej
Lee Jones, 2024-10-10T09:35:19+01:00: > On Thu, 10 Oct 2024, Lee Jones wrote: > > > On Wed, 09 Oct 2024, Karel Balej wrote: > > > > > Lee Jones, 2024-10-09T11:06:43+01:00: > > > > On Fri, 20 Sep 2024 18:12:34 +0200, Karel Balej wrote: > > > > > RTC lives on the base register page of the chip. Add

[PATCH] rcu/nocb: Fix rcuog wake-up from offline softirq

2024-10-10 Thread Frederic Weisbecker
After a CPU has set itself offline and before it eventually calls rcutree_report_cpu_dead(), there are still opportunities for callbacks to be enqueued, for example from a softirq. When that happens on NOCB, the rcuog wake-up is deferred through an IPI to an online CPU in order not to call into the

Re: [RFC PATCH 30/39] KVM: guest_memfd: Handle folio preparation for guest_memfd mmap

2024-10-10 Thread Patrick Roy
On Tue, 2024-10-08 at 20:56 +0100, Sean Christopherson wrote: > On Tue, Oct 08, 2024, Ackerley Tng wrote: >> Patrick Roy writes: >>> For the "non-CoCo with direct map entries removed" VMs that we at AWS >>> are going for, we'd like a VM type with host-controlled in-place >>> conversions which d

RE: [PATCH net-next v02 1/2] af_packet: allow fanout_add when socket is not RUNNING

2024-10-10 Thread Gur Stavi
> Gur Stavi wrote: > > > Gur Stavi wrote: > > > > > Gur Stavi wrote: > > > > > > >> @@ -1846,21 +1846,21 @@ static int fanout_add(struct sock > *sk, > > > > > struct fanout_args *args) > > > > > > >> err = -EINVAL; > > > > > > >> > > > > > > >> spin_lock(&po->bind_lock); > > > > >

Re: [RFC PATCH 26/39] KVM: guest_memfd: Track faultability within a struct kvm_gmem_private

2024-10-10 Thread Peter Xu
On Tue, Sep 10, 2024 at 11:43:57PM +, Ackerley Tng wrote: > The faultability xarray is stored on the inode since faultability is a > property of the guest_memfd's memory contents. > > In this RFC, presence of an entry in the xarray indicates faultable, > but this could be flipped so that prese

Re: [PATCH rcu 12/12] refscale: Add srcu_read_lock_lite() support using "srcu-lite"

2024-10-10 Thread Paul E. McKenney
On Thu, Oct 10, 2024 at 05:38:34PM +0200, Frederic Weisbecker wrote: > Le Wed, Oct 09, 2024 at 11:07:19AM -0700, Paul E. McKenney a écrit : > > This commit creates a new srcu-lite option for the refscale.scale_type > > module parameter that selects srcu_read_lock_lite() and > > srcu_read_unlock_lit

RE: [PATCH net-next v03 1/3] af_packet: allow fanout_add when socket is not RUNNING

2024-10-10 Thread Gur Stavi
> Gur Stavi wrote: > > PACKET socket can retain its fanout membership through link down and up > > and leave a fanout while closed regardless of link state. > > However, socket was forbidden from joining a fanout while it was not > > RUNNING. > > > > This patch allows PACKET socket to join fanout w

Re: [RFC PATCH v1] module: sign with sha512 by default to avoid build errors

2024-10-10 Thread Sami Tolvanen
Hi, On Thu, Oct 10, 2024 at 1:57 AM Thorsten Leemhuis wrote: > > On 10.10.24 10:42, Sedat Dilek wrote: > > On Thu, Oct 10, 2024 at 10:29 AM Sedat Dilek wrote: > >> On Thu, Oct 10, 2024 at 10:19 AM Thorsten Leemhuis > >> wrote: > >>> On 10.10.24 09:00, Thorsten Leemhuis wrote: > >> > >> That wa

Re: [PATCH 1/1] selftests: livepatch: add test cases of stack_order sysfs interface

2024-10-10 Thread Josh Poimboeuf
On Thu, Oct 10, 2024 at 11:11:56PM +0800, zhang warden wrote: > > IIUC, you only need to test the stack order by loading LP modules. In > > this case you could use our currently existing LP testing module for > > that, right? That's what we currently do when testing different sysfs > > attributes.

Re: [PATCH] selftests: clone3: Use the capget and capset syscall directly

2024-10-10 Thread Shuah Khan
On 10/10/24 06:16, zhouyuhang wrote: From: zhouyuhang The libcap commit aca076443591 ("Make cap_t operations thread safe.") added a __u8 mutex at the beginning of the struct _cap_struct,it changes the offset of the members in the structure that breaks the assumption made in the "struct libcap"

Re: [PATCH rcu 12/12] refscale: Add srcu_read_lock_lite() support using "srcu-lite"

2024-10-10 Thread Frederic Weisbecker
Le Wed, Oct 09, 2024 at 11:07:19AM -0700, Paul E. McKenney a écrit : > This commit creates a new srcu-lite option for the refscale.scale_type > module parameter that selects srcu_read_lock_lite() and > srcu_read_unlock_lite(). > > Signed-off-by: Paul E. McKenney > Cc: Alexei Starovoitov > Cc: An

[PATCH V12 02/14] KVM: x86: Fix Intel PT IA32_RTIT_CTL MSR validation

2024-10-10 Thread Adrian Hunter
Fix KVM IA32_RTIT_CTL MSR validation logic so that if RTIT_CTL_TRACEEN bit is cleared, then other bits are allowed to change also. For example, writing 0 to IA32_RTIT_CTL in order to stop tracing, is valid. Fixes: bf8c55d8dc09 ("KVM: x86: Implement Intel PT MSRs read/write emulation") Cc: sta...@v

Re: [PATCH 1/1] selftests: livepatch: add test cases of stack_order sysfs interface

2024-10-10 Thread zhang warden
Hi, Marcos! > On Oct 10, 2024, at 20:31, Marcos Paulo de Souza wrote: > > On Tue, 2024-10-08 at 15:52 +0800, Wardenjohn wrote: >> Add selftest test cases to sysfs attribute 'stack_order'. >> >> Signed-off-by: Wardenjohn >> --- >> .../testing/selftests/livepatch/test-sysfs.sh | 71 >>

[PATCH V12 08/14] perf tools: Add aux_start_paused, aux_pause and aux_resume

2024-10-10 Thread Adrian Hunter
Add struct perf_event_attr members to support pause and resume of AUX area tracing. Signed-off-by: Adrian Hunter Acked-by: Ian Rogers Reviewed-by: Andi Kleen --- tools/include/uapi/linux/perf_event.h | 11 ++- tools/perf/util/perf_event_attr_fprintf.c | 3 +++ 2 files changed, 13

Re: [PATCH v1 0/5] virtio-mem: s390x support

2024-10-10 Thread David Hildenbrand
On 10.10.24 16:41, Heiko Carstens wrote: On Thu, Oct 10, 2024 at 02:31:31PM +0200, David Hildenbrand wrote: On 10.10.24 10:41, Mario Casquero wrote: This series has been successfully tested along with the QEMU's series. Virtio-mem devices could be resized, plugged and unplugged seamlessly. The

Re: [PATCH v1 0/5] virtio-mem: s390x support

2024-10-10 Thread Heiko Carstens
On Thu, Oct 10, 2024 at 02:31:31PM +0200, David Hildenbrand wrote: > On 10.10.24 10:41, Mario Casquero wrote: > > This series has been successfully tested along with the QEMU's series. > > Virtio-mem devices could be resized, plugged and unplugged seamlessly. > > The memory information displayed is

[PATCH V12 14/14] perf intel-pt: Add a test for pause / resume

2024-10-10 Thread Adrian Hunter
Add a simple sub-test to the "Miscellaneous Intel PT testing" test to check pause / resume. Signed-off-by: Adrian Hunter Acked-by: Ian Rogers Reviewed-by: Andi Kleen --- tools/perf/tests/shell/test_intel_pt.sh | 28 + 1 file changed, 28 insertions(+) diff --git a/tools

[PATCH V12 13/14] perf intel-pt: Add documentation for pause / resume

2024-10-10 Thread Adrian Hunter
Document the use of aux-action config term and provide a simple example. Signed-off-by: Adrian Hunter Acked-by: Ian Rogers Reviewed-by: Andi Kleen --- Changes in V5: Added more examples tools/perf/Documentation/perf-intel-pt.txt | 108 + 1 file changed, 108 inse

[PATCH V12 12/14] perf intel-pt: Improve man page format

2024-10-10 Thread Adrian Hunter
Improve format of config terms and section references. Signed-off-by: Adrian Hunter Acked-by: Ian Rogers Reviewed-by: Andi Kleen --- tools/perf/Documentation/perf-intel-pt.txt | 486 +++-- 1 file changed, 267 insertions(+), 219 deletions(-) diff --git a/tools/perf/Documentatio

[PATCH V12 11/14] perf tools: Add missing_features for aux_start_paused, aux_pause, aux_resume

2024-10-10 Thread Adrian Hunter
Display "feature is not supported" error message if aux_start_paused, aux_pause or aux_resume result in a perf_event_open() error. Signed-off-by: Adrian Hunter Acked-by: Ian Rogers Reviewed-by: Andi Kleen --- tools/perf/util/evsel.c | 10 +- tools/perf/util/evsel.h | 1 + 2 files chan

[PATCH V12 10/14] perf tools: Parse aux-action

2024-10-10 Thread Adrian Hunter
Add parsing for aux-action to accept "pause", "resume" or "start-paused" values. "start-paused" is valid only for AUX area events. "pause" and "resume" are valid only for events grouped with an AUX area event as the group leader. However, like with aux-output, the events will be automatically gr

[PATCH V12 09/14] perf tools: Add aux-action config term

2024-10-10 Thread Adrian Hunter
Add a new common config term "aux-action" to use for configuring AUX area trace pause / resume. The value is a string that will be parsed in a subsequent patch. Signed-off-by: Adrian Hunter Acked-by: Ian Rogers Reviewed-by: Andi Kleen --- Changes in V7: Add aux-action to perf_pmu__fo

[PATCH V12 07/14] perf/x86/intel: Do not enable large PEBS for events with aux actions or aux sampling

2024-10-10 Thread Adrian Hunter
Events with aux actions or aux sampling expect the PMI to coincide with the event, which does not happen for large PEBS, so do not enable large PEBS in that case. Signed-off-by: Adrian Hunter Reviewed-by: Andi Kleen --- Changes in V11: Remove definition of has_aux_action() because it h

[PATCH V12 06/14] perf/x86/intel/pt: Add support for pause / resume

2024-10-10 Thread Adrian Hunter
Prevent tracing to start if aux_paused. Implement support for PERF_EF_PAUSE / PERF_EF_RESUME. When aux_paused, stop tracing. When not aux_paused, only start tracing if it isn't currently meant to be stopped. Signed-off-by: Adrian Hunter Reviewed-by: Andi Kleen --- Changes in V12: Reba

RE: [PATCH net-next v02 1/2] af_packet: allow fanout_add when socket is not RUNNING

2024-10-10 Thread Willem de Bruijn
Gur Stavi wrote: > > Gur Stavi wrote: > > > > Gur Stavi wrote: > > > > > >> @@ -1846,21 +1846,21 @@ static int fanout_add(struct sock *sk, > > > > struct fanout_args *args) > > > > > >>err = -EINVAL; > > > > > >> > > > > > >>spin_lock(&po->bind_lock); > > > > > >> - if (packet_sock_flag(po

[PATCH V12 05/14] perf/core: Add aux_pause, aux_resume, aux_start_paused

2024-10-10 Thread Adrian Hunter
Hardware traces, such as instruction traces, can produce a vast amount of trace data, so being able to reduce tracing to more specific circumstances can be useful. The ability to pause or resume tracing when another event happens, can do that. Add ability for an event to "pause" or "resume" AUX a

[PATCH V12 04/14] KVM: selftests: Add guest Intel PT test

2024-10-10 Thread Adrian Hunter
Add a test that starts Intel PT traces on host and guest. The test requires support for Intel PT and having Host/Guest mode enabled i.e. kvm_intel module parameter pt_mode=1. Signed-off-by: Adrian Hunter --- tools/testing/selftests/kvm/Makefile | 1 + .../selftests/kvm/include/x86_64/

[PATCH V12 03/14] KVM: x86: Fix Intel PT Host/Guest mode when host tracing also

2024-10-10 Thread Adrian Hunter
Ensure Intel PT tracing is disabled before VM-Entry in Intel PT Host/Guest mode. Intel PT has 2 modes for tracing virtual machines. The default is System mode whereby host and guest output to the host trace buffer. The other is Host/Guest mode whereby host and guest output to their own buffers. Ho

[PATCH V12 01/14] perf/x86/intel/pt: Fix buffer full but size is 0 case

2024-10-10 Thread Adrian Hunter
If the trace data buffer becomes full, a truncated flag [T] is reported in PERF_RECORD_AUX. In some cases, the size reported is 0, even though data must have been added to make the buffer full. That happens when the buffer fills up from empty to full before the Intel PT driver has updated the buf

[PATCH V12 00/14] perf/core: Add ability for an event to "pause" or "resume" AUX area tracing

2024-10-10 Thread Adrian Hunter
Hi Note for V12: There was a small conflict between the Intel PT changes in "KVM: x86: Fix Intel PT Host/Guest mode when host tracing" and the changes in this patch set, so I have put the patch sets together, along with outstanding fix "perf/x86/intel/pt: Fix buffer

Re: [PATCH 3/3] rcu: Report callbacks enqueued on offline CPU blind spot

2024-10-10 Thread Joel Fernandes
On Wed, Oct 9, 2024 at 11:13 AM Paul E. McKenney wrote: > > On Tue, Oct 08, 2024 at 07:03:50PM -0700, Paul E. McKenney wrote: > > On Wed, Oct 02, 2024 at 05:00:03PM +0200, Frederic Weisbecker wrote: > > > Le Wed, Oct 02, 2024 at 04:57:38PM +0200, Frederic Weisbecker a écrit : > > > > Callbacks enq

Re: [PATCH net-next v03 1/3] af_packet: allow fanout_add when socket is not RUNNING

2024-10-10 Thread Willem de Bruijn
Gur Stavi wrote: > PACKET socket can retain its fanout membership through link down and up > and leave a fanout while closed regardless of link state. > However, socket was forbidden from joining a fanout while it was not > RUNNING. > > This patch allows PACKET socket to join fanout while not RUNN

Re: [PATCH 1/3] rcu/nocb: Use switch/case on NOCB timer state machine

2024-10-10 Thread Frederic Weisbecker
Le Thu, Oct 10, 2024 at 01:16:41AM -0700, Boqun Feng a écrit : > On Wed, Oct 02, 2024 at 04:57:36PM +0200, Frederic Weisbecker wrote: > > It's more convenient to benefit from the fallthrough feature of > > switch / case to handle the timer state machine. Also a new state is > > about to be added th

Re: [PATCH 1/1] selftests: livepatch: add test cases of stack_order sysfs interface

2024-10-10 Thread Marcos Paulo de Souza
On Tue, 2024-10-08 at 15:52 +0800, Wardenjohn wrote: > Add selftest test cases to sysfs attribute 'stack_order'. > > Signed-off-by: Wardenjohn > --- >  .../testing/selftests/livepatch/test-sysfs.sh | 71 > +++ >  .../selftests/livepatch/test_modules/Makefile |  5 +- >  .../test_klp

Re: [PATCH v1 0/5] virtio-mem: s390x support

2024-10-10 Thread David Hildenbrand
On 10.10.24 10:41, Mario Casquero wrote: This series has been successfully tested along with the QEMU's series. Virtio-mem devices could be resized, plugged and unplugged seamlessly. The memory information displayed is correct and reboot doesn't cause any issue. Tested-by: Mario Casquero Than

[PATCH] selftests: clone3: Use the capget and capset syscall directly

2024-10-10 Thread zhouyuhang
From: zhouyuhang The libcap commit aca076443591 ("Make cap_t operations thread safe.") added a __u8 mutex at the beginning of the struct _cap_struct,it changes the offset of the members in the structure that breaks the assumption made in the "struct libcap" definition in clone3_cap_checkpoint_re

RE: [PATCH net-next v02 1/2] af_packet: allow fanout_add when socket is not RUNNING

2024-10-10 Thread Gur Stavi
> I realized another possible problem. We should consider adding ifindex > Field to struct packet_fanout to be used for lookup of an existing match. > There is little sense to bind sockets to different interfaces and then > put them in the same fanout group. > If you agree, I can prepare a separate

RE: [PATCH net-next v03 1/3] af_packet: allow fanout_add when socket is not RUNNING

2024-10-10 Thread Gur Stavi
> Subject: [PATCH net-next v03 1/3] af_packet: allow fanout_add when socket > is not RUNNING > > PACKET socket can retain its fanout membership through link down and up > and leave a fanout while closed regardless of link state. > However, socket was forbidden from joining a fanout while it was no

[PATCH net-next v03 3/3] selftests: net/psock_fanout: unbound socket fanout

2024-10-10 Thread Gur Stavi
Add a test that validates that an unbound packet socket cannot create/join a fanout group. Signed-off-by: Gur Stavi --- tools/testing/selftests/net/psock_fanout.c | 36 ++ 1 file changed, 36 insertions(+) diff --git a/tools/testing/selftests/net/psock_fanout.c b/tools/testi

[PATCH net-next v03 2/3] selftests: net/psock_fanout: socket joins fanout when link is down

2024-10-10 Thread Gur Stavi
Modify test_control_group to have toggle parameter. When toggle is non-zero, loopback device will be set down for the initialization of fd[1] which is still expected to successfully join the fanout. Signed-off-by: Gur Stavi --- tools/testing/selftests/net/psock_fanout.c | 42

[PATCH net-next v03 1/3] af_packet: allow fanout_add when socket is not RUNNING

2024-10-10 Thread Gur Stavi
PACKET socket can retain its fanout membership through link down and up and leave a fanout while closed regardless of link state. However, socket was forbidden from joining a fanout while it was not RUNNING. This patch allows PACKET socket to join fanout while not RUNNING. The previous test for R

[PATCH net-next v03 0/3] net: af_packet: allow joining a fanout when link is down

2024-10-10 Thread Gur Stavi
PACKET socket can retain its fanout membership through link down and up and leave a fanout while closed regardless of link state. However, socket was forbidden from joining a fanout while it was not RUNNING. This scenario was identified while studying DPDK pmd_af_packet_drv. Since sockets are only

Re: (subset) [PATCH RFC v3 03/10] openat2: explicitly return -E2BIG for (usize > PAGE_SIZE)

2024-10-10 Thread Christian Brauner
On Thu, 10 Oct 2024 07:40:36 +1100, Aleksa Sarai wrote: > While we do currently return -EFAULT in this case, it seems prudent to > follow the behaviour of other syscalls like clone3. It seems quite > unlikely that anyone depends on this error code being EFAULT, but we can > always revert this if it

Re: [RFC PATCH v1] module: sign with sha512 by default to avoid build errors

2024-10-10 Thread Sedat Dilek
On Thu, Oct 10, 2024 at 10:57 AM Thorsten Leemhuis wrote: > > On 10.10.24 10:42, Sedat Dilek wrote: > > On Thu, Oct 10, 2024 at 10:29 AM Sedat Dilek wrote: > >> On Thu, Oct 10, 2024 at 10:19 AM Thorsten Leemhuis > >> wrote: > >>> On 10.10.24 09:00, Thorsten Leemhuis wrote: > >> > >> That was wr

Re: [RFC PATCH v1] module: sign with sha512 by default to avoid build errors

2024-10-10 Thread Sedat Dilek
On Thu, Oct 10, 2024 at 10:57 AM Thorsten Leemhuis wrote: > > On 10.10.24 10:42, Sedat Dilek wrote: > > On Thu, Oct 10, 2024 at 10:29 AM Sedat Dilek wrote: > >> On Thu, Oct 10, 2024 at 10:19 AM Thorsten Leemhuis > >> wrote: > >>> On 10.10.24 09:00, Thorsten Leemhuis wrote: > >> > >> That was wr

Re: [RFC PATCH v1] module: sign with sha512 by default to avoid build errors

2024-10-10 Thread Thorsten Leemhuis
On 10.10.24 10:42, Sedat Dilek wrote: > On Thu, Oct 10, 2024 at 10:29 AM Sedat Dilek wrote: >> On Thu, Oct 10, 2024 at 10:19 AM Thorsten Leemhuis >> wrote: >>> On 10.10.24 09:00, Thorsten Leemhuis wrote: >> >> That was wrong in the original code which you moved: >> >> +config MODULE_SIG_SHA384 >

Re: [RFC PATCH v1] module: sign with sha512 by default to avoid build errors

2024-10-10 Thread Sedat Dilek
On Thu, Oct 10, 2024 at 10:29 AM Sedat Dilek wrote: > > On Thu, Oct 10, 2024 at 10:19 AM Thorsten Leemhuis > wrote: > > > > On 10.10.24 09:00, Thorsten Leemhuis wrote: > > > Avoid build errors with allmodconfig on Fedora Linux 41+ by reordering > > > the Kconfig choices so modules are signed wit

Re: [PATCH v1 0/5] virtio-mem: s390x support

2024-10-10 Thread Mario Casquero
This series has been successfully tested along with the QEMU's series. Virtio-mem devices could be resized, plugged and unplugged seamlessly. The memory information displayed is correct and reboot doesn't cause any issue. Tested-by: Mario Casquero On Tue, Sep 10, 2024 at 9:16 PM David Hildenbran

Re: (subset) [RFC PATCH 1/2] mfd: 88pm886: add the RTC cell and relevant definitions

2024-10-10 Thread Lee Jones
On Wed, 09 Oct 2024, Lee Jones wrote: > On Fri, 20 Sep 2024 18:12:34 +0200, Karel Balej wrote: > > RTC lives on the base register page of the chip. Add definitions of the > > registers needed for a basic set/read time functionality. > > > > > > Applied, thanks! > > [1/2] mfd: 88pm886: add the

Re: (subset) [RFC PATCH 1/2] mfd: 88pm886: add the RTC cell and relevant definitions

2024-10-10 Thread Lee Jones
On Thu, 10 Oct 2024, Lee Jones wrote: > On Wed, 09 Oct 2024, Karel Balej wrote: > > > Lee Jones, 2024-10-09T11:06:43+01:00: > > > On Fri, 20 Sep 2024 18:12:34 +0200, Karel Balej wrote: > > > > RTC lives on the base register page of the chip. Add definitions of the > > > > registers needed for a b

Re: [PATCH 1/6] dt-bindings: remoteproc: qcom,pas-common: Introduce iommus and qcom,devmem property

2024-10-10 Thread Shiraz Hashim
On Thu, Oct 10, 2024 at 09:15:59AM +0200, Krzysztof Kozlowski wrote: > On 09/10/2024 16:04, Shiraz Hashim wrote: > > On Mon, Oct 07, 2024 at 06:25:01PM +0200, Dmitry Baryshkov wrote: > >> On Mon, 7 Oct 2024 at 17:35, Mukesh Ojha wrote: > >>> > >>> On Sun, Oct 06, 2024 at 10:38:01PM +0300, Dmitry B

Re: (subset) [RFC PATCH 1/2] mfd: 88pm886: add the RTC cell and relevant definitions

2024-10-10 Thread Lee Jones
On Wed, 09 Oct 2024, Karel Balej wrote: > Lee Jones, 2024-10-09T11:06:43+01:00: > > On Fri, 20 Sep 2024 18:12:34 +0200, Karel Balej wrote: > > > RTC lives on the base register page of the chip. Add definitions of the > > > registers needed for a basic set/read time functionality. > > > > > > > >

Re: [RFC PATCH v1] module: sign with sha512 by default to avoid build errors

2024-10-10 Thread Sedat Dilek
On Thu, Oct 10, 2024 at 10:19 AM Thorsten Leemhuis wrote: > > On 10.10.24 09:00, Thorsten Leemhuis wrote: > > Avoid build errors with allmodconfig on Fedora Linux 41+ by reordering > > the Kconfig choices so modules are signed with sha512 by default. That > > way sha1 will be avoided, which before

Re: [PATCH v3] virtio: Make vring_new_virtqueue support for packed vring

2024-10-10 Thread Stefano Garzarella
On Wed, Oct 09, 2024 at 11:34:30PM GMT, huangwenyu1...@gmail.com wrote: From: Wenyu Huang It used for testing in tools/virtio/vringh_test.c. If vring_new_virtqueue supports packed vring, we can add support for packed vring to vringh and test it. Are you also working on that changes? Signed

Re: [PATCH 1/3] rcu/nocb: Use switch/case on NOCB timer state machine

2024-10-10 Thread Boqun Feng
On Wed, Oct 02, 2024 at 04:57:36PM +0200, Frederic Weisbecker wrote: > It's more convenient to benefit from the fallthrough feature of > switch / case to handle the timer state machine. Also a new state is > about to be added that will take advantage of it. > > No intended functional change. > >

Re: [PATCH] selftests: drivers: net: fix name not defined

2024-10-10 Thread Petr Machata
Alessandro Zanni writes: > This fix solves this error, when calling kselftest with targets "drivers/net": > > File "tools/testing/selftests/net/lib/py/nsim.py", line 64, in __init__ > if e.errno == errno.ENOSPC: > NameError: name 'errno' is not defined > > The module errno makes available sta

[PATCH] selftests: timers: Remove unneeded semicolon

2024-10-10 Thread Chen Ni
Remove unnecessary semicolons reported by Coccinelle/coccicheck and the semantic patch at scripts/coccinelle/misc/semicolon.cocci. Signed-off-by: Chen Ni --- tools/testing/selftests/timers/set-timer-lat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests

Re: [PATCH 1/6] dt-bindings: remoteproc: qcom,pas-common: Introduce iommus and qcom,devmem property

2024-10-10 Thread Krzysztof Kozlowski
On 09/10/2024 16:04, Shiraz Hashim wrote: > On Mon, Oct 07, 2024 at 06:25:01PM +0200, Dmitry Baryshkov wrote: >> On Mon, 7 Oct 2024 at 17:35, Mukesh Ojha wrote: >>> >>> On Sun, Oct 06, 2024 at 10:38:01PM +0300, Dmitry Baryshkov wrote: On Sat, Oct 05, 2024 at 02:53:54AM GMT, Mukesh Ojha wrote:

Re: [RFC PATCH v1] module: sign with sha512 by default to avoid build errors

2024-10-10 Thread Thorsten Leemhuis
On 10.10.24 09:00, Thorsten Leemhuis wrote: > Avoid build errors with allmodconfig on Fedora Linux 41+ by reordering > the Kconfig choices so modules are signed with sha512 by default. That > way sha1 will be avoided, which beforehand was chosen by default on > x86_64 when running allmodconfig -- w

RE: [PATCH net-next v02 1/2] af_packet: allow fanout_add when socket is not RUNNING

2024-10-10 Thread Gur Stavi
> Gur Stavi wrote: > > > Gur Stavi wrote: > > > > >> @@ -1846,21 +1846,21 @@ static int fanout_add(struct sock *sk, > > > struct fanout_args *args) > > > > >> err = -EINVAL; > > > > >> > > > > >> spin_lock(&po->bind_lock); > > > > >> -if (packet_sock_flag(po, PACKET_SOCK_RUNNING) && >

[RFC PATCH v1] module: sign with sha512 by default to avoid build errors

2024-10-10 Thread Thorsten Leemhuis
Avoid build errors with allmodconfig on Fedora Linux 41+ by reordering the Kconfig choices so modules are signed with sha512 by default. That way sha1 will be avoided, which beforehand was chosen by default on x86_64 when running allmodconfig -- which on the latest Fedora leads to the following bui