| /linux/tools/testing/selftests/kvm/x86/ |
| H A D | debug_regs.c | 83 struct kvm_guest_debug debug; in main() local 107 memset(&debug, 0, sizeof(debug)); in main() 108 debug.control = KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE_SW_BP; in main() 109 vcpu_guest_debug_set(vcpu, &debug); in main() 112 run->debug.arch.exception == BP_VECTOR && in main() 113 run->debug.arch.pc == CAST_TO_RIP(sw_bp), in main() 115 run->exit_reason, run->debug.arch.exception, in main() 116 run->debug.arch.pc, CAST_TO_RIP(sw_bp)); in main() 121 memset(&debug, 0, sizeof(debug)); in main() 122 debug.control = KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE_HW_BP; in main() [all …]
|
| /linux/arch/powerpc/kernel/ptrace/ |
| H A D | ptrace-adv.c | 13 task->thread.debug.dbcr0 &= ~DBCR0_BT; in user_enable_single_step() 14 task->thread.debug.dbcr0 |= DBCR0_IDM | DBCR0_IC; in user_enable_single_step() 25 task->thread.debug.dbcr0 &= ~DBCR0_IC; in user_enable_block_step() 26 task->thread.debug.dbcr0 = DBCR0_IDM | DBCR0_BT; in user_enable_block_step() 43 task->thread.debug.dbcr0 &= ~(DBCR0_IC | DBCR0_BT); in user_disable_single_step() 47 if (!DBCR_ACTIVE_EVENTS(task->thread.debug.dbcr0, in user_disable_single_step() 48 task->thread.debug.dbcr1)) { in user_disable_single_step() 52 task->thread.debug.dbcr0 &= ~DBCR0_IDM; in user_disable_single_step() 80 return put_user(child->thread.debug.dac1, datalp); in ptrace_get_debugreg() 110 task->thread.debug.dac1 = data & ~0x3UL; in ptrace_set_debugreg() [all …]
|
| /linux/drivers/gpu/drm/msm/dp/ |
| H A D | dp_debug.c | 29 struct msm_dp_debug_private *debug = seq->private; in msm_dp_debug_show() local 34 if (!debug) in msm_dp_debug_show() 37 drm_mode = &debug->panel->msm_dp_mode.drm_mode; in msm_dp_debug_show() 41 debug->panel->link_info.rate); in msm_dp_debug_show() 43 debug->panel->link_info.num_lanes); in msm_dp_debug_show() 45 debug->panel->link_info.capabilities); in msm_dp_debug_show() 59 debug->panel->msm_dp_mode.h_active_low, in msm_dp_debug_show() 60 debug->panel->msm_dp_mode.v_active_low); in msm_dp_debug_show() 68 debug->panel->msm_dp_mode.bpp); in msm_dp_debug_show() 72 debug->link->sink_request); in msm_dp_debug_show() [all …]
|
| /linux/drivers/media/platform/rockchip/rkisp1/ |
| H A D | rkisp1-debug.c | 196 struct rkisp1_debug *debug = &rkisp1->debug; in rkisp1_debug_init() local 199 debug->debugfs_dir = debugfs_create_dir(dev_name(rkisp1->dev), NULL); in rkisp1_debug_init() 201 debugfs_create_ulong("data_loss", 0444, debug->debugfs_dir, in rkisp1_debug_init() 202 &debug->data_loss); in rkisp1_debug_init() 203 debugfs_create_ulong("outform_size_err", 0444, debug->debugfs_dir, in rkisp1_debug_init() 204 &debug->outform_size_error); in rkisp1_debug_init() 206 debug->debugfs_dir, in rkisp1_debug_init() 207 &debug->img_stabilization_size_error); in rkisp1_debug_init() 208 debugfs_create_ulong("inform_size_error", 0444, debug->debugfs_dir, in rkisp1_debug_init() 209 &debug->inform_size_error); in rkisp1_debug_init() [all …]
|
| /linux/Documentation/arch/s390/ |
| H A D | s390dbf.rst | 6 - arch/s390/kernel/debug.c 7 - arch/s390/include/asm/debug.h 11 The goal of this feature is to provide a kernel debug logging API 13 (e.g. device drivers) can have one separate debug log. 14 One purpose of this is to inspect the debug logs after a production system crash 18 it is possible to look at the debug logs on a live system via the Linux 21 The debug feature may also very useful for kernel and driver development. 25 Kernel components (e.g. device drivers) can register themselves at the debug 28 debug log for the caller. For each debug log exists a number of debug areas 29 where exactly one is active at one time. Each debug area consists of contiguous [all …]
|
| /linux/rust/syn/gen/ |
| H A D | debug.rs | 22 self.debug(formatter, "AngleBracketedGenericArguments") in fmt() 27 fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result { in debug() method 347 crate::Data::Struct(v0) => v0.debug(formatter, "Struct"), in fmt() 348 crate::Data::Enum(v0) => v0.debug(formatter, "Enum"), in fmt() 349 crate::Data::Union(v0) => v0.debug(formatter, "Union"), in fmt() 357 self.debug(formatter, "DataEnum") in fmt() 362 fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result { in debug() method 374 self.debug(formatter, "DataStruct") in fmt() 379 fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result { in debug() method 391 self.debug(formatter, "DataUnion") in fmt() [all …]
|
| /linux/drivers/pci/hotplug/ |
| H A D | ibmphp_ebda.c | 114 debug("%s - slot_min = %x\n", __func__, ptr->slot_min); in print_bus_info() 115 debug("%s - slot_max = %x\n", __func__, ptr->slot_max); in print_bus_info() 116 debug("%s - slot_count = %x\n", __func__, ptr->slot_count); in print_bus_info() 117 debug("%s - bus# = %x\n", __func__, ptr->busno); in print_bus_info() 118 debug("%s - current_speed = %x\n", __func__, ptr->current_speed); in print_bus_info() 119 debug("%s - controller_id = %x\n", __func__, ptr->controller_id); in print_bus_info() 121 debug("%s - slots_at_33_conv = %x\n", __func__, ptr->slots_at_33_conv); in print_bus_info() 122 debug("%s - slots_at_66_conv = %x\n", __func__, ptr->slots_at_66_conv); in print_bus_info() 123 debug("%s - slots_at_66_pcix = %x\n", __func__, ptr->slots_at_66_pcix); in print_bus_info() 124 debug("%s - slots_at_100_pcix = %x\n", __func__, ptr->slots_at_100_pcix); in print_bus_info() [all …]
|
| H A D | ibmphp_core.c | 39 static bool debug; variable 40 module_param(debug, bool, S_IRUGO | S_IWUSR); 41 MODULE_PARM_DESC(debug, "Debugging mode enabled or not"); 58 debug("options = %x\n", slot_cur->ctrl->options); in get_cur_bus_info() 59 debug("revision = %x\n", slot_cur->ctrl->revision); in get_cur_bus_info() 74 debug("busstatus = %x, bus_speed = %x, bus_mode = %x\n", in get_cur_bus_info() 140 debug("(*cur_slot)->irq[0] = %x\n", in ibmphp_init_devno() 142 debug("(*cur_slot)->irq[1] = %x\n", in ibmphp_init_devno() 144 debug("(*cur_slot)->irq[2] = %x\n", in ibmphp_init_devno() 146 debug("(*cur_slot)->irq[3] = %x\n", in ibmphp_init_devno() [all …]
|
| H A D | ibmphp_pci.c | 81 debug("inside configure_card, func->busno = %x\n", func->busno); in ibmphp_configure_card() 98 debug("inside the loop, cur_func->busno = %x, cur_func->device = %x, cur_func->function = %x\n", in ibmphp_configure_card() 103 debug("vendor_id is %x\n", vendor_id); in ibmphp_configure_card() 106 debug("found valid device, vendor_id = %x\n", vendor_id); in ibmphp_configure_card() 119 debug("hrd_type = %x, class = %x, class_code %x\n", hdr_type, class, class_code); in ibmphp_configure_card() 132 …debug("single device case.... vendor id = %x, hdr_type = %x, class = %x\n", vendor_id, hdr_type, c… in ibmphp_configure_card() 233 debug("class now is %x\n", class); in ibmphp_configure_card() 242 debug("cur_func->busno b4 configure_bridge is %x\n", cur_func->busno); in ibmphp_configure_card() 256 debug("cur_func->busno = %x, device = %x, function = %x\n", in ibmphp_configure_card() 259 debug("after configuring bridge..., sec_number = %x\n", sec_number); in ibmphp_configure_card() [all …]
|
| /linux/drivers/net/wireless/st/cw1200/ |
| H A D | debug.h | 35 ++priv->debug->tx; in cw1200_debug_txed() 40 ++priv->debug->tx_agg; in cw1200_debug_txed_agg() 46 ++priv->debug->tx_multi; in cw1200_debug_txed_multi() 47 priv->debug->tx_multi_frames += count; in cw1200_debug_txed_multi() 52 ++priv->debug->rx; in cw1200_debug_rxed() 57 ++priv->debug->rx_agg; in cw1200_debug_rxed_agg() 62 ++priv->debug->tx_cache_miss; in cw1200_debug_tx_cache_miss() 67 ++priv->debug->tx_align; in cw1200_debug_tx_align() 72 ++priv->debug->tx_ttl; in cw1200_debug_tx_ttl() 77 ++priv->debug->tx_burst; in cw1200_debug_tx_burst() [all …]
|
| /linux/Documentation/trace/coresight/ |
| H A D | coresight-cpu-debug.rst | 11 Coresight CPU debug module is defined in ARMv8-a architecture reference manual 12 (ARM DDI 0487A.k) Chapter 'Part H: External debug', the CPU can integrate 13 debug module and it is mainly used for two modes: self-hosted debug and 14 external debug. Usually the external debug mode is well known as the external 16 explore debugging method which rely on self-hosted debug mode, this document 19 The debug module provides sample-based profiling extension, which can be used 21 every CPU has one dedicated debug module to be connected. Based on self-hosted 22 debug mechanism, Linux kernel can access these related registers from mmio 36 - At the time this documentation was written, the debug driver mainly relies on 69 Before accessing debug registers, we should ensure the clock and power domain [all …]
|
| /linux/drivers/scsi/mpt3sas/ |
| H A D | mpt3sas_debugfs.c | 44 struct mpt3sas_debugfs_buffer *debug = filp->private_data; in _debugfs_iocdump_read() local 46 if (!debug || !debug->buf) in _debugfs_iocdump_read() 49 return simple_read_from_buffer(ubuf, cnt, ppos, debug->buf, debug->len); in _debugfs_iocdump_read() 59 struct mpt3sas_debugfs_buffer *debug; in _debugfs_iocdump_open() local 61 debug = kzalloc_obj(struct mpt3sas_debugfs_buffer); in _debugfs_iocdump_open() 62 if (!debug) in _debugfs_iocdump_open() 65 debug->buf = (void *)ioc; in _debugfs_iocdump_open() 66 debug->len = sizeof(struct MPT3SAS_ADAPTER); in _debugfs_iocdump_open() 67 file->private_data = debug; in _debugfs_iocdump_open() 79 struct mpt3sas_debugfs_buffer *debug = file->private_data; in _debugfs_iocdump_release() local [all …]
|
| /linux/drivers/net/wireless/ath/ath9k/ |
| H A D | debug.c | 32 sc->debug.stats.istats.sync_cause_all++; in ath9k_debug_sync_cause() 34 sc->debug.stats.istats.sync_rtc_irq++; in ath9k_debug_sync_cause() 36 sc->debug.stats.istats.sync_mac_irq++; in ath9k_debug_sync_cause() 38 sc->debug.stats.istats.eeprom_illegal_access++; in ath9k_debug_sync_cause() 40 sc->debug.stats.istats.apb_timeout++; in ath9k_debug_sync_cause() 42 sc->debug.stats.istats.pci_mode_conflict++; in ath9k_debug_sync_cause() 44 sc->debug.stats.istats.host1_fatal++; in ath9k_debug_sync_cause() 46 sc->debug.stats.istats.host1_perr++; in ath9k_debug_sync_cause() 48 sc->debug.stats.istats.trcv_fifo_perr++; in ath9k_debug_sync_cause() 50 sc->debug.stats.istats.radm_cpl_ep++; in ath9k_debug_sync_cause() [all …]
|
| H A D | htc_drv_debug.c | 202 priv->debug.tx_stats.buf_queued); in read_file_xmit() 205 priv->debug.tx_stats.buf_completed); in read_file_xmit() 208 priv->debug.tx_stats.skb_queued); in read_file_xmit() 211 priv->debug.tx_stats.skb_success); in read_file_xmit() 214 priv->debug.tx_stats.skb_failed); in read_file_xmit() 217 priv->debug.tx_stats.cab_queued); in read_file_xmit() 221 priv->debug.tx_stats.queue_stats[IEEE80211_AC_BE]); in read_file_xmit() 224 priv->debug.tx_stats.queue_stats[IEEE80211_AC_BK]); in read_file_xmit() 227 priv->debug.tx_stats.queue_stats[IEEE80211_AC_VI]); in read_file_xmit() 230 priv->debug.tx_stats.queue_stats[IEEE80211_AC_VO]); in read_file_xmit() [all …]
|
| /linux/drivers/scsi/megaraid/ |
| H A D | megaraid_sas_debugfs.c | 51 struct megasas_debugfs_buffer *debug = filp->private_data; in megasas_debugfs_read() local 53 if (!debug || !debug->buf) in megasas_debugfs_read() 56 return simple_read_from_buffer(ubuf, cnt, ppos, debug->buf, debug->len); in megasas_debugfs_read() 63 struct megasas_debugfs_buffer *debug; in megasas_debugfs_raidmap_open() local 68 debug = kzalloc_obj(struct megasas_debugfs_buffer); in megasas_debugfs_raidmap_open() 69 if (!debug) in megasas_debugfs_raidmap_open() 72 debug->buf = (void *)fusion->ld_drv_map[(instance->map_id & 1)]; in megasas_debugfs_raidmap_open() 73 debug->len = fusion->drv_map_sz; in megasas_debugfs_raidmap_open() 74 file->private_data = debug; in megasas_debugfs_raidmap_open() 82 struct megasas_debug_buffer *debug = file->private_data; in megasas_debugfs_release() local [all …]
|
| /linux/drivers/scsi/fnic/ |
| H A D | fnic_debugfs.c | 437 struct stats_debug_info *debug; in fnic_reset_stats_open() local 439 debug = kzalloc_obj(struct stats_debug_info); in fnic_reset_stats_open() 440 if (!debug) in fnic_reset_stats_open() 443 debug->i_private = inode->i_private; in fnic_reset_stats_open() 445 file->private_data = debug; in fnic_reset_stats_open() 469 struct stats_debug_info *debug = file->private_data; in fnic_reset_stats_read() local 470 struct fnic *fnic = (struct fnic *)debug->i_private; in fnic_reset_stats_read() 497 struct stats_debug_info *debug = file->private_data; in fnic_reset_stats_write() local 498 struct fnic *fnic = (struct fnic *)debug->i_private; in fnic_reset_stats_write() 560 struct stats_debug_info *debug = file->private_data; in fnic_reset_stats_release() local [all …]
|
| /linux/drivers/scsi/lpfc/ |
| H A D | lpfc_debugfs.c | 1945 struct lpfc_debug *debug; in lpfc_debugfs_disc_trc_open() local 1954 debug = kmalloc_obj(*debug); in lpfc_debugfs_disc_trc_open() 1955 if (!debug) in lpfc_debugfs_disc_trc_open() 1962 debug->buffer = kmalloc(size, GFP_KERNEL); in lpfc_debugfs_disc_trc_open() 1963 if (!debug->buffer) { in lpfc_debugfs_disc_trc_open() 1964 kfree(debug); in lpfc_debugfs_disc_trc_open() 1968 debug->len = lpfc_debugfs_disc_trc_data(vport, debug->buffer, size); in lpfc_debugfs_disc_trc_open() 1969 file->private_data = debug; in lpfc_debugfs_disc_trc_open() 1995 struct lpfc_debug *debug; in lpfc_debugfs_slow_ring_trc_open() local 2004 debug = kmalloc_obj(*debug); in lpfc_debugfs_slow_ring_trc_open() [all …]
|
| /linux/Documentation/driver-api/usb/ |
| H A D | usb3-debug-port.rst | 2 USB3 debug port 11 This is a HOWTO for using the USB3 debug port on x86 systems. 14 debug port, you need to:: 16 1) check whether any USB3 debug port is available in 24 The xHCI debug capability (DbC) is an optional but standalone 28 When DbC is initialized and enabled, it will present a debug 29 device through the debug port (normally the first USB3 30 super-speed port). The debug device is fully compliant with 32 performance full-duplex serial link between the debug target 33 (the system under debugging) and a debug host. [all …]
|
| /linux/Documentation/translations/zh_CN/dev-tools/ |
| H A D | kmemleak.rst | 13 被释放,而是仅通过 /sys/kernel/debug/kmemleak 报告。Valgrind 工具 24 # mount -t debugfs nodev /sys/kernel/debug/ 28 # cat /sys/kernel/debug/kmemleak 32 # echo scan > /sys/kernel/debug/kmemleak 36 # echo clear > /sys/kernel/debug/kmemleak 38 当再次读取 ``/sys/kernel/debug/kmemleak`` 文件时,将会输出自上次扫描以来检测到的 44 可以通过写入 ``/sys/kernel/debug/kmemleak`` 文件在运行时修改内存扫描参数。下面是 98 4. 剩余的白色对象就被认为是孤立的并通过 /sys/kernel/debug/kmemleak 报告。 107 在初始化启动阶段 /sys/kernel/debug/kmemleak 的输出可能会很多,这也可能是你在开发 109 /sys/kernel/debug/kmemleak 输出的所有的未引用对象。在执行 'clear' 后执行 'scan' [all …]
|
| /linux/drivers/net/wireless/ath/ath10k/ |
| H A D | debug.c | 249 ar->debug.fw_stats_done = false; in ath10k_debug_fw_stats_reset() 250 ar->debug.fw_stats.extended = false; in ath10k_debug_fw_stats_reset() 251 ath10k_fw_stats_pdevs_free(&ar->debug.fw_stats.pdevs); in ath10k_debug_fw_stats_reset() 252 ath10k_fw_stats_vdevs_free(&ar->debug.fw_stats.vdevs); in ath10k_debug_fw_stats_reset() 253 ath10k_fw_stats_peers_free(&ar->debug.fw_stats.peers); in ath10k_debug_fw_stats_reset() 254 ath10k_fw_extd_stats_peers_free(&ar->debug.fw_stats.peers_extd); in ath10k_debug_fw_stats_reset() 292 if (ar->debug.fw_stats_done) { in ath10k_debug_fw_stats_process() 299 num_peers = list_count_nodes(&ar->debug.fw_stats.peers); in ath10k_debug_fw_stats_process() 300 num_vdevs = list_count_nodes(&ar->debug.fw_stats.vdevs); in ath10k_debug_fw_stats_process() 301 is_start = (list_empty(&ar->debug.fw_stats.pdevs) && in ath10k_debug_fw_stats_process() [all …]
|
| /linux/drivers/scsi/ |
| H A D | script_asm.pl | 39 $debug = 0; # Print general debugging messages 152 print STDERR "value regex = $value\n" if ($debug); 155 print STDERR "phase regex = $phase\n" if ($debug); 207 if ($debug) { 218 printf STDERR "New code : %08x\n", $code[$address] if ($debug); 240 print STDERR "Relative reference $symbol\n" if ($debug); 245 print STDERR "Absolute reference $symbol\n" if ($debug); 249 print STDERR "Referencing symbol $1, length = $length in $_\n" if ($debug); 279 print STDERR "$0 : parsed WHEN\n" if ($debug); 282 print STDERR "$0 : parsed IF\n" if ($debug); [all …]
|
| /linux/Documentation/ABI/testing/ |
| H A D | debugfs-amd-iommu | 1 What: /sys/kernel/debug/iommu/amd/iommu<x>/mmio 11 $ echo "0x18" > /sys/kernel/debug/iommu/amd/iommu00/mmio 12 $ cat /sys/kernel/debug/iommu/amd/iommu00/mmio 18 What: /sys/kernel/debug/iommu/amd/iommu<x>/capability 28 $ echo "0x10" > /sys/kernel/debug/iommu/amd/iommu00/capability 29 $ cat /sys/kernel/debug/iommu/amd/iommu00/capability 35 What: /sys/kernel/debug/iommu/amd/iommu<x>/cmdbuf 44 $ cat /sys/kernel/debug/iommu/amd/iommu<x>/cmdbuf 63 What: /sys/kernel/debug/iommu/amd/devid 76 $ echo 0000:01:00.0 > /sys/kernel/debug/iommu/amd/devid [all …]
|
| H A D | debugfs-hisi-hpre | 1 What: /sys/kernel/debug/hisi_hpre/<bdf>/cluster[0-3]/regs 4 Description: Dump debug registers from the HPRE cluster. 7 What: /sys/kernel/debug/hisi_hpre/<bdf>/cluster[0-3]/cluster_ctrl 11 and then we can read the debug information of the core. 14 What: /sys/kernel/debug/hisi_hpre/<bdf>/rdclr_en 17 Description: HPRE cores debug registers read clear control. 1 means enable 23 What: /sys/kernel/debug/hisi_hpre/<bdf>/current_qm 30 What: /sys/kernel/debug/hisi_hpre/<bdf>/alg_qos 40 What: /sys/kernel/debug/hisi_hpre/<bdf>/regs 43 Description: Dump debug registers from the HPRE. [all …]
|
| H A D | debugfs-hisi-zip | 1 What: /sys/kernel/debug/hisi_zip/<bdf>/comp_core[01]/regs 4 Description: Dump of compression cores related debug registers. 7 What: /sys/kernel/debug/hisi_zip/<bdf>/decomp_core[0-5]/regs 10 Description: Dump of decompression cores related debug registers. 13 What: /sys/kernel/debug/hisi_zip/<bdf>/clear_enable 16 Description: Compression/decompression core debug registers read clear 22 What: /sys/kernel/debug/hisi_zip/<bdf>/current_qm 29 What: /sys/kernel/debug/hisi_zip/<bdf>/alg_qos 39 What: /sys/kernel/debug/hisi_zip/<bdf>/qm/regs 42 Description: Dump of QM related debug registers. [all …]
|
| /linux/drivers/crypto/hisilicon/ |
| H A D | debugfs.c | 136 struct qm_debug *debug = file->debug; in file_to_qm() local 138 return container_of(debug, struct hisi_qm, debug); in file_to_qm() 338 memset(sqe + qm->debug.sqe_mask_offset, QM_SQE_ADDR_MASK, in qm_sq_dump() 339 qm->debug.sqe_mask_len); in qm_sq_dump() 633 if (val >= qm->debug.curr_qm_qp_num) in current_q_write() 697 qm->debug.curr_qm_qp_num = qm->qp_num; in current_qm_write() 699 qm->debug.curr_qm_qp_num = qm_get_vf_qp_num(qm, val); in current_qm_write() 879 qm->debug.qm_diff_regs = dfx_regs_init(qm, qm_diff_regs, ARRAY_SIZE(qm_diff_regs)); in qm_diff_regs_init() 880 if (IS_ERR(qm->debug.qm_diff_regs)) { in qm_diff_regs_init() 881 ret = PTR_ERR(qm->debug.qm_diff_regs); in qm_diff_regs_init() [all …]
|