Re: system tap unable to refer a structure definition

2017-05-07 Thread Frank Ch. Eigler
gadrenayan wrote: > [...] > c = @cast($frags[0]->f_addr, "volioship_hdr_t", > "/root/ngadre/unixvm-cvs/src/common/kernel/vxvm/ioship_cvm.h") > [...] > The header file is locally available on the machine. > [...] > semantic error: type definition 'volioship_hdr_t' not found in ' >

Re: monitor of SEGFAULT processes

2017-03-16 Thread Frank Ch. Eigler
levonshe wrote: > [...] Is it possible from kernel module or user space to monitor > which processes were terminated abnormally ? [...] Depending on the version & configuration, there exist both kernel tracepoints and kprobe/jprobe sites where the kernel side of these events may be hooked.

Re: Man pages for Kernel API

2014-06-04 Thread Frank Ch. Eigler
navid Rahimi rahimi...@gmail.com writes: probe::vm.kmalloc (3stap) - Fires when kmalloc is requested probe::vm.kmalloc_node (3stap) - Fires when kmalloc_node is requested Those are systemtap man pages, not kernel API ones. - FChE ___ Kernelnewbies

Re: large frame size warning when compiling

2014-05-09 Thread Frank Ch. Eigler
valdis.kletni...@vt.edu writes: [...] Some paths in the kernel get very deep stacks (for instance, nfs reading an xfs file that's on an lvm partition on a dm-crypt target is famous for blowing the stack without any further help). On my laptop, the low-water mark is already pretty low: %

Re: How to find out which part of code is changing a particular data structure.

2013-11-08 Thread Frank Ch. Eigler
Rajat Jain rajatj...@juniper.net writes: [...] I have a memory location (One of the fields in a kernel data structure) and I want to track down the code that changes the value of that particular location. Some thing like a watchpoint. See the register_wide_hw_breakpoint API. You could write

Re: any way to see the running kernel's vermagic string?

2012-10-16 Thread Frank Ch. Eigler
Robert P. J. Day rpj...@crashcourse.ca writes: perhaps i've just overlooked it but is there an easy way to see the current kernel's calculated vermagic string, as defined in the header file include/linux/vermagic.h thusly? [...] Another way is systemtap: # stap -g -e 'probe begin { log (

Re: Communication between kernel and kernel module

2012-05-23 Thread Frank Ch. Eigler
drewd77.gm drewd77...@gmail.com writes: Is there any way to call a function defined in a kernel module from within the kernel proper? One needs a proper hook mechanism such as kprobes or tracepoints. I'm trying to keep track of when and for how long a process is being executed on the

Re: [RFC]Something wrong with my module

2012-04-12 Thread Frank Ch. Eigler
kristof wrote: [...] You're iterating over the tasks list without locking it. [...] Try to take the tasklist_lock. Unfortunately, tasklist_lock is not SYMBOL_EXPORT*'d to modules. - FChE ___ Kernelnewbies mailing list

Re: ubuntu 11.10, systemtap and building my own kernel

2012-04-10 Thread Frank Ch. Eigler
Hi - On Tue, Apr 10, 2012 at 02:23:43PM -0400, Robert P. J. Day wrote: [...] ok, but i'm curious ... i took a quick look at earlier kernels and i don't see where struct hlist_head *ever* had a next member field that is required by this version of systemtap (1.4). I believe this was related

Re: ubuntu 11.10, systemtap and building my own kernel

2012-04-10 Thread Frank Ch. Eigler
Hi - On Tue, Apr 10, 2012 at 04:17:25PM -0400, Robert P. J. Day wrote: [...] just FYI, this is the current problem: [...] Yup, found it. For now, you could adjust your copy of the runtime.h header file s/map/mask/ and have at it. We'll plop presently a polished patch into proper place. -