summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/bz6850.stp
diff options
context:
space:
mode:
authorDavid Smith <dsmith@redhat.com>2010-02-25 16:29:50 -0600
committerDavid Smith <dsmith@redhat.com>2010-02-25 16:29:50 -0600
commit38975255091d0c6bc33ae3c6907bb7886b70598d (patch)
treeb92dae620c94754b2828b7d92a51c29684a00085 /testsuite/systemtap.base/bz6850.stp
parente3d5f49468872aeec7f1f05a8afe40677859cf0f (diff)
downloadsystemtap-steved-38975255091d0c6bc33ae3c6907bb7886b70598d.tar.gz
systemtap-steved-38975255091d0c6bc33ae3c6907bb7886b70598d.tar.xz
systemtap-steved-38975255091d0c6bc33ae3c6907bb7886b70598d.zip
Fixed pr 10690 by adding '.maxsize(NNN)' procfs read probe parameter.
* tapset-procfs.cxx (procfs_derived_probe::procfs_derived_probe): Added 'maxsize_val' initialization. (procfs_derived_probe::join_group): Updated '_stp_procfs_data' definition and added STP_PROCFS_BUFSIZE. (procfs_derived_probe_group::emit_module_decls): Emits structure to contain procfs file buffers. Initializes '.bufsize' structure member. (procfs_var_expanding_visitor::visit_target_symbol): Uses 'bufsize' for maximum buffer size instead of using MAXSTRINGLEN. (procfs_builder::build): Looks for '.maxsize(NNN)' parameter. (register_tapset_procfs): Added '.maxsize(NNN)' parameter binding. * runtime/procfs-probes.c (stap_procfs_probe): Converted 'buffer' to a pointer and added 'bufsize' member. * testsuite/semko/procfs13.stp: New testcase. * testsuite/semko/procfs14.stp: Ditto. * testsuite/semko/procfs15.stp: Ditto. * testsuite/systemtap.base/procfs_maxsize.exp: Ditto. * testsuite/systemtap.base/procfs.exp: Minor fix. * stapprobes.3stap.in: Added '.maxsize(NNN)' documentation. * stap.1.in: Added STP_PROCFS_BUFSIZE documentation.
Diffstat (limited to 'testsuite/systemtap.base/bz6850.stp')
0 files changed, 0 insertions, 0 deletions