linked list within a kernel probe

2023-01-03 Thread chrishell
Hello out there, I have an issue with a linked list which holds pointers to memory pages for a kprobe. The linked list get initialised but I cannot use it within the kprobe. I use main or head pointer to hold everything in one place: struct kprobe_head { struct list_head*p_mem_

RE: How can I reserve contiguous mem alloc region?

2023-01-03 Thread Chan Kim
Hi, all, I was able to get cma-reserved region by adding CONFIG_DMA_CMA=y. This is the result. Memory: 233708K/1048576K available (3200K kernel code, 386K rwdata, 808K rodata, 7808K init, 105K bss, 28436K reserved, 786432K cma-reserved) Thanks! Chan Kim >-Original Message- >From: Chan Ki