mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-17 07:54:54 +08:00
s390/qdio: export SSQD via debugfs
While we print out various SSQD fields at initialization time, having raw & full access to the current SSQD can help with debugging. Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
This commit is contained in:
parent
014b020475
commit
ad451abee4
@ -190,6 +190,23 @@ static int qstat_show(struct seq_file *m, void *v)
|
||||
|
||||
DEFINE_SHOW_ATTRIBUTE(qstat);
|
||||
|
||||
static int ssqd_show(struct seq_file *m, void *v)
|
||||
{
|
||||
struct ccw_device *cdev = m->private;
|
||||
struct qdio_ssqd_desc ssqd;
|
||||
int rc;
|
||||
|
||||
rc = qdio_get_ssqd_desc(cdev, &ssqd);
|
||||
if (rc)
|
||||
return rc;
|
||||
|
||||
seq_hex_dump(m, "", DUMP_PREFIX_NONE, 16, 4, &ssqd, sizeof(ssqd),
|
||||
false);
|
||||
return 0;
|
||||
}
|
||||
|
||||
DEFINE_SHOW_ATTRIBUTE(ssqd);
|
||||
|
||||
static char *qperf_names[] = {
|
||||
"Assumed adapter interrupts",
|
||||
"QDIO interrupts",
|
||||
@ -303,6 +320,8 @@ void qdio_setup_debug_entries(struct qdio_irq *irq_ptr, struct ccw_device *cdev)
|
||||
debugfs_root);
|
||||
debugfs_create_file("statistics", S_IFREG | S_IRUGO | S_IWUSR,
|
||||
irq_ptr->debugfs_dev, irq_ptr, &debugfs_perf_fops);
|
||||
debugfs_create_file("ssqd", 0444, irq_ptr->debugfs_dev, cdev,
|
||||
&ssqd_fops);
|
||||
|
||||
for_each_input_queue(irq_ptr, q, i)
|
||||
setup_debugfs_entry(irq_ptr->debugfs_dev, q);
|
||||
|
Loading…
Reference in New Issue
Block a user