/linux/drivers/usb/typec/ucsi/ |
H A D | debugfs.c | 3 * UCSI debugfs interface 10 #include <linux/debugfs.h> 27 memset(&ucsi->debugfs->response, 0, sizeof(ucsi->debugfs->response)); in ucsi_cmd() 28 ucsi->debugfs->status = 0; in ucsi_cmd() 54 &ucsi->debugfs->response, in ucsi_cmd() 55 sizeof(ucsi->debugfs->response)); in ucsi_cmd() 62 ucsi->debugfs->status = ret; in ucsi_cmd() 74 if (ucsi->debugfs->status) in ucsi_resp_show() 75 return ucsi->debugfs in ucsi_resp_show() [all...] |
/linux/Documentation/translations/zh_CN/filesystems/ |
H A D | debugfs.rst | 5 :Original: Documentation/filesystems/debugfs.rst 32 mount -t debugfs none /sys/kernel/debug 36 和“ mode”挂载选项。请注意,debugfs API仅按照GPL协议导出到模块。 38 使用debugfs的代码应包含<linux/debugfs.h>。然后,首先是创建至少一个目录来保存
|
/linux/Documentation/translations/zh_TW/filesystems/ |
H A D | debugfs.rst | 5 :Original: Documentation/filesystems/debugfs.rst 33 mount -t debugfs none /sys/kernel/debug 37 和“ mode”掛載選項。請注意,debugfs API僅按照GPL協議導出到模塊。 39 使用debugfs的代碼應包含<linux/debugfs.h>。然後,首先是創建至少一個目錄來保存
|
/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 [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, hde in hci_debugfs_create_common() [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() [all...] |
/linux/net/mac80211/ |
H A D | debugfs_key.c | 14 #include "debugfs.h" 318 debugfs_create_file(#name, 0400, key->debugfs.dir, \ 321 debugfs_create_file(#name, 0600, key->debugfs.dir, \ 330 if (!key->local->debugfs.keys) in ieee80211_debugfs_key_add() 334 key->debugfs.cnt = keycount; in ieee80211_debugfs_key_add() 336 key->debugfs.dir = debugfs_create_dir(buf, in ieee80211_debugfs_key_add() 337 key->local->debugfs.keys); in ieee80211_debugfs_key_add() 343 key->debugfs.stalink = in ieee80211_debugfs_key_add() 344 debugfs_create_symlink("station", key->debugfs.dir, buf); in ieee80211_debugfs_key_add() 366 debugfs_remove_recursive(key->debugfs in ieee80211_debugfs_key_remove() [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/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/Documentation/filesystems/ |
H A D | debugfs.rst | 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 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 33 debugfs files:: 39 created in the debugfs roo [all...] |
/linux/drivers/gpu/drm/panfrost/ |
H A D | panfrost_gem.c | 19 bo->debugfs.creator.tgid = current->group_leader->pid; in panfrost_gem_debugfs_bo_add() 20 get_task_comm(bo->debugfs.creator.process_name, current->group_leader); in panfrost_gem_debugfs_bo_add() 22 mutex_lock(&pfdev->debugfs.gems_lock); in panfrost_gem_debugfs_bo_add() 23 list_add_tail(&bo->debugfs.node, &pfdev->debugfs.gems_list); in panfrost_gem_debugfs_bo_add() 24 mutex_unlock(&pfdev->debugfs.gems_lock); in panfrost_gem_debugfs_bo_add() 31 if (list_empty(&bo->debugfs.node)) in panfrost_gem_debugfs_bo_rm() 34 mutex_lock(&pfdev->debugfs.gems_lock); in panfrost_gem_debugfs_bo_rm() 35 list_del_init(&bo->debugfs.node); in panfrost_gem_debugfs_bo_rm() 36 mutex_unlock(&pfdev->debugfs in panfrost_gem_debugfs_bo_rm() [all...] |
/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/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/Documentation/gpu/amdgpu/ |
H A D | ras.rst | 6 debugfs (for error injection). 8 RAS debugfs/sysfs Control and Error Injection Interfaces 12 :doc: AMDGPU RAS debugfs control interface 26 RAS EEPROM debugfs Interface 30 :doc: AMDGPU RAS debugfs EEPROM table reset interface 48 The test verifies the RAS feature enabled status and makes sure the necessary sysfs and debugfs files
|
/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/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/drivers/hwspinlock/ |
H A D | sun6i_hwspinlock.c | 8 #include <linux/debugfs.h> 33 struct dentry *debugfs; member 51 priv->debugfs = debugfs_create_dir(DRIVER_NAME, NULL); in sun6i_hwspinlock_debugfs_init() 52 debugfs_create_file("supported", 0444, priv->debugfs, priv, &hwlocks_supported_fops); in sun6i_hwspinlock_debugfs_init() 86 debugfs_remove_recursive(priv->debugfs); in sun6i_hwspinlock_disable() 169 /* failure of debugfs is considered non-fatal */ in sun6i_hwspinlock_probe() 171 if (IS_ERR(priv->debugfs)) in sun6i_hwspinlock_probe() 172 priv->debugfs = NULL; in sun6i_hwspinlock_probe()
|
/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 in counter_enable_write() 904 struct debugfs_info *debugfs; dwc_pcie_debugfs_init() local [all...] |
/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 in wl1251_debugfs_add_files() [all...] |
/linux/drivers/gpu/drm/panthor/ |
H A D | panthor_gem.c | 21 INIT_LIST_HEAD(&bo->debugfs.node); in panthor_gem_debugfs_bo_init() 29 bo->debugfs.creator.tgid = current->group_leader->pid; in panthor_gem_debugfs_bo_add() 30 get_task_comm(bo->debugfs.creator.process_name, current->group_leader); in panthor_gem_debugfs_bo_add() 33 list_add_tail(&bo->debugfs.node, &ptdev->gems.node); in panthor_gem_debugfs_bo_add() 42 if (list_empty(&bo->debugfs.node)) in panthor_gem_debugfs_bo_rm() 46 list_del_init(&bo->debugfs.node); in panthor_gem_debugfs_bo_rm() 52 bo->debugfs.flags = usage_flags; in panthor_gem_debugfs_set_usage_flags() 390 u32 gem_usage_flags = bo->debugfs.flags; in panthor_gem_debugfs_bo_print() 400 "%s/%d", bo->debugfs.creator.process_name, bo->debugfs in panthor_gem_debugfs_bo_print() [all...] |
/linux/drivers/memory/tegra/ |
H A D | tegra20-emc.c | 11 #include <linux/debugfs.h> 213 } debugfs; member 791 * debugfs interface 793 * The memory controller driver exposes some files in debugfs that can be used 847 *rate = emc->debugfs.min_rate; in tegra_emc_debug_min_rate_get() 864 emc->debugfs.min_rate = rate; in tegra_emc_debug_min_rate_set() 877 *rate = emc->debugfs.max_rate; in tegra_emc_debug_max_rate_get() 894 emc->debugfs.max_rate = rate; in tegra_emc_debug_max_rate_set() 909 emc->debugfs.min_rate = ULONG_MAX; in tegra_emc_debugfs_init() 910 emc->debugfs in tegra_emc_debugfs_init() [all...] |
H A D | tegra124-emc.c | 13 #include <linux/debugfs.h> 502 } debugfs; member 1124 * debugfs interface 1126 * The memory controller driver exposes some files in debugfs that can be used 1182 *rate = emc->debugfs.min_rate; in tegra_emc_debug_min_rate_get() 1199 emc->debugfs.min_rate = rate; in tegra_emc_debug_min_rate_set() 1212 *rate = emc->debugfs.max_rate; in tegra_emc_debug_max_rate_get() 1229 emc->debugfs.max_rate = rate; in tegra_emc_debug_max_rate_set() 1243 emc->debugfs.min_rate = ULONG_MAX; in emc_debugfs_init() 1244 emc->debugfs in emc_debugfs_init() [all...] |
/linux/drivers/media/platform/amphion/ |
H A D | vpu_dbg.c | 15 #include <linux/debugfs.h> 443 if (!vpu->debugfs) in vpu_inst_create_dbgfs_file() 446 if (inst->debugfs) in vpu_inst_create_dbgfs_file() 450 inst->debugfs = debugfs_create_file((const char *)name, in vpu_inst_create_dbgfs_file() 452 vpu->debugfs, in vpu_inst_create_dbgfs_file() 464 debugfs_remove(inst->debugfs); in vpu_inst_remove_dbgfs_file() 465 inst->debugfs = NULL; in vpu_inst_remove_dbgfs_file() 479 if (!vpu->debugfs) in vpu_core_create_dbgfs_file() 482 if (!core->debugfs) { in vpu_core_create_dbgfs_file() 484 core->debugfs in vpu_core_create_dbgfs_file() [all...] |
/linux/drivers/gpu/drm/i915/gvt/ |
H A D | debugfs.c | 23 #include <linux/debugfs.h> 172 * intel_gvt_debugfs_add_vgpu - register debugfs entries for a vGPU 180 vgpu->debugfs = debugfs_create_dir(name, vgpu->gvt->debugfs_root); in intel_gvt_debugfs_add_vgpu() 182 debugfs_create_file("mmio_diff", 0444, vgpu->debugfs, vgpu, in intel_gvt_debugfs_add_vgpu() 184 debugfs_create_file_unsafe("scan_nonprivbb", 0644, vgpu->debugfs, vgpu, in intel_gvt_debugfs_add_vgpu() 186 debugfs_create_file_unsafe("status", 0644, vgpu->debugfs, vgpu, in intel_gvt_debugfs_add_vgpu() 191 * intel_gvt_debugfs_remove_vgpu - remove debugfs entries of a vGPU 200 debugfs_remove_recursive(vgpu->debugfs); in intel_gvt_debugfs_remove_vgpu() 201 vgpu->debugfs = NULL; in intel_gvt_debugfs_remove_vgpu() 206 * intel_gvt_debugfs_init - register gvt debugfs roo [all...] |
/linux/Documentation/admin-guide/mm/ |
H A D | cma_debugfs.rst | 5 The CMA debugfs interface is useful to retrieve basic information out of the 8 Each CMA area represents a directory under <debugfs>/cma/, represented by 11 <debugfs>/cma/<cma_name> 27 echo 5 > <debugfs>/cma/<cma_name>/alloc
|