summaryrefslogtreecommitdiffstats
path: root/runtime/transport/procfs.c
diff options
context:
space:
mode:
authorhunt <hunt>2006-11-09 17:57:40 +0000
committerhunt <hunt>2006-11-09 17:57:40 +0000
commit68082782a65795f75dcbba4bd2d620c1520e6624 (patch)
treeda2234747e22b6c8b3085340cf9d79fcc6e33f9a /runtime/transport/procfs.c
parent400235a6ae7e4b1b275ebaa1c77c7801b018351b (diff)
downloadsystemtap-steved-68082782a65795f75dcbba4bd2d620c1520e6624.tar.gz
systemtap-steved-68082782a65795f75dcbba4bd2d620c1520e6624.tar.xz
systemtap-steved-68082782a65795f75dcbba4bd2d620c1520e6624.zip
2006-11-09 Martin Hunt <hunt@redhat.com>
* transport_msgs.h: Change all ints to int32_t. Prefix all struct names with "_stp". * transport.c: Use new struct names. (_stp_handle_start): Send pointer size and endianess. * procfs.c: Use new struct names.
Diffstat (limited to 'runtime/transport/procfs.c')
-rw-r--r--runtime/transport/procfs.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/runtime/transport/procfs.c b/runtime/transport/procfs.c
index 2605e8f1..d208766d 100644
--- a/runtime/transport/procfs.c
+++ b/runtime/transport/procfs.c
@@ -87,10 +87,10 @@ static ssize_t _stp_proc_write_cmd (struct file *file, const char __user *buf,
switch (type) {
case STP_START:
{
- struct transport_start st;
- if (count < sizeof(struct transport_start))
+ struct _stp_transport_start st;
+ if (count < sizeof(struct _stp_transport_start))
return 0;
- if (copy_from_user (&st, buf, sizeof(struct transport_start)))
+ if (copy_from_user (&st, buf, sizeof(struct _stp_transport_start)))
return -EFAULT;
_stp_handle_start (&st);
break;
@@ -107,11 +107,11 @@ static ssize_t _stp_proc_write_cmd (struct file *file, const char __user *buf,
break;
case STP_TRANSPORT_INFO:
{
- struct transport_info ti;
- kbug("STP_TRANSPORT_INFO %d %d\n", (int)count, (int)sizeof(struct transport_info));
- if (count < sizeof(struct transport_info))
+ struct _stp_transport_info ti;
+ kbug("STP_TRANSPORT_INFO %d %d\n", (int)count, (int)sizeof(struct _stp_transport_info));
+ if (count < sizeof(struct _stp_transport_info))
return 0;
- if (copy_from_user (&ti, buf, sizeof(struct transport_info)))
+ if (copy_from_user (&ti, buf, sizeof(struct _stp_transport_info)))
return -EFAULT;
if (_stp_transport_open (&ti) < 0)
return -1;