Home
last modified time | relevance | path

Searched refs:debugfs (Results 1 – 25 of 353) sorted by relevance

12345678910>>...15

/linux/Documentation/translations/zh_CN/filesystems/
H A Ddebugfs.rst5 :Original: Documentation/filesystems/debugfs.rst
24 信息。也不像sysfs,具有严格的“每个文件一个值“的规则。debugfs根本没有规则,开发
25 人员可以在这里放置他们想要的任何信息。debugfs文件系统也不能用作稳定的ABI接口。
26 从理论上讲,debugfs导出文件的时候没有任何约束。但是[1]实际情况并不总是那么
27 简单。即使是debugfs接口,也最好根据需要进行设计,并尽量保持接口不变。
32 mount -t debugfs none /sys/kernel/debug
35 debugfs根目录默认仅可由root用户访问。要更改对文件树的访问,请使用“ uid”,“ gid”
36 和“ mode”挂载选项。请注意,debugfs API仅按照GPL协议导出到模块。
38 使用debugfs的代码应包含<linux/debugfs.h>。然后,首先是创建至少一个目录来保存
39 一组debugfs文件::
[all …]
/linux/Documentation/translations/zh_TW/filesystems/
H A Ddebugfs.rst5 :Original: Documentation/filesystems/debugfs.rst
25 信息。也不像sysfs,具有嚴格的“每個文件一個值“的規則。debugfs根本沒有規則,開發
26 人員可以在這裏放置他們想要的任何信息。debugfs文件系統也不能用作穩定的ABI接口。
27 從理論上講,debugfs導出文件的時候沒有任何約束。但是[1]實際情況並不總是那麼
28 簡單。即使是debugfs接口,也最好根據需要進行設計,並儘量保持接口不變。
33 mount -t debugfs none /sys/kernel/debug
36 debugfs根目錄默認僅可由root用戶訪問。要更改對文件樹的訪問,請使用“ uid”,“ gid”
37 和“ mode”掛載選項。請注意,debugfs API僅按照GPL協議導出到模塊。
39 使用debugfs的代碼應包含<linux/debugfs.h>。然後,首先是創建至少一個目錄來保存
40 一組debugfs文件::
[all …]
/linux/tools/testing/selftests/drivers/net/virtio_net/
H A Dvirtio_net_common.sh62 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
78 local debugfs=`virtio_debugfs_get $dev`
80 cat $debugfs/device_features |grep "^$feature$" &> /dev/null
87 local debugfs=`virtio_debugfs_get $dev`
89 echo "1" > $debugfs/filter_features_clear
[all …]
/linux/net/bluetooth/
H A Dhci_debugfs.c314 debugfs_create_file("features", 0444, hdev->debugfs, hdev, in hci_debugfs_create_common()
316 debugfs_create_u16("manufacturer", 0444, hdev->debugfs, in hci_debugfs_create_common()
318 debugfs_create_u8("hci_version", 0444, hdev->debugfs, &hdev->hci_ver); in hci_debugfs_create_common()
319 debugfs_create_u16("hci_revision", 0444, hdev->debugfs, &hdev->hci_rev); in hci_debugfs_create_common()
320 debugfs_create_u8("hardware_error", 0444, hdev->debugfs, in hci_debugfs_create_common()
322 debugfs_create_file("device_id", 0444, hdev->debugfs, hdev, in hci_debugfs_create_common()
325 debugfs_create_file("device_list", 0444, hdev->debugfs, hdev, in hci_debugfs_create_common()
327 debugfs_create_file("blacklist", 0444, hdev->debugfs, hdev, in hci_debugfs_create_common()
329 debugfs_create_file("blocked_keys", 0444, hdev->debugfs, hdev, in hci_debugfs_create_common()
331 debugfs_create_file("uuids", 0444, hdev->debugfs, hdev, &uuids_fops); in hci_debugfs_create_common()
[all …]
/linux/drivers/memory/tegra/
H A Dtegra186-emc.c39 } debugfs; member
103 *rate = emc->debugfs.min_rate; in tegra186_emc_debug_min_rate_get()
120 emc->debugfs.min_rate = rate; in tegra186_emc_debug_min_rate_set()
133 *rate = emc->debugfs.max_rate; in tegra186_emc_debug_max_rate_get()
150 emc->debugfs.max_rate = rate; in tegra186_emc_debug_max_rate_set()
183 emc->debugfs.min_rate = ULONG_MAX; in tegra186_emc_get_emc_dvfs_latency()
184 emc->debugfs.max_rate = 0; in tegra186_emc_get_emc_dvfs_latency()
198 if (emc->dvfs[i].rate < emc->debugfs.min_rate) in tegra186_emc_get_emc_dvfs_latency()
199 emc->debugfs.min_rate = emc->dvfs[i].rate; in tegra186_emc_get_emc_dvfs_latency()
201 if (emc->dvfs[i].rate > emc->debugfs.max_rate) in tegra186_emc_get_emc_dvfs_latency()
[all …]
H A Dtegra210-emc-core.c620 if (!emc->debugfs.temperature) in tegra210_emc_poll_refresh()
623 temperature = emc->debugfs.temperature; in tegra210_emc_poll_refresh()
1630 *rate = emc->debugfs.min_rate; in tegra210_emc_debug_min_rate_get()
1647 emc->debugfs.min_rate = rate; in tegra210_emc_debug_min_rate_set()
1660 *rate = emc->debugfs.max_rate; in tegra210_emc_debug_max_rate_get()
1677 emc->debugfs.max_rate = rate; in tegra210_emc_debug_max_rate_set()
1691 if (!emc->debugfs.temperature) in tegra210_emc_debug_temperature_get()
1694 value = emc->debugfs.temperature; in tegra210_emc_debug_temperature_get()
1708 emc->debugfs.temperature = temperature; in tegra210_emc_debug_temperature_set()
1723 emc->debugfs.min_rate = ULONG_MAX; in tegra210_emc_debugfs_init()
[all …]
/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_debugfs.c75 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_obj(*drm->debugfs); in nouveau_debugfs_init()
299 if (!drm->debugfs) in nouveau_debugfs_init()
304 &drm->debugfs->ctrl); in nouveau_debugfs_init()
310 if (drm->debugfs && drm->debugfs->ctrl.priv) in nouveau_debugfs_fini()
[all …]
/linux/arch/sh/mm/
H A 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/samples/rust/
H A Drust_debugfs.rs22 //! Package(2) {"compatible", "sample-debugfs"}
37 debugfs::{
152 let debugfs = Dir::new(c"sample_debugfs"); in new()
157 _compatible <- debugfs.read_only_file( in new()
164 counter <- Self::build_counter(&debugfs),
165 inner <- Self::build_inner(&debugfs),
166 array_blob <- debugfs.read_write_binary_file(
170 vector_blob <- debugfs.read_write_binary_file(
174 _debugfs: debugfs,
136 let debugfs = Dir::new(c_str!("sample_debugfs")); new() localVariable
/linux/drivers/vdpa/mlx5/net/
H A Ddebug.c20 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 Ddebugfs.rst13 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 root. On success, the return value is a struct
43 indication that the kernel has been built without debugfs support and none
[all …]
/linux/drivers/soundwire/
H A Dintel_ace2x_debugfs.c130 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 Dautomount-tracefs-debugfs8 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 Dras.rst6 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 fil…
/linux/Documentation/fault-injection/
H A 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/drivers/hwspinlock/
H A Dsun6i_hwspinlock.c33 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()
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 Dpcie-designware-debugfs.c240 struct dwc_pcie_rasdes_info *rinfo = pci->debugfs->rasdes_info; in lane_detect_read()
259 struct dwc_pcie_rasdes_info *rinfo = pci->debugfs->rasdes_info; in lane_detect_write()
278 struct dwc_pcie_rasdes_info *rinfo = pci->debugfs->rasdes_info; in rx_valid_read()
304 struct dwc_pcie_rasdes_info *rinfo = pci->debugfs->rasdes_info; in err_inj_write()
371 struct dwc_pcie_rasdes_info *rinfo = pci->debugfs->rasdes_info; in counter_enable_read()
394 struct dwc_pcie_rasdes_info *rinfo = pci->debugfs->rasdes_info; in counter_enable_write()
436 struct dwc_pcie_rasdes_info *rinfo = pci->debugfs->rasdes_info; in counter_lane_read()
456 struct dwc_pcie_rasdes_info *rinfo = pci->debugfs->rasdes_info; in counter_lane_write()
479 struct dwc_pcie_rasdes_info *rinfo = pci->debugfs->rasdes_info; in counter_value_read()
544 struct dwc_pcie_rasdes_info *rinfo = pci->debugfs->rasdes_info; in dwc_pcie_rasdes_debugfs_deinit()
[all …]
/linux/Documentation/dev-tools/kunit/
H A Drun_manual.rst58 debugfs chapter
61 KUnit can be accessed from userspace via the debugfs filesystem (See more
62 information about debugfs at Documentation/filesystems/debugfs.rst).
64 If ``CONFIG_KUNIT_DEBUGFS`` is enabled, the KUnit debugfs filesystem is
71 You can use debugfs to retrieve KUnit test results. The test results are
72 accessible from the debugfs filesystem in the following read-only file:
84 You can use the debugfs filesystem to trigger built-in tests to run after
90 echo "any string" > /sys/kernel/debugfs/kunit/<test_suite>/run
/linux/drivers/net/wireless/ti/wl1251/
H A Ddebugfs.c41 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()
451 wl->debugfs.rootdir = debugfs_create_dir(KBUILD_MODNAME, NULL); in wl1251_debugfs_init()
453 wl->debugfs.fw_statistics = debugfs_create_dir("fw-statistics", in wl1251_debugfs_init()
[all …]
/linux/drivers/gpu/drm/i915/gvt/
H A Ddebugfs.c182 vgpu->debugfs = debugfs_create_dir(name, vgpu->gvt->debugfs_root); in intel_gvt_debugfs_add_vgpu()
184 debugfs_create_file("mmio_diff", 0444, vgpu->debugfs, vgpu, in intel_gvt_debugfs_add_vgpu()
186 debugfs_create_file_unsafe("scan_nonprivbb", 0644, vgpu->debugfs, vgpu, in intel_gvt_debugfs_add_vgpu()
188 debugfs_create_file_unsafe("status", 0644, vgpu->debugfs, vgpu, in intel_gvt_debugfs_add_vgpu()
202 debugfs_remove_recursive(vgpu->debugfs); in intel_gvt_debugfs_remove_vgpu()
203 vgpu->debugfs = NULL; in intel_gvt_debugfs_remove_vgpu()
/linux/drivers/video/fbdev/omap2/omapfb/dss/
H A DKconfig16 appropriate flags in <debugfs>/dynamic_debug/control.
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/fs/debugfs/
H A DMakefile2 debugfs-objs := inode.o file.o
4 obj-$(CONFIG_DEBUG_FS) += debugfs.o
/linux/tools/kvm/kvm_stat/
H A Dkvm_stat.txt32 *b*:: toggle events by guests (debugfs only, honors filters)
74 --debugfs::
75 retrieve statistics from debugfs
90 --debugfs-include-past::
91 include all available data on past events for debugfs
/linux/drivers/gpu/drm/omapdrm/
H A DKconfig26 appropriate flags in <debugfs>/dynamic_debug/control.
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/net/wireless/ath/wil6210/
H A DKconfig29 registers with debugfs. If COR were used, ISR would
47 bool "wil6210 debugfs support"
52 Say Y here to enable wil6210 debugfs support, using the
53 kernel debugfs infrastructure. Select this

12345678910>>...15