Emacs mode for SystemTap
Emacs Lisp
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.org
systemtap-mode.el

README.org

systemtap-mode — A mode for SystemTap

systemtap-mode is a mode for SystemTap. It allows writing and executing SystemStap scripts.

It is forked from Tomoki Sekiyama’s initial systemtap-mode implementation. The implementation is based on cc-mode.

Installation

Systemtap-mode can be installed via el-get or package.el using Marmalade (releases) or MELPA (snapshots).

You can install it manually by copying the file systemtap-mode.el to a directory in your load-path. You can use update-file-autoloads to create the proper autoloads from the file or simply add

(add-to-list 'auto-mode-alist '("\\.stp\\'" . systemtap-mode))
(autoload 'systemtap-mode "systemtap-mode.el")

to your init.el.

Usage

After installation the mode should be automatically started for files with .stp suffix. You can run the script with C-c e and interrupt it with C-c c.

To Do

Indent embedded-C %{ ... %} correctly

Support documentation/autocomplete (stap -L)