Ktap FFI Proposal
ktap FFI Proposal
1
FFI on Ktap
Foreign function interface
Programs of one programming language can call functions written in other languages
ktap
A new scripting dynamic tracing tool Especially designed for Linux!
2
Ktap code base
LOC userspace parser: 5000 LOC interpreter(in kernel): 6000 LOC
GPL licence
3
ktap script without FFI
trace sched:sched_switch { prio = curr_taskinfo(76, 8) pcount = curr_taskinfo(616, 8) run_delay = curr_taskinfo(624, 8) printf("%s[%d], %d, %d", arg1, prio, pcount, run_delay)
}
4
How I wrote the script
Use gdb to find the offset and size information inside struct:
(gdb) p &(((struct task_struct *)0).prio) $1 = (int *) 0x4c (gdb) p &(((struct task_struct *)0).sched_info.run_delay) $2 = (unsigned long long *) 0x270 (gdb) p &(((struct task_struct *)0).sched_info.pcount) $3 = (unsigned long *) 0x268
5
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- ktap ffi proposal
- an intermediate representation for structured input lua
- small is beautiful the design of lua
- a first option is to create variables in the lua
- programming in lua extending lua
- integers in lua 5
- ml module mania a type safe separately compiled
- pydgin generating fast instruction set simulators from
- last edit 07 02 2010 lua 5 1 c api
- ray tracing tutorial github pages
Related searches
- what does a business proposal look like
- free business proposal template pdf
- business proposal examples
- business proposal template word
- how to write a business proposal pdf
- free business proposal template
- microsoft word proposal templates free
- free business proposal samples pdf
- start up business proposal template
- list of research proposal topics
- sample research proposal on education
- business proposal template free