diff options
author | David Smith <dsmith@redhat.com> | 2009-01-20 15:59:47 -0600 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2009-01-20 15:59:47 -0600 |
commit | f53975c8047cad5fb37e59196c48daaa99613207 (patch) | |
tree | 938ef8a8cd7232267a0403f61742e54f4b13e32d /scripts/kprobes_test/config_opts.py | |
parent | 316ac9052cb44a69729357f74a331b66f15d12f0 (diff) | |
download | systemtap-steved-f53975c8047cad5fb37e59196c48daaa99613207.tar.gz systemtap-steved-f53975c8047cad5fb37e59196c48daaa99613207.tar.xz systemtap-steved-f53975c8047cad5fb37e59196c48daaa99613207.zip |
Adding kprobes test scripts.
Diffstat (limited to 'scripts/kprobes_test/config_opts.py')
-rw-r--r-- | scripts/kprobes_test/config_opts.py | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/scripts/kprobes_test/config_opts.py b/scripts/kprobes_test/config_opts.py new file mode 100644 index 00000000..6163db50 --- /dev/null +++ b/scripts/kprobes_test/config_opts.py @@ -0,0 +1,32 @@ +# Copyright (C) 2008 Red Hat Inc. +# +# This file is part of systemtap, and is free software. You can +# redistribute it and/or modify it under the terms of the GNU General +# Public License (GPL); either version 2, or (at your option) any +# later version. + +import os +import sys + +# Here we set up the default config options. These can be overridden +# by the config file. +config_opts = dict() + +# Various file names +config_opts['probes_result'] = 'probe.out' +config_opts['probes_all'] = 'probes.all' +config_opts['probes_pending'] = 'probes.pending' +config_opts['probes_current'] = 'probes.current' +config_opts['probes_passed'] = 'probes.passed' +config_opts['probes_failed'] = 'probes.failed' +config_opts['probes_untriggered'] = 'probes.untriggered' +config_opts['probes_unregistered'] = 'probes.unregistered' + +# Read in the config file +print "Reading config file..." +cfg = os.path.join(os.getcwd(), 'default.cfg') +if os.path.exists(cfg): + execfile(cfg) +else: + print >>sys.stderr, ("Could not find required config file: %s" % cfg) + sys.exit(1) |