Home
last modified time | relevance | path

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

12345678910>>...74

/linux-6.12.1/drivers/usb/typec/ucsi/
Ddebugfs.c3 * 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()
45 &ucsi->debugfs->response, in ucsi_cmd()
46 sizeof(ucsi->debugfs->response)); in ucsi_cmd()
53 ucsi->debugfs->status = ret; in ucsi_cmd()
65 if (ucsi->debugfs->status) in ucsi_resp_show()
66 return ucsi->debugfs->status; in ucsi_resp_show()
68 seq_printf(s, "0x%016llx%016llx\n", ucsi->debugfs->response.high, in ucsi_resp_show()
[all …]
/linux-6.12.1/Documentation/filesystems/
Ddebugfs.rst5 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-6.12.1/drivers/scsi/fnic/
Dfnic_debugfs.c6 #include <linux/debugfs.h>
31 * fnic_debugfs_init - Initialize debugfs for fnic debug logging
34 * When Debugfs is configured this routine sets up the fnic debugfs
62 * fnic_debugfs_terminate - Tear down debugfs infrastructure
65 * When Debugfs is configured this routine removes debugfs file system
82 * or fc_trace_clear debugfs file
114 pr_err("fnic: Cannot read to any debugfs file\n"); in fnic_trace_ctrl_read()
122 * fc_trace_clear debugfs file
165 pr_err("fnic: cannot write to any debugfs file\n"); in fnic_trace_ctrl_write()
185 * This routine is the entry point for the debugfs open file operation.
[all …]
/linux-6.12.1/tools/testing/selftests/drivers/net/virtio_net/
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
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-6.12.1/net/bluetooth/
Dhci_debugfs.c24 #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-6.12.1/net/mac80211/
Ddebugfs_key.c14 #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-6.12.1/drivers/memory/tegra/
Dtegra186-emc.c7 #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-6.12.1/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-6.12.1/lib/kunit/
Ddebugfs.c7 #include <linux/debugfs.h>
14 #include "debugfs.h"
21 * Create a debugfs representation of test suites:
75 /* Print KTAP header so the debugfs log can be parsed as valid KTAP. */ in debugfs_print_results()
109 * Print a usage message to the debugfs "run" file
117 seq_printf(seq, "usage: echo \"any string\" > /sys/kernel/debugfs/kunit/%s/run\n", in debugfs_print_run()
123 * The debugfs "run" file (/sys/kernel/debug/kunit/<testsuite>/run)
137 * Trigger a test suite to run by writing to the suite's "run" debugfs
173 /* If suite log already allocated, do not create new debugfs files. */ in kunit_debugfs_create_suite()
178 * Allocate logs before creating debugfs representation. in kunit_debugfs_create_suite()
[all …]
/linux-6.12.1/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>
88 * This could only happen if some debugfs user erroneously calls in debugfs_file_get()
154 * debugfs_enter_cancellation - enter a debugfs cancellation
159 * When a debugfs file is removed it needs to wait for all active
165 * This function can be used inside a debugfs handler that may
169 * and leave the debugfs handler function as soon as possible.
281 WARN(1, "debugfs file owner did not clean up at exit: %pd", in open_proxy_open()
418 WARN(1, "debugfs file owner did not clean up at exit: %pd", in full_proxy_open()
[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
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()
307 .name = "debugfs",
312 MODULE_ALIAS_FS("debugfs");
315 * debugfs_lookup() - look up an existing debugfs file
323 * If debugfs is not enabled in the kernel, the value -%ENODEV will be
[all …]
/linux-6.12.1/drivers/crypto/intel/qat/qat_common/
Dadf_dbgfs.c4 #include <linux/debugfs.h>
16 * adf_dbgfs_init() - add persistent debugfs entries
19 * This function creates debugfs entries that are persistent through a device
27 /* Create dev top level debugfs entry */ in adf_dbgfs_init()
43 * adf_dbgfs_exit() - remove persistent debugfs entries
54 * adf_dbgfs_add() - add non-persistent debugfs entries
57 * This function creates debugfs entries that are not persistent through
75 * adf_dbgfs_rm() - remove non-persistent debugfs entries
/linux-6.12.1/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
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-6.12.1/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_kms.h139 * Debugfs functions - extra helper functions for debugfs support
141 * Main debugfs documentation is located at,
143 * Documentation/filesystems/debugfs.rst
149 * dpu_debugfs_create_regset32 - Create register read back file for debugfs
156 * @name: File name within debugfs
157 * @mode: File mode within debugfs
158 * @parent: Parent directory entry within debugfs, can be NULL
168 * dpu_debugfs_get_root - Return root directory entry for KMS's debugfs
171 * debugfs create calls.
175 * Return: dentry pointer for DPU's debugfs location
/linux-6.12.1/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-6.12.1/Documentation/dev-tools/kunit/
Drun_manual.rst52 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-6.12.1/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-6.12.1/drivers/vdpa/mlx5/net/
Ddebug.c4 #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-6.12.1/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-6.12.1/drivers/soundwire/
Dintel_ace2x_debugfs.c5 #include <linux/debugfs.h>
18 * debugfs
124 struct dentry *root = sdw->cdns.bus.debugfs; in intel_ace2x_debugfs_init()
129 sdw->debugfs = debugfs_create_dir("intel-sdw", root); in intel_ace2x_debugfs_init()
131 debugfs_create_file("intel-registers", 0400, sdw->debugfs, sdw, in intel_ace2x_debugfs_init()
134 debugfs_create_file("intel-m-datamode", 0200, sdw->debugfs, sdw, in intel_ace2x_debugfs_init()
137 debugfs_create_file("intel-s-datamode", 0200, sdw->debugfs, sdw, in intel_ace2x_debugfs_init()
140 sdw_cdns_debugfs_init(&sdw->cdns, sdw->debugfs); in intel_ace2x_debugfs_init()
145 debugfs_remove_recursive(sdw->debugfs); in intel_ace2x_debugfs_exit()
/linux-6.12.1/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-6.12.1/include/drm/
Ddrm_debugfs.h46 * debugfs file for dumping the GPU VA space regions and mappings.
54 * struct drm_info_list - debugfs info list entry
56 * This structure represents a debugfs file to be created by the drm
77 * struct drm_info_node - Per-minor debugfs node structure
79 * This structure represents a debugfs file, as an instantiation of a &struct
84 * No it doesn't make a hole lot of sense that we duplicate debugfs entries for
99 * struct drm_debugfs_info - debugfs info list entry
101 * This structure represents a debugfs file to be created by the drm
125 * struct drm_debugfs_entry - Per-device debugfs node structure
127 * This structure represents a debugfs file, as an instantiation of a &struct
/linux-6.12.1/drivers/gpu/drm/i915/gvt/
Ddebugfs.c23 #include <linux/debugfs.h>
171 * intel_gvt_debugfs_add_vgpu - register debugfs entries for a vGPU
179 vgpu->debugfs = debugfs_create_dir(name, vgpu->gvt->debugfs_root); in intel_gvt_debugfs_add_vgpu()
181 debugfs_create_file("mmio_diff", 0444, vgpu->debugfs, vgpu, in intel_gvt_debugfs_add_vgpu()
183 debugfs_create_file_unsafe("scan_nonprivbb", 0644, vgpu->debugfs, vgpu, in intel_gvt_debugfs_add_vgpu()
185 debugfs_create_file_unsafe("status", 0644, vgpu->debugfs, vgpu, in intel_gvt_debugfs_add_vgpu()
190 * intel_gvt_debugfs_remove_vgpu - remove debugfs entries of a vGPU
199 debugfs_remove_recursive(vgpu->debugfs); in intel_gvt_debugfs_remove_vgpu()
200 vgpu->debugfs = NULL; in intel_gvt_debugfs_remove_vgpu()
205 * intel_gvt_debugfs_init - register gvt debugfs root entry
[all …]
/linux-6.12.1/net/hsr/
Dhsr_debugfs.c3 * debugfs code for HSR & PRP
11 #include <linux/debugfs.h>
74 * When debugfs is configured this routine sets up the node_table file per
83 pr_err("Cannot create hsr debugfs directory\n"); in hsr_debugfs_init()
100 /* hsr_debugfs_term - Tear down debugfs intrastructure
103 * When Debugfs is configured this routine removes debugfs file system
117 pr_err("Cannot create hsr debugfs root directory\n"); in hsr_debugfs_create_root()
/linux-6.12.1/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 …]

12345678910>>...74