[PATCH bpf-next] bpf: Change value of MAX_TAIL_CALL_CNT from 32 to 33

2021-09-08 Thread Tiezhu Yang
32 to 33, then do some small changes of the related code. With this patch, it does not change the current limit, MAX_TAIL_CALL_CNT can reflect the actual max tail call count, and the above failed testcase can be fixed. Signed-off-by: Tiezhu Yang --- arch/arm/net/bpf_jit_32.c | 11 ++- ar

[PATCH bpf-next v2] bpf: Change value of MAX_TAIL_CALL_CNT from 32 to 33

2021-09-10 Thread Tiezhu Yang
archs) and the JIT (all archs except for x86). # uname -m x86_64 # echo 1 > /proc/sys/net/core/bpf_jit_enable # modprobe test_bpf # dmesg | grep -w FAIL Tail call error path, max count reached jited:1 ret 33 != 34 FAIL Signed-off-by: Tiezhu Yang --- v2: -- fix the typos in the commi

Re: [PATCH bpf-next v2] bpf: Change value of MAX_TAIL_CALL_CNT from 32 to 33

2021-09-14 Thread Tiezhu Yang
On 09/14/2021 03:30 PM, Daniel Borkmann wrote: On 9/11/21 3:56 AM, Tiezhu Yang wrote: [...] With this patch, it does not change the current limit 33, MAX_TAIL_CALL_CNT can reflect the actual max tail call count, the tailcall selftests can work well, and also the above failed testcase

[RFC PATCH bpf-next] bpf: Make actual max tail call count as MAX_TAIL_CALL_CNT

2021-09-08 Thread Tiezhu Yang
x count reached jited:1 ret 34 != 33 FAIL with this patch, make the actual max tail call count as MAX_TAIL_CALL_CNT, at the same time, the above failed testcase can be fixed. Signed-off-by: Tiezhu Yang --- Hi all, This is a RFC patch, if I am wrong or I missed something, please let me know, th

Re: [PATCH v2 0/2] kdump: simplify code

2021-12-14 Thread Tiezhu Yang
On 12/13/2021 10:43 PM, Matthew Wilcox wrote: On Mon, Dec 13, 2021 at 08:30:33AM +, David Laight wrote: From: Matthew Wilcox Sent: 12 December 2021 11:48 On Sat, Dec 11, 2021 at 05:53:46PM +, David Laight wrote: From: Tiezhu Yang Sent: 11 December 2021 03:33 v2: -- add

[PATCH v2 1/2] kdump: vmcore: remove copy_to() and add copy_to_user_or_kernel()

2021-12-10 Thread Tiezhu Yang
In arch/*/kernel/crash_dump*.c, there exist many similar code about copy_oldmem_page(), remove copy_to() in fs/proc/vmcore.c and add copy_to_user_or_kernel() in lib/usercopy.c, then we can use copy_to_user_or_kernel() to simplify the related code. Signed-off-by: Tiezhu Yang --- fs/proc/vmcore.c

[PATCH v2 2/2] kdump: crashdump: use copy_to_user_or_kernel() to simplify code

2021-12-10 Thread Tiezhu Yang
Use copy_to_user_or_kernel() to simplify the related code about copy_oldmem_page() in arch/*/kernel/crash_dump*.c files. Signed-off-by: Tiezhu Yang --- arch/arm/kernel/crash_dump.c | 12 +++- arch/arm64/kernel/crash_dump.c | 12 +++- arch/ia64/kernel/crash_dump.c| 12

[PATCH v2 0/2] kdump: simplify code

2021-12-10 Thread Tiezhu Yang
v2: -- add copy_to_user_or_kernel() in lib/usercopy.c -- define userbuf as bool type Tiezhu Yang (2): kdump: vmcore: remove copy_to() and add copy_to_user_or_kernel() kdump: crashdump: use copy_to_user_or_kernel() to simplify code arch/arm/kernel/crash_dump.c | 12 +++- arch

Re: [PATCH 1/2] kdump: vmcore: move copy_to() from vmcore.c to uaccess.h

2021-12-10 Thread Tiezhu Yang
On 12/11/2021 12:59 AM, Andrew Morton wrote: On Fri, 10 Dec 2021 21:36:00 +0800 Tiezhu Yang wrote: In arch/*/kernel/crash_dump*.c, there exist similar code about copy_oldmem_page(), move copy_to() from vmcore.c to uaccess.h, and then we can use copy_to() to simplify the related code

[PATCH 0/2] kdump: simplify code

2021-12-10 Thread Tiezhu Yang
Tiezhu Yang (2): kdump: vmcore: move copy_to() from vmcore.c to uaccess.h kdump: crashdump: use copy_to() to simplify the related code arch/arm/kernel/crash_dump.c | 10 ++ arch/arm64/kernel/crash_dump.c | 10 ++ arch/ia64/kernel/crash_dump.c| 10 -- arch

[PATCH 1/2] kdump: vmcore: move copy_to() from vmcore.c to uaccess.h

2021-12-10 Thread Tiezhu Yang
In arch/*/kernel/crash_dump*.c, there exist similar code about copy_oldmem_page(), move copy_to() from vmcore.c to uaccess.h, and then we can use copy_to() to simplify the related code. Signed-off-by: Tiezhu Yang --- fs/proc/vmcore.c| 14 -- include/linux/uaccess.h | 14

[PATCH 2/2] kdump: crashdump: use copy_to() to simplify the related code

2021-12-10 Thread Tiezhu Yang
Use copy_to() to simplify the related code about copy_oldmem_page() in arch/*/kernel/crash_dump*.c files. Signed-off-by: Tiezhu Yang --- arch/arm/kernel/crash_dump.c | 10 ++ arch/arm64/kernel/crash_dump.c | 10 ++ arch/ia64/kernel/crash_dump.c| 10 -- arch

[PATCH] powerpc: Use "grep -E" instead of "egrep"

2022-11-18 Thread Tiezhu Yang
ep -rwl arch/powerpc` Here are the steps to install the latest grep: wget http://ftp.gnu.org/gnu/grep/grep-3.8.tar.gz tar xf grep-3.8.tar.gz cd grep-3.8 && ./configure && make sudo make install export PATH=/usr/local/bin:$PATH Signed-off-by: Tiezhu Yang --- arch/powerpc

[PATCH] selftests: powerpc: Use "grep -E" instead of "egrep"

2022-11-30 Thread Tiezhu Yang
tests/powerpc` Here are the steps to install the latest grep: wget http://ftp.gnu.org/gnu/grep/grep-3.8.tar.gz tar xf grep-3.8.tar.gz cd grep-3.8 && ./configure && make sudo make install export PATH=/usr/local/bin:$PATH Signed-off-by: Tiezhu Yang --- As Shuah suggested,

Re: [RFC PATCH] asm-generic: Unify uapi bitsperlong.h

2023-06-08 Thread Tiezhu Yang
Hi all, On 05/09/2023 05:37 PM, Arnd Bergmann wrote: On Tue, May 9, 2023, at 09:05, Tiezhu Yang wrote: Now we specify the minimal version of GCC as 5.1 and Clang/LLVM as 11.0.0 in Documentation/process/changes.rst, __CHAR_BIT__ and __SIZEOF_LONG__ are usable, just define __BITS_PER_LONG

Re: [RFC PATCH] asm-generic: Unify uapi bitsperlong.h

2023-06-09 Thread Tiezhu Yang
On 06/08/2023 08:56 PM, Arnd Bergmann wrote: On Thu, Jun 8, 2023, at 09:04, Tiezhu Yang wrote: On 05/09/2023 05:37 PM, Arnd Bergmann wrote: On Tue, May 9, 2023, at 09:05, Tiezhu Yang wrote: I think we are completely safe on the architectures that were added since the linux-3.x days (arm64

[RFC PATCH] asm-generic: Unify uapi bitsperlong.h

2023-05-09 Thread Tiezhu Yang
the arch specific uapi bitsperlong.h which will be generated as arch/*/include/generated/uapi/asm/bitsperlong.h. Suggested-by: Xi Ruoyao Link: https://lore.kernel.org/all/d3e255e4746de44c9903c4433616d44ffcf18d1b.ca...@xry111.site/ Signed-off-by: Tiezhu Yang --- This is based on 6.4-rc1 arch

Re: [PATCH 3/3] tools/perf/arch/powerc: Add get_arch_regnum for powerpc

2024-03-26 Thread Tiezhu Yang
Hi Athira and Namhyung, On 03/09/2024 03:25 PM, Athira Rajeev wrote: The function get_dwarf_regnum() returns a DWARF register number from a register name string. This calls arch specific function get_arch_regnum to return register number for corresponding arch. Add mappings for register name to