| /linux/Documentation/filesystems/ |
| H A D | debugfs.rst | 5 DebugFS title 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/drivers/scsi/fnic/ |
| H A D | fnic_debugfs.c | 6 #include <linux/debugfs.h> 34 * fnic_debugfs_init - Initialize debugfs for fnic debug logging 37 * When Debugfs is configured this routine sets up the fnic debugfs 65 * fnic_debugfs_terminate - Tear down debugfs infrastructure 68 * When Debugfs is configured this routine removes debugfs file system 85 * or fc_trace_clear debugfs file 117 pr_err("fnic: Cannot read to any debugfs file\n"); in fnic_trace_ctrl_read() 125 * fc_trace_clear debugfs file 168 pr_err("fnic: cannot write to any debugfs file\n"); in fnic_trace_ctrl_write() 188 * This routine is the entry point for the debugfs open file operation. [all …]
|
| /linux/tools/testing/selftests/drivers/net/virtio_net/ |
| H A D | virtio_net_common.sh | 62 local debugfs=`virtio_debugfs_get $dev` 64 if [ ! -f "$debugfs/device_features" ] || 65 [ ! -f "$debugfs/filter_feature_add" ] || 66 [ ! -f "$debugfs/filter_feature_del" ] || 67 [ ! -f "$debugfs/filter_features" ] || 68 [ ! -f "$debugfs/filter_features_clear" ]; then 69 echo "SKIP: not possible to access debugfs for $dev" 78 local debugfs=`virtio_debugfs_get $dev` 80 cat $debugfs/device_features |grep "^$feature$" &> /dev/null 87 local debugfs=`virtio_debugfs_get $dev` [all …]
|
| /linux/net/bluetooth/ |
| H A D | hci_debugfs.c | 24 #include <linux/debugfs.h> 317 debugfs_create_file("features", 0444, hdev->debugfs, hdev, in hci_debugfs_create_common() 319 debugfs_create_u16("manufacturer", 0444, hdev->debugfs, in hci_debugfs_create_common() 321 debugfs_create_u8("hci_version", 0444, hdev->debugfs, &hdev->hci_ver); in hci_debugfs_create_common() 322 debugfs_create_u16("hci_revision", 0444, hdev->debugfs, &hdev->hci_rev); in hci_debugfs_create_common() 323 debugfs_create_u8("hardware_error", 0444, hdev->debugfs, in hci_debugfs_create_common() 325 debugfs_create_file("device_id", 0444, hdev->debugfs, hdev, in hci_debugfs_create_common() 328 debugfs_create_file("device_list", 0444, hdev->debugfs, hdev, in hci_debugfs_create_common() 330 debugfs_create_file("blacklist", 0444, hdev->debugfs, hdev, in hci_debugfs_create_common() 332 debugfs_create_file("blocked_keys", 0444, hdev->debugfs, hdev, in hci_debugfs_create_common() [all …]
|
| /linux/drivers/memory/tegra/ |
| H A D | tegra186-emc.c | 7 #include <linux/debugfs.h> 33 } debugfs; member 39 * debugfs interface 41 * The memory controller driver exposes some files in debugfs that can be used 97 *rate = emc->debugfs.min_rate; in tegra186_emc_debug_min_rate_get() 114 emc->debugfs.min_rate = rate; in tegra186_emc_debug_min_rate_set() 127 *rate = emc->debugfs.max_rate; in tegra186_emc_debug_max_rate_get() 144 emc->debugfs.max_rate = rate; in tegra186_emc_debug_max_rate_set() 177 emc->debugfs.min_rate = ULONG_MAX; in tegra186_emc_get_emc_dvfs_latency() 178 emc->debugfs.max_rate = 0; in tegra186_emc_get_emc_dvfs_latency() [all …]
|
| /linux/drivers/scsi/mpt3sas/ |
| H A D | mpt3sas_debugfs.c | 3 * 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/fs/debugfs/ |
| H A D | file.c | 3 * 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> 68 * This could only happen if some debugfs user erroneously calls in __debugfs_file_get() 185 * debugfs_enter_cancellation - enter a debugfs cancellation 190 * When a debugfs file is removed it needs to wait for all active 196 * This function can be used inside a debugfs handler that may 200 * and leave the debugfs handler function as soon as possible. 309 WARN(1, "debugfs file owner did not clean up at exit: %pd", in open_proxy_open() 460 WARN(1, "debugfs file owner did not clean up at exit: %pd", in full_proxy_open_regular() [all …]
|
| H A D | inode.c | 3 * 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 23 #include <linux/debugfs.h> 113 * traditionally debugfs has ignored all mount options in debugfs_parse_param() 139 * but traditionally debugfs has ignored all mount options in debugfs_parse_param() 329 .name = "debugfs", 334 MODULE_ALIAS_FS("debugfs"); 337 * debugfs_lookup() - look up an existing debugfs file 345 * If debugfs is not enabled in the kernel, the value -%ENODEV will be [all …]
|
| /linux/drivers/gpu/drm/nouveau/ |
| H A D | nouveau_debugfs.c | 31 #include <linux/debugfs.h> 75 struct nouveau_debugfs *debugfs = nouveau_debugfs(drm); in nouveau_debugfs_pstate_get() local 80 if (!debugfs) in nouveau_debugfs_pstate_get() 83 ctrl = &debugfs->ctrl; in nouveau_debugfs_pstate_get() 147 struct nouveau_debugfs *debugfs = nouveau_debugfs(drm); in nouveau_debugfs_pstate_set() local 152 if (!debugfs) in nouveau_debugfs_pstate_set() 191 ret = nvif_mthd(&debugfs->ctrl, NVIF_CONTROL_PSTATE_USER, in nouveau_debugfs_pstate_set() 298 drm->debugfs = kzalloc(sizeof(*drm->debugfs), GFP_KERNEL); in nouveau_debugfs_init() 299 if (!drm->debugfs) in nouveau_debugfs_init() 304 &drm->debugfs->ctrl); in nouveau_debugfs_init() [all …]
|
| /linux/arch/sh/mm/ |
| H A D | Makefile | 24 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/Documentation/dev-tools/kunit/ |
| H A D | run_manual.rst | 52 debugfs chapter 55 KUnit can be accessed from userspace via the debugfs filesystem (See more 56 information about debugfs at Documentation/filesystems/debugfs.rst). 58 If ``CONFIG_KUNIT_DEBUGFS`` is enabled, the KUnit debugfs filesystem is 65 You can use debugfs to retrieve KUnit test results. The test results are 66 accessible from the debugfs filesystem in the following read-only file: 78 You can use the debugfs filesystem to trigger built-in tests to run after 84 echo "any string" > /sys/kernel/debugfs/kunit/<test_suite>/run
|
| /linux/tools/testing/selftests/powerpc/security/ |
| H A D | uaccess_flush.c | 40 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/drivers/vdpa/mlx5/net/ |
| H A D | debug.c | 4 #include <linux/debugfs.h> 20 if (ndev->debugfs) in mlx5_vdpa_remove_tirn() 42 if (ndev->debugfs) in mlx5_vdpa_remove_rx_flow_table() 133 if (node->dent && ndev->debugfs) in mlx5_vdpa_remove_rx_counters() 143 ndev->debugfs = debugfs_create_dir(dev_name(&ndev->mvdev.vdev.dev), in mlx5_vdpa_add_debugfs() 145 if (!IS_ERR(ndev->debugfs)) in mlx5_vdpa_add_debugfs() 146 ndev->rx_dent = debugfs_create_dir("rx", ndev->debugfs); in mlx5_vdpa_add_debugfs() 151 debugfs_remove_recursive(ndev->debugfs); in mlx5_vdpa_remove_debugfs() 152 ndev->debugfs = NULL; in mlx5_vdpa_remove_debugfs()
|
| /linux/drivers/soundwire/ |
| H A D | intel_ace2x_debugfs.c | 5 #include <linux/debugfs.h> 18 * debugfs 130 struct dentry *root = sdw->cdns.bus.debugfs; in intel_ace2x_debugfs_init() 135 sdw->debugfs = debugfs_create_dir("intel-sdw", root); in intel_ace2x_debugfs_init() 137 debugfs_create_file("intel-registers", 0400, sdw->debugfs, sdw, in intel_ace2x_debugfs_init() 140 debugfs_create_file("intel-m-datamode", 0200, sdw->debugfs, sdw, in intel_ace2x_debugfs_init() 143 debugfs_create_file("intel-s-datamode", 0200, sdw->debugfs, sdw, in intel_ace2x_debugfs_init() 146 sdw_cdns_debugfs_init(&sdw->cdns, sdw->debugfs); in intel_ace2x_debugfs_init() 151 debugfs_remove_recursive(sdw->debugfs); in intel_ace2x_debugfs_exit()
|
| /linux/drivers/video/fbdev/omap2/omapfb/dss/ |
| H A D | Kconfig | 16 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/drivers/base/regmap/ |
| H A D | regmap-debugfs.c | 3 // Register map access API - debugfs 11 #include <linux/debugfs.h> 476 dev_warn(map->dev, "debugfs cache_only=Y forced\n"); in regmap_cache_only_write_file() 479 dev_warn(map->dev, "debugfs cache_only=N forced: syncing cache\n"); in regmap_cache_only_write_file() 518 dev_warn(map->dev, "debugfs cache_bypass=Y forced\n"); in regmap_cache_bypass_write_file() 521 dev_warn(map->dev, "debugfs cache_bypass=N forced\n"); in regmap_cache_bypass_write_file() 544 * Userspace can initiate reads from the hardware over debugfs. in regmap_debugfs_init() 548 * don't create the debugfs entries if locking is disabled. in regmap_debugfs_init() 551 dev_dbg(map->dev, "regmap locking disabled - not creating debugfs entries\n"); in regmap_debugfs_init() 555 /* If we don't have the debugfs root yet, postpone init */ in regmap_debugfs_init() [all …]
|
| /linux/Documentation/fault-injection/ |
| H A D | provoke-crashes.rst | 12 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/drivers/gpu/drm/omapdrm/ |
| H A D | Kconfig | 26 appropriate flags in <debugfs>/dynamic_debug/control. 29 bool "Debugfs filesystem support" 33 This enables debugfs for OMAPDSS at <debugfs>/omapdss. This enables 42 Collect DSS IRQ statistics, printable via debugfs. 45 <debugfs>/omapdss/dispc_irq for DISPC interrupts, and 46 <debugfs>/omapdss/dsi_irq for DSI interrupts.
|
| /linux/drivers/pci/controller/dwc/ |
| H A D | pcie-designware-debugfs.c | 3 * Synopsys DesignWare PCIe controller debugfs driver 11 #include <linux/debugfs.h> 52 * Any parameter constant to all files of the debugfs hierarchy for a single 66 * All debugfs files will have this struct as its private data. 190 struct dwc_pcie_rasdes_info *rinfo = pci->debugfs->rasdes_info; in lane_detect_read() 209 struct dwc_pcie_rasdes_info *rinfo = pci->debugfs->rasdes_info; in lane_detect_write() 228 struct dwc_pcie_rasdes_info *rinfo = pci->debugfs->rasdes_info; in rx_valid_read() 254 struct dwc_pcie_rasdes_info *rinfo = pci->debugfs->rasdes_info; in err_inj_write() 325 struct dwc_pcie_rasdes_info *rinfo = pci->debugfs->rasdes_info; in counter_enable_read() 348 struct dwc_pcie_rasdes_info *rinfo = pci->debugfs->rasdes_info; in counter_enable_write() [all …]
|
| /linux/fs/ubifs/ |
| H A D | debug.h | 21 * The UBIFS debugfs directory name pattern and maximum name length (3 for "ubi" 60 * @dfs_dir_name: name of debugfs directory containing this file-system's files 61 * @dfs_dir: direntry object of the file-system debugfs directory 62 * @dfs_dump_lprops: "dump lprops" debugfs knob 63 * @dfs_dump_budg: "dump budgeting information" debugfs knob 64 * @dfs_dump_tnc: "dump TNC" debugfs knob 65 * @dfs_chk_gen: debugfs knob to enable UBIFS general extra checks 66 * @dfs_chk_index: debugfs knob to enable UBIFS index extra checks 67 * @dfs_chk_orph: debugfs knob to enable UBIFS orphans extra checks 68 * @dfs_chk_lprops: debugfs knob to enable UBIFS LEP properties extra checks [all …]
|
| /linux/Documentation/ABI/obsolete/ |
| H A D | automount-tracefs-debugfs | 8 into the debugfs file system under the "tracing" directory. Access 10 access to the tracing interface without having to enable debugfs, a 15 debugfs, the tracefs file system would automatically get mounted in 16 the "tracing" directory of debugfs. The tracefs interface was added 20 directory in debugfs should be removed by January 2030.
|
| /linux/drivers/net/wireless/ti/wl1251/ |
| H A D | debugfs.c | 8 #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 …]
|
| /linux/drivers/scsi/megaraid/ |
| H A D | megaraid_sas_debugfs.c | 43 #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/drivers/nvme/host/ |
| H A D | fault_inject.c | 9 #include <linux/debugfs.h> 29 /* create debugfs directory and attribute */ in nvme_fault_inject_init() 32 pr_warn("%s: failed to create debugfs directory\n", dev_name); in nvme_fault_inject_init() 39 pr_warn("%s: failed to create debugfs attr\n", dev_name); in nvme_fault_inject_init() 45 /* create debugfs for status code and dont_retry */ in nvme_fault_inject_init() 54 /* remove debugfs directories */ in nvme_fault_inject_fini()
|
| /linux/drivers/gpu/drm/imagination/ |
| H A D | pvr_params.h | 22 * The X-macro accepts the following arguments. Arguments marked with [debugfs] 23 * are ignored when debugfs is disabled; values used for these arguments may 32 * @mode_: [debugfs] One of {RO,RW}. The access mode of the debugfs entry for 34 * @update_: [debugfs] When debugfs support is enabled, parameters may be
|