LINUX.ORG.RU

История изменений

Исправление gns, (текущая версия) :

Не, братцы, это какая-то шляпа. Вот, читаем статью по ссылке:

4.3 User Interface
The User Interface (UI) has two parts: one running in user space
and the other inside the kernel. The user-level component consists
of a command-line tool and a pseudo-device descriptor file. The
kernel component is the corresponding pseudo-device driver. The
user-level tool resembles a Lua stand-alone interpreter, but instead
of executing Lua scripts in user space, it executes them in the
kernel-embedded Lua interpreter.
The user-level command interface is actually a front-end for
the pseudo-device driver. When a user issues a command, the UI
user-level component forwards it, by invoking an ioctl system call,
to a handler function registered by the pseudo-device driver. This
handler function, running inside the kernel, provides the actual
commands for handling kernel Lua states and for loading and
running scripts inside these states.

То есть, это Вам не BPF. Скрипт существует в юзерспейсе и построчно грузиться в ядро, где и исполняется. Ну ладно, будем думать, что они на лексическом анализе с'экономили.

В общем, оно интересно, конечно, но применимость всего этого ограничена.

Да уж, это как-то не Lunatik, это Lunatic Asylum :)

Исходная версия gns, :

Не, братцы, это какая-то шляпа. Вот, читаем статью по ссылке:

4.3 User Interface
The User Interface (UI) has two parts: one running in user space
and the other inside the kernel. The user-level component consists
of a command-line tool and a pseudo-device descriptor file. The
kernel component is the corresponding pseudo-device driver. The
user-level tool resembles a Lua stand-alone interpreter, but instead
of executing Lua scripts in user space, it executes them in the
kernel-embedded Lua interpreter.
The user-level command interface is actually a front-end for
the pseudo-device driver. When a user issues a command, the UI
user-level component forwards it, by invoking an ioctl system call,
to a handler function registered by the pseudo-device driver. This
handler function, running inside the kernel, provides the actual
commands for handling kernel Lua states and for loading and
running scripts inside these states.

То есть, это Вам не BPF. Скрипт существует в юзерспейсе и построчно грузиться в ядро, где и исполняется. Ну ладно, будем думать, что они на лексическом анализе с'экономили.

В общем, оно интересно, конечно, но применимость всего этого ограничена.