Hi Tom, thank you for your support.
in my example, I used a spin_lock(&sl) for blocking traversing the list,
despite this function does nothing but reading or traversing the linked
list. No adding or removing is done within the kprobe function.
The other function called _kprobe_setup_cache_eleme
hello Billie, thank you for your support. As you can see I have 2
different structures. The first one is defined for a global structure,
which holds all information which I need within the kprobe (called
kprobe_head). Then I have another structure (called kprobe_mem_cache),
which is defined to
kernel oops or even kernel panics
Hope there is someone who can give me a hint.
Thanks in advance
BR /Christian
Am 03.01.23 um 19:52 schrieb 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
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_
I got it. The correct way to pull out a struct from the kfifo, could be:
rc = kfifo_out(&pfops->mymod_fifo, &r_cache1, sizeof(struct
mymod_data_pkt));
BR Christian
hello, Im struggle with a simple kfifo. I try to do it dynamicly. For
the sake of simplicity I changed the code in a way that
hello, Im struggle with a simple kfifo. I try to do it dynamicly. For
the sake of simplicity I changed the code in a way that everything with
the kfifo is done in the open function of my module.
First of all, I have a struct, in which I store the pointer to that kfifo:
struct mymod_private_fop
Hello Vishwas,
thanks for your reply. But I don not have a /proc/device-tree at all. I
solved the problem by writing a appropriate node into the .dts-file and
recompile the whole kernel. I exchanged also "xilinx,cpld-led" with
"cpld-led". After that it worked.
Regards /Chris
> Hi Chris,
>
Hello out there,
I got a problem with the kernel function "of_find_compatible_node". I
use it with: np = of_find_compatible_node(NULL,NULL,
"xilinx,cpld-led"); or with np = of_find_compatible_node(NULL,NULL,
"cpld-led"); but none of this works, because I get a null-pointer back.
But it suppose