BSDCan2015 - ZH
BSDCan 2015
The Technical BSD Conference
Speakers | |
---|---|
Andrew Cagney |
Schedule | |
---|---|
Day | Talks #2 - 13 June - 2015-06-13 |
Room | DMS 1110 |
Start time | 10:00 |
Duration | 01:00 |
Info | |
ID | 561 |
Event type | Lecture |
Track | Embedded |
Language used for presentation | English |
Feedback | |
---|---|
Did you attend this event? Give Feedback |
What happens when a dwarf and a daemon start dancing by the light of the silvery moon?
The use of DWARF debug information to dynamically project the embedded extension language Lua’s global environment onto the NetBSD kernel’s internal state.
Traditionally, an embedded extension language such as Lua is only provided with limited and controlled access to its host environment. That access being defined ahead-of-time by a set of hand-written or generated C bindings.
In this presentation we will explore an alternative: the use of DWARF debug information and the in-kernel debugger, ddb, to provide scripts running on a Lua interpreter embedded in the NetBSD kernel with simple and unfetted access to the entire kernel state.