lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1279797484.20942.97.camel@minggr.sh.intel.com>
Date:	Thu, 22 Jul 2010 19:18:04 +0800
From:	Lin Ming <ming.m.lin@...el.com>
To:	Ingo Molnar <mingo@...e.hu>,
	"James E.J. Bottomley" <James.Bottomley@...e.de>
Cc:	Robert Richter <robert.richter@....com>,
	Corey Ashford <cjashfor@...ux.vnet.ibm.com>,
	Johannes Berg <johannes@...solutions.net>,
	Peter Zijlstra <peterz@...radead.org>,
	Greg KH <greg@...ah.com>,
	Frederic Weisbecker <fweisbec@...il.com>,
	Paul Mundt <lethal@...ux-sh.org>,
	"eranian@...il.com" <eranian@...il.com>,
	"Gary.Mohr@...l.com" <Gary.Mohr@...l.com>,
	"arjan@...ux.intel.com" <arjan@...ux.intel.com>,
	"Zhang, Yanmin" <yanmin_zhang@...ux.intel.com>,
	Paul Mackerras <paulus@...ba.org>,
	"David S. Miller" <davem@...emloft.net>,
	Russell King <rmk+kernel@....linux.org.uk>,
	Arnaldo Carvalho de Melo <acme@...hat.com>,
	Will Deacon <will.deacon@....com>,
	Maynard Johnson <mpjohn@...ibm.com>,
	Carl Love <carll@...ibm.com>,
	Kay Sievers <kay.sievers@...y.org>,
	lkml <linux-kernel@...r.kernel.org>,
	Thomas Gleixner <tglx@...utronix.de>,
	Steven Rostedt <rostedt@...dmis.org>
Subject: [RFC][PATCH v1 14/15] perf: export tracepoint events via sysfs:
 scsi

scsi tracepoint events are exported like below,

/sys/devices/pci0000:00/0000:00:1c.4/0000:03:00.0/host4/scsi_host/host4/events
|-- scsi_dispatch_cmd_done
|   |-- config
|   `-- type
|-- scsi_dispatch_cmd_error
|   |-- config
|   `-- type
|-- scsi_dispatch_cmd_start
|   |-- config
|   `-- type
|-- scsi_dispatch_cmd_timeout
|   |-- config
|   `-- type
`-- scsi_eh_wakeup
    |-- config
    `-- type
/sys/devices/pci0000:00/0000:00:1c.4/0000:03:00.0/host5/scsi_host/host5/events
/sys/devices/pci0000:00/0000:00:1c.4/0000:03:00.0/host6/scsi_host/host6/events
/sys/devices/pci0000:00/0000:00:1c.4/0000:03:00.0/host7/scsi_host/host7/events
/sys/devices/pci0000:00/0000:00:1c.4/0000:03:00.0/host8/scsi_host/host8/events
/sys/devices/pci0000:00/0000:00:1f.1/host9/scsi_host/host9/events
/sys/devices/pci0000:00/0000:00:1f.1/host10/scsi_host/host10/events
/sys/devices/pci0000:00/0000:00:1f.2/host0/scsi_host/host0/events
/sys/devices/pci0000:00/0000:00:1f.2/host1/scsi_host/host1/events
/sys/devices/pci0000:00/0000:00:1f.2/host2/scsi_host/host2/events
/sys/devices/pci0000:00/0000:00:1f.2/host3/scsi_host/host3/events
---
 drivers/scsi/hosts.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c
index 6660fa9..7e256a6 100644
--- a/drivers/scsi/hosts.c
+++ b/drivers/scsi/hosts.c
@@ -30,6 +30,7 @@
 #include <linux/mm.h>
 #include <linux/init.h>
 #include <linux/completion.h>
+#include <linux/perf_event.h>
 #include <linux/transport_class.h>
 #include <linux/platform_device.h>
 
@@ -231,6 +232,8 @@ int scsi_add_host_with_dma(struct Scsi_Host *shost, struct device *dev,
 	if (error)
 		goto out_del_gendev;
 
+	perf_sys_add_tp(&shost->shost_dev.kobj, "scsi");
+
 	get_device(&shost->shost_gendev);
 
 	if (shost->transportt->host_size) {



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ