Home
last modified time | relevance | path

Searched full:debugfs (Results 1 – 25 of 1466) sorted by relevance

12345678910>>...59

/Linux-v5.15/Documentation/filesystems/
Ddebugfs.rst5 DebugFS chapter
10 Debugfs exists as a simple way for kernel developers to make information
13 debugfs has no rules at all. Developers can put any information they want
14 there. The debugfs filesystem is also intended to not serve as a stable
17 even debugfs interfaces are best designed with the idea that they will need
20 Debugfs is typically mounted with a command like::
22 mount -t debugfs none /sys/kernel/debug
25 The debugfs root directory is accessible only to the root user by
29 Note that the debugfs API is exported GPL-only to modules.
31 Code using debugfs should include <linux/debugfs.h>. Then, the first order
[all …]
/Linux-v5.15/drivers/memory/tegra/
Dtegra186-emc.c7 #include <linux/debugfs.h>
31 } debugfs; member
35 * debugfs interface
37 * The memory controller driver exposes some files in debugfs that can be used
106 *rate = emc->debugfs.min_rate; in tegra186_emc_debug_min_rate_get()
123 emc->debugfs.min_rate = rate; in tegra186_emc_debug_min_rate_set()
136 *rate = emc->debugfs.max_rate; in tegra186_emc_debug_max_rate_get()
153 emc->debugfs.max_rate = rate; in tegra186_emc_debug_max_rate_set()
201 emc->debugfs.min_rate = ULONG_MAX; in tegra186_emc_probe()
202 emc->debugfs.max_rate = 0; in tegra186_emc_probe()
[all …]
/Linux-v5.15/drivers/scsi/fnic/
Dfnic_debugfs.c20 #include <linux/debugfs.h>
45 * fnic_debugfs_init - Initialize debugfs for fnic debug logging
48 * When Debugfs is configured this routine sets up the fnic debugfs
75 * fnic_debugfs_terminate - Tear down debugfs infrastructure
78 * When Debugfs is configured this routine removes debugfs file system
96 * or fc_trace_clear debugfs file
128 pr_err("fnic: Cannot read to any debugfs file\n"); in fnic_trace_ctrl_read()
136 * fc_trace_clear debugfs file
179 pr_err("fnic: cannot write to any debugfs file\n"); in fnic_trace_ctrl_write()
199 * This routine is the entry point for the debugfs open file operation.
[all …]
/Linux-v5.15/net/bluetooth/
Dhci_debugfs.c24 #include <linux/debugfs.h>
312 debugfs_create_file("features", 0444, hdev->debugfs, hdev, in hci_debugfs_create_common()
314 debugfs_create_u16("manufacturer", 0444, hdev->debugfs, in hci_debugfs_create_common()
316 debugfs_create_u8("hci_version", 0444, hdev->debugfs, &hdev->hci_ver); in hci_debugfs_create_common()
317 debugfs_create_u16("hci_revision", 0444, hdev->debugfs, &hdev->hci_rev); in hci_debugfs_create_common()
318 debugfs_create_u8("hardware_error", 0444, hdev->debugfs, in hci_debugfs_create_common()
320 debugfs_create_file("device_id", 0444, hdev->debugfs, hdev, in hci_debugfs_create_common()
323 debugfs_create_file("device_list", 0444, hdev->debugfs, hdev, in hci_debugfs_create_common()
325 debugfs_create_file("blacklist", 0444, hdev->debugfs, hdev, in hci_debugfs_create_common()
327 debugfs_create_file("blocked_keys", 0444, hdev->debugfs, hdev, in hci_debugfs_create_common()
[all …]
/Linux-v5.15/Documentation/admin-guide/
Ddynamic-debug-howto.rst39 * Provides a debugfs control file: ``<debugfs>/dynamic_debug/control``
47 control file in the 'debugfs' filesystem. Thus, you must first mount
48 the debugfs filesystem, in order to make use of this feature.
50 ``<debugfs>/dynamic_debug/control``. For example, if you want to enable
54 <debugfs>/dynamic_debug/control
59 <debugfs>/dynamic_debug/control
62 Note, for systems without 'debugfs' enabled, the control file can be
71 nullarbor:~ # cat <debugfs>/dynamic_debug/control
83 nullarbor:~ # grep -i rdma <debugfs>/dynamic_debug/control | wc -l
86 nullarbor:~ # grep -i tcp <debugfs>/dynamic_debug/control | wc -l
[all …]
/Linux-v5.15/net/mac80211/
Ddebugfs_key.c13 #include "debugfs.h"
321 debugfs_create_file(#name, 0400, key->debugfs.dir, \
324 debugfs_create_file(#name, 0600, key->debugfs.dir, \
333 if (!key->local->debugfs.keys) in ieee80211_debugfs_key_add()
337 key->debugfs.cnt = keycount; in ieee80211_debugfs_key_add()
339 key->debugfs.dir = debugfs_create_dir(buf, in ieee80211_debugfs_key_add()
340 key->local->debugfs.keys); in ieee80211_debugfs_key_add()
346 key->debugfs.stalink = in ieee80211_debugfs_key_add()
347 debugfs_create_symlink("station", key->debugfs.dir, buf); in ieee80211_debugfs_key_add()
369 debugfs_remove_recursive(key->debugfs.dir); in ieee80211_debugfs_key_remove()
[all …]
/Linux-v5.15/Documentation/admin-guide/mm/damon/
Dusage.rst14 - *debugfs interface.*
17 from and writing to special debugfs files. Therefore, you can write and use
18 your personalized DAMON debugfs wrapper programs that reads/writes the
19 debugfs files instead of you. The DAMON user space tool is also a reference
28 Nevertheless, you could write your own user space tool using the debugfs
32 the reason, this document describes only the debugfs interface
34 debugfs Interface
38 its debugfs directory, ``<debugfs>/damon/``.
51 # cd <debugfs>/damon
69 # cd <debugfs>/damon
[all …]
/Linux-v5.15/drivers/scsi/mpt3sas/
Dmpt3sas_debugfs.c3 * Debugfs interface Support for MPT (Message Passing Technology) based
27 #include <linux/debugfs.h>
32 * _debugfs_iocdump_read - copy ioc dump from debugfs buffer
53 * _debugfs_iocdump_open : open the ioc_dump debugfs attribute file
72 * _debugfs_iocdump_release : release the ioc_dump debugfs attribute
97 * mpt3sas_init_debugfs : Create debugfs root for mpt3sas driver
103 pr_info("mpt3sas: Cannot create debugfs root\n"); in mpt3sas_init_debugfs()
107 * mpt3sas_exit_debugfs : Remove debugfs root for mpt3sas driver
115 * mpt3sas_setup_debugfs : Setup debugfs per HBA adapter
129 "Cannot create per adapter debugfs directory\n"); in mpt3sas_setup_debugfs()
[all …]
/Linux-v5.15/fs/debugfs/
Dfile.c3 * file.c - part of debugfs, a tiny little debug file system
8 * debugfs is for people to use instead of /proc or /sys.
16 #include <linux/debugfs.h>
189 WARN(1, "debugfs file owner did not clean up at exit: %pd", in open_proxy_open()
326 WARN(1, "debugfs file owner did not clean up at exit: %pd", in full_proxy_open()
347 WARN(1, "debugfs file owner replaced proxy fops: %pd", in full_proxy_open()
429 * debugfs_create_u8 - create a debugfs file that is used to read and write an unsigned 8-bit value
434 * file will be created in the root of the debugfs filesystem.
438 * This function creates a file in debugfs with the given name that
465 …* debugfs_create_u16 - create a debugfs file that is used to read and write an unsigned 16-bit val…
[all …]
Dinode.c3 * inode.c - part of debugfs, a tiny little debug file system
9 * debugfs is for people to use instead of /proc or /sys.
13 #define pr_fmt(fmt) "debugfs: " fmt
22 #include <linux/debugfs.h>
145 * but traditionally debugfs has ignored all mount options in debugfs_parse_options()
282 .name = "debugfs",
286 MODULE_ALIAS_FS("debugfs");
289 * debugfs_lookup() - look up an existing debugfs file
297 * If debugfs is not enabled in the kernel, the value -%ENODEV will be
428 * debugfs_create_file - create a file in the debugfs filesystem
[all …]
/Linux-v5.15/drivers/gpu/drm/nouveau/
Dnouveau_debugfs.c31 #include <linux/debugfs.h>
75 struct nouveau_debugfs *debugfs = nouveau_debugfs(drm); in nouveau_debugfs_pstate_get() local
76 struct nvif_object *ctrl = &debugfs->ctrl; in nouveau_debugfs_pstate_get()
80 if (!debugfs) in nouveau_debugfs_pstate_get()
146 struct nouveau_debugfs *debugfs = nouveau_debugfs(drm); in nouveau_debugfs_pstate_set() local
147 struct nvif_object *ctrl = &debugfs->ctrl; in nouveau_debugfs_pstate_set()
152 if (!debugfs) in nouveau_debugfs_pstate_set()
260 drm->debugfs = kzalloc(sizeof(*drm->debugfs), GFP_KERNEL); in nouveau_debugfs_init()
261 if (!drm->debugfs) in nouveau_debugfs_init()
266 &drm->debugfs->ctrl); in nouveau_debugfs_init()
[all …]
/Linux-v5.15/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_kms.h85 * @debugfs_file: debugfs file for irq statistics
170 * Debugfs functions - extra helper functions for debugfs support
172 * Main debugfs documentation is located at,
174 * Documentation/filesystems/debugfs.rst
178 * @dpu_debugfs_get_root: Get root dentry for DPU_KMS's debugfs node
192 * dpu_debugfs_setup_regset32 - Initialize register block definition for debugfs
204 * dpu_debugfs_create_regset32 - Create register read back file for debugfs
218 * @name: File name within debugfs
219 * @mode: File mode within debugfs
220 * @parent: Parent directory entry within debugfs, can be NULL
[all …]
/Linux-v5.15/arch/sh/mm/
DMakefile24 debugfs-y := asids-debugfs.o
26 debugfs-$(CONFIG_CPU_SH4) += cache-debugfs.o
30 debugfs-$(CONFIG_CPU_SH4) += tlb-debugfs.o
37 obj-$(CONFIG_DEBUG_FS) += $(debugfs-y)
/Linux-v5.15/tools/testing/selftests/powerpc/security/
Duaccess_flush.c40 perror("Unable to read powerpc/rfi_flush debugfs file"); in uaccess_flush_test()
45 perror("Unable to read powerpc/entry_flush debugfs file"); in uaccess_flush_test()
50 perror("Unable to read powerpc/entry_flush debugfs file"); in uaccess_flush_test()
56 perror("error writing to powerpc/rfi_flush debugfs file"); in uaccess_flush_test()
63 perror("error writing to powerpc/entry_flush debugfs file"); in uaccess_flush_test()
123 perror("error writing to powerpc/uaccess_flush debugfs file"); in uaccess_flush_test()
138 perror("unable to restore original value of powerpc/rfi_flush debugfs file"); in uaccess_flush_test()
143 perror("unable to restore original value of powerpc/entry_flush debugfs file"); in uaccess_flush_test()
148 perror("unable to restore original value of powerpc/uaccess_flush debugfs file"); in uaccess_flush_test()
/Linux-v5.15/drivers/gpu/drm/i915/gvt/
Ddebugfs.c23 #include <linux/debugfs.h>
155 * intel_gvt_debugfs_add_vgpu - register debugfs entries for a vGPU
163 vgpu->debugfs = debugfs_create_dir(name, vgpu->gvt->debugfs_root); in intel_gvt_debugfs_add_vgpu()
165 debugfs_create_bool("active", 0444, vgpu->debugfs, &vgpu->active); in intel_gvt_debugfs_add_vgpu()
166 debugfs_create_file("mmio_diff", 0444, vgpu->debugfs, vgpu, in intel_gvt_debugfs_add_vgpu()
168 debugfs_create_file("scan_nonprivbb", 0644, vgpu->debugfs, vgpu, in intel_gvt_debugfs_add_vgpu()
173 * intel_gvt_debugfs_remove_vgpu - remove debugfs entries of a vGPU
178 debugfs_remove_recursive(vgpu->debugfs); in intel_gvt_debugfs_remove_vgpu()
179 vgpu->debugfs = NULL; in intel_gvt_debugfs_remove_vgpu()
183 * intel_gvt_debugfs_init - register gvt debugfs root entry
[all …]
/Linux-v5.15/drivers/video/fbdev/omap2/omapfb/dss/
DKconfig16 appropriate flags in <debugfs>/dynamic_debug/control.
19 bool "Debugfs filesystem support"
22 This enables debugfs for OMAPDSS at <debugfs>/omapdss. This enables
30 Collect DSS IRQ statistics, printable via debugfs.
33 <debugfs>/omapdss/dispc_irq for DISPC interrupts, and
34 <debugfs>/omapdss/dsi_irq for DSI interrupts.
/Linux-v5.15/Documentation/fault-injection/
Dprovoke-crashes.rst12 support via debugfs.
16 inserting the module, or through the debugfs interface.
36 These are numerous, and best queried directly from debugfs. Some
46 You can also induce failures by mounting debugfs and writing the type to
47 <debugfs>/provoke-crash/<crashpoint>. E.g.::
49 mount -t debugfs debugfs /sys/kernel/debug
/Linux-v5.15/drivers/gpu/drm/omapdrm/
DKconfig22 appropriate flags in <debugfs>/dynamic_debug/control.
25 bool "Debugfs filesystem support"
29 This enables debugfs for OMAPDSS at <debugfs>/omapdss. This enables
38 Collect DSS IRQ statistics, printable via debugfs.
41 <debugfs>/omapdss/dispc_irq for DISPC interrupts, and
42 <debugfs>/omapdss/dsi_irq for DSI interrupts.
/Linux-v5.15/drivers/misc/cxl/
Ddebugfs.c6 #include <linux/debugfs.h>
14 /* Helpers to export CXL mmaped IO registers via debugfs */
67 adapter->debugfs = dir; in cxl_debugfs_adapter_add()
77 debugfs_remove_recursive(adapter->debugfs); in cxl_debugfs_adapter_remove()
101 if (!afu->adapter->debugfs) in cxl_debugfs_afu_add()
105 dir = debugfs_create_dir(buf, afu->adapter->debugfs); in cxl_debugfs_afu_add()
106 afu->debugfs = dir; in cxl_debugfs_afu_add()
120 debugfs_remove_recursive(afu->debugfs); in cxl_debugfs_afu_remove()
/Linux-v5.15/net/hsr/
Dhsr_debugfs.c2 * debugfs code for HSR & PRP
19 #include <linux/debugfs.h>
82 * When debugfs is configured this routine sets up the node_table file per
91 pr_err("Cannot create hsr debugfs directory\n"); in hsr_debugfs_init()
108 /* hsr_debugfs_term - Tear down debugfs intrastructure
111 * When Debugfs is configured this routine removes debugfs file system
125 pr_err("Cannot create hsr debugfs root directory\n"); in hsr_debugfs_create_root()
/Linux-v5.15/drivers/base/regmap/
Dregmap-debugfs.c3 // Register map access API - debugfs
11 #include <linux/debugfs.h>
480 dev_warn(map->dev, "debugfs cache_only=Y forced\n"); in regmap_cache_only_write_file()
483 dev_warn(map->dev, "debugfs cache_only=N forced: syncing cache\n"); in regmap_cache_only_write_file()
527 dev_warn(map->dev, "debugfs cache_bypass=Y forced\n"); in regmap_cache_bypass_write_file()
530 dev_warn(map->dev, "debugfs cache_bypass=N forced\n"); in regmap_cache_bypass_write_file()
554 * Userspace can initiate reads from the hardware over debugfs. in regmap_debugfs_init()
558 * don't create the debugfs entries if locking is disabled. in regmap_debugfs_init()
561 dev_dbg(map->dev, "regmap locking disabled - not creating debugfs entries\n"); in regmap_debugfs_init()
565 /* If we don't have the debugfs root yet, postpone init */ in regmap_debugfs_init()
[all …]
/Linux-v5.15/drivers/scsi/megaraid/
Dmegaraid_sas_debugfs.c43 #include <linux/debugfs.h>
100 * megasas_init_debugfs : Create debugfs root for megaraid_sas driver
106 pr_info("Cannot create debugfs root\n"); in megasas_init_debugfs()
110 * megasas_exit_debugfs : Remove debugfs root for megaraid_sas driver
118 * megasas_setup_debugfs : Setup debugfs per Fusion adapter
137 "Cannot create per adapter debugfs directory\n"); in megasas_setup_debugfs()
149 "Cannot create raidmap debugfs file\n"); in megasas_setup_debugfs()
158 * megasas_destroy_debugfs : Destroy debugfs per Fusion adapter
/Linux-v5.15/Documentation/admin-guide/mm/
Dcma_debugfs.rst2 CMA Debugfs Interface
5 The CMA debugfs interface is useful to retrieve basic information out of the
8 Each CMA zone represents a directory under <debugfs>/cma/, indexed by the
11 <debugfs>/cma/cma-0
21 echo 5 > <debugfs>/cma/cma-2/alloc
/Linux-v5.15/fs/ubifs/
Ddebug.h21 * The UBIFS debugfs directory name pattern and maximum name length (3 for "ubi"
59 * @dfs_dir_name: name of debugfs directory containing this file-system's files
60 * @dfs_dir: direntry object of the file-system debugfs directory
61 * @dfs_dump_lprops: "dump lprops" debugfs knob
62 * @dfs_dump_budg: "dump budgeting information" debugfs knob
63 * @dfs_dump_tnc: "dump TNC" debugfs knob
64 * @dfs_chk_gen: debugfs knob to enable UBIFS general extra checks
65 * @dfs_chk_index: debugfs knob to enable UBIFS index extra checks
66 * @dfs_chk_orph: debugfs knob to enable UBIFS orphans extra checks
67 * @dfs_chk_lprops: debugfs knob to enable UBIFS LEP properties extra checks
[all …]
/Linux-v5.15/drivers/net/wireless/ti/wl1251/
Ddebugfs.c8 #include "debugfs.h"
20 /* debugfs macros idea from mac80211 */
41 wl->debugfs.name = debugfs_create_file(#name, 0400, parent, \
46 debugfs_remove(wl->debugfs.name); \
47 wl->debugfs.name = NULL; \
73 DEBUGFS_ADD(sub## _ ##name, wl->debugfs.fw_statistics)
431 DEBUGFS_ADD(tx_queue_len, wl->debugfs.rootdir); in wl1251_debugfs_add_files()
432 DEBUGFS_ADD(tx_queue_status, wl->debugfs.rootdir); in wl1251_debugfs_add_files()
433 DEBUGFS_ADD(retry_count, wl->debugfs.rootdir); in wl1251_debugfs_add_files()
434 DEBUGFS_ADD(excessive_retries, wl->debugfs.rootdir); in wl1251_debugfs_add_files()
[all …]

12345678910>>...59