Admin published on 2023-12-24 included in Kernel Question# mkdir /sys/kernel/config/usb_gadget/haier/functions/ffs.adb mkdir: can't create directory '/sys/kernel/config/usb_gadget/haier/functions/ffs.adb': Device or resource busy Answer-CONFIG_USB_FUNCTIONFS=y +CONFIG_USB_CONFIGFS_F_FS=y
Admin published on 2023-12-24 included in Kernel Questionlinux-4.9.337
configfs_init mkdir: can't create directory '/sys/kernel/config/usb_gadget/haier/functions/ffs.adb': Device or resource busy ln: /sys/kernel/config/usb_gadget/haier/configs/c.1/ffs.adb: No such file or directory [ 2.322098] read descriptors [ 2.325171] read strings [ 2.327919] g_ffs gadget: g_ffs ready [ 2.331723] dwc2 13500000.otg: bound driver g_ffs [ 2.336686] ------------[ cut here ]------------ [ 2.341496] WARNING: CPU: 0 PID: 473 at drivers/usb/dwc2/gadget.c:224 dwc2_hsotg_init_fifo+0xd8/0x1ac [ 2.351060] insufficient fifo memory[ 2.354584] Modules linked in: [ 2.357759] CPU: 0 PID: 473 Comm: adbd Not tainted 4.
Admin published on 2023-12-22 included in Kernel Question./arch/mips/include/asm/uaccess.h: In function ‘eva_kernel_access’: ./arch/mips/include/asm/uaccess.h:91:16: error: implicit declaration of function ‘uaccess_kernel’ [-Werror=implicit-function-declaration] 91 | return uaccess_kernel(); Answer- #include <asm/uaccess.h> + #include <linux/uaccess.
Admin published on 2023-12-22 included in Devtools Question# cachestat Counting cache functions... Output every 1 seconds. /bin/cachestat: line 111: printf: write error: Invalid argument ERROR: tracing these four kernel functions: mark_page_accessed, mark_buffer_dirty, add_to_page_cache_lru and account_page_dirtied (unknown kernel version?). Exiting. Answer# echo "account_page_dirtied" >> set_ftrace_filter sh: write error: Invalid argumentgit log -p mm/page-writeback.c
Downgrade to linux-4.19.302 works
Admin published on 2023-12-21 included in Devtools Question# syscount Tracing... Ctrl-C to end. perf_event_open(..., PERF_FLAG_FD_CLOEXEC) failed with unexpected error 89 (Function not implemented) perf_event_open(..., 0) failed unexpectedly with error 89 (Function not implemented) Error: The sys_perf_event_open() syscall returned with 89 (Function not implemented) for event (raw_syscalls:sys_enter). /bin/dmesg | grep -i perf may provide additional information. COMM COUNT zero-sized data (perf.data), nothing to do! AnswerCONFIG_PERF_EVENTS=y
Admin published on 2023-12-20 included in Devtools Question# syscount Tracing... Ctrl-C to end. Couldn't synthesize bpf events. AnswerCONFIG_BPF_SYSCALL=y