Debugfs

Debugfs

debugfs is a special filesystem (technically referred as a kernel space-user-space interface) available in Linux kernel since version 2.6.10-rc3.[1] It was written by Greg Kroah-Hartman[2].

Contents

Purpose

It is a simple to use RAM-based file system especially designed for debugging purposes. debugfs exists as a simple way for kernel developers to make information available to user space.[3]

Unlike /proc, which is only meant for information about a process, or sysfs, which has strict one-value-per-file rules, debugfs has no rules at all. Developers can put any information they want there.[4]

Usage

To compile a Linux kernel with the debugfs facility, the CONFIG_DEBUG_FS option must be set to yes.

It is typically mounted in /sys/kernel/debug with a command like:

mount -t debugfs none /sys/kernel/debug

[5]

It can be manipulated using several calls from the C header file linux/debugfs.h

These include:

  • debugfs_create_file — for creating a file in the debug filesystem
  • debugfs_create_dir — for creating a directory inside the debug filesystem
  • debugfs_remove — for removing a debugfs entry from the debug filesytem.

References

  1. ^ Linux: DebugFS, by Jeremy, December 11, 2004, KernelTrap. (Announcement of debugfs by Greg KH.)
  2. ^ Debugfs, Posted:December 13, 2004, by corbet, LWN
  3. ^ Linux Kernel Documentation :: filesystems : debugfs.txt documentation from the source code (Based on kernel version 2.6.35.4. Page generated on 2010-09-02 21:39 EST.)
  4. ^ An updated guide to debugfs, By Jonathan Corbet, May 25, 2009, LWN
  5. ^ 2.5 Debugfs A guide to using debugfs, Ariane Keller, Version 0.8, July 2008, Kernel Space - User Space Interfaces

External links


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • Fsck — (File System Check ou File System consistency Check) est un outil sous UNIX/Linux pour vérifier la cohérence d un système de fichiers. S il y a des incohérences, il est capable de les corriger dans la plupart des cas. Sommaire 1 Présentation… …   Wikipédia en Français

  • fsck — (File System Check ou File System consistency Check) est un outil sous UNIX/Linux pour vérifier la cohérence d un système de fichiers. S il y a des incohérences, il est capable de les corriger dans la plupart des cas. Sommaire 1 Présentation… …   Wikipédia en Français

  • Disk editor — A disk editor is a computer program that allows its user to read, edit, and write raw data (at character or hexadecimal, byte levels) on disk drives (e.g., hard disks, USB flash disks or removable media such as a floppy disks); as such, they are… …   Wikipedia

  • E2fsprogs — Infobox Software name = e2fsprogs caption = developer = Theodore Ts o latest release version = 1.41.1 latest release date = release date|2008|09|1 latest preview version = latest preview date = operating system = Unix like platform = genre = File …   Wikipedia

  • Greg Kroah-Hartman — Infobox Person name = Greg Kroah Hartman image size = caption = Photo of Greg Kroah Hartman birth name = birth date = birth place = death date = death place = death cause = resting place = resting place coordinates = residence = nationality =… …   Wikipedia

  • E2fsprogs — Développeur Theodore Ts o …   Wikipédia en Français

  • E2fsprogs — Saltar a navegación, búsqueda e2fsprogs Desarrollador Theodore Ts o Información general Última versión estable 1.41.3 Plantilla:Release date …   Wikipedia Español

  • Greg Kroah-Hartman — ist Programmierer und einer der prominentesten Linux Kernel Entwickler, insbesondere beim von ihm selbst gestarteten Linux Driver Project.[1][2] Die Maintainer Datei des Linux Kernels g …   Deutsch Wikipedia

  • e2fsprogs — Développeur Theodore Ts o Dernière version …   Wikipédia en Français

  • Greg Kroah-Hartman — Surnom GregKH Profession Programmeur Greg Kroah Hartman est un développeur du noyau Linux. Il es …   Wikipédia en Français

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”