diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-01-31 09:13:27 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-01-31 09:13:27 +0000 |
commit | d66e065f7f5e8ded336a4ad42a99ab98b00d1083 (patch) | |
tree | fe8a8def386d2661928bc9566cf490a17d755581 /tools/xenstore/xenstored_probes.d | |
parent | 87fdf3231c5f7998037b1962506dd1bb81cd4ac3 (diff) | |
download | xen-d66e065f7f5e8ded336a4ad42a99ab98b00d1083.tar.gz xen-d66e065f7f5e8ded336a4ad42a99ab98b00d1083.tar.bz2 xen-d66e065f7f5e8ded336a4ad42a99ab98b00d1083.zip |
Add DTrace support to xenstored
Add USDT probes for significant xenstore operations to allow dynamic
tracing.
Signed-off-by: John Levon <john.levon@sun.com>
Diffstat (limited to 'tools/xenstore/xenstored_probes.d')
-rw-r--r-- | tools/xenstore/xenstored_probes.d | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tools/xenstore/xenstored_probes.d b/tools/xenstore/xenstored_probes.d new file mode 100644 index 0000000000..f72d38f935 --- /dev/null +++ b/tools/xenstore/xenstored_probes.d @@ -0,0 +1,28 @@ +/* + * Copyright 2007 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 2 of the License. + */ + +#include <sys/types.h> + +provider xenstore { + /* tx id, dom id, pid, type, msg */ + probe msg(uint32_t, unsigned int, pid_t, int, const char *); + /* tx id, dom id, pid, type, reply */ + probe reply(uint32_t, unsigned int, pid_t, int, const char *); + /* tx id, dom id, pid, reply */ + probe error(uint32_t, unsigned int, pid_t, const char *); + /* dom id, pid, watch details */ + probe watch_event(unsigned int, pid_t, const char *); +}; + +#pragma D attributes Evolving/Evolving/Common provider xenstore provider +#pragma D attributes Private/Private/Unknown provider xenstore module +#pragma D attributes Private/Private/Unknown provider xenstore function +#pragma D attributes Evolving/Evolving/Common provider xenstore name +#pragma D attributes Evolving/Evolving/Common provider xenstore args + |