summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/procfs-probes.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/runtime/procfs-probes.c b/runtime/procfs-probes.c
index 73aa7e5f..8f9ff113 100644
--- a/runtime/procfs-probes.c
+++ b/runtime/procfs-probes.c
@@ -9,7 +9,8 @@
// translation process. It really should go here.
struct _stp_procfs_data {
char *buffer;
- unsigned long count;
+ size_t bufsize;
+ size_t count;
};
#endif
@@ -20,10 +21,8 @@ struct stap_procfs_probe {
const char *write_pp;
void (*write_ph) (struct context*);
- // FIXME: Eventually, this could get bigger than MAXSTRINGLEN
- // when we support 'probe procfs("file").read.maxbuf(8192)'
- // (bug 10690).
- string_t buffer;
+ char *buffer;
+ const size_t bufsize;
size_t count;
int needs_fill;