summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--runtime/Doxyfile1161
-rw-r--r--runtime/README45
-rw-r--r--runtime/alloc.h71
-rw-r--r--runtime/copy.c137
-rw-r--r--runtime/docs/examples/argv.c12
-rw-r--r--runtime/docs/examples/foreach.c9
-rw-r--r--runtime/docs/examples/map.c7
-rw-r--r--runtime/docs/header.html7
-rw-r--r--runtime/docs/html/MAP-example.html17
-rw-r--r--runtime/docs/html/README-source.html14
-rw-r--r--runtime/docs/html/README.html18
-rw-r--r--runtime/docs/html/alloc_8h-source.html53
-rw-r--r--runtime/docs/html/alloc_8h.html276
-rw-r--r--runtime/docs/html/annotated.html22
-rw-r--r--runtime/docs/html/argv__example_8c-example.html32
-rw-r--r--runtime/docs/html/bug.html27
-rw-r--r--runtime/docs/html/copy_8c-source.html111
-rw-r--r--runtime/docs/html/copy_8c.html204
-rw-r--r--runtime/docs/html/docs_2argv__example_8c-example.html20
-rw-r--r--runtime/docs/html/doxygen.css271
-rw-r--r--runtime/docs/html/doxygen.pngbin0 -> 1281 bytes
-rw-r--r--runtime/docs/html/examples.html16
-rw-r--r--runtime/docs/html/files.html22
-rw-r--r--runtime/docs/html/foreach_8c-example.html28
-rw-r--r--runtime/docs/html/ftv2blank.pngbin0 -> 174 bytes
-rw-r--r--runtime/docs/html/ftv2doc.pngbin0 -> 255 bytes
-rw-r--r--runtime/docs/html/ftv2folderclosed.pngbin0 -> 259 bytes
-rw-r--r--runtime/docs/html/ftv2folderopen.pngbin0 -> 261 bytes
-rw-r--r--runtime/docs/html/ftv2lastnode.pngbin0 -> 233 bytes
-rw-r--r--runtime/docs/html/ftv2link.pngbin0 -> 358 bytes
-rw-r--r--runtime/docs/html/ftv2mlastnode.pngbin0 -> 160 bytes
-rw-r--r--runtime/docs/html/ftv2mnode.pngbin0 -> 194 bytes
-rw-r--r--runtime/docs/html/ftv2node.pngbin0 -> 235 bytes
-rw-r--r--runtime/docs/html/ftv2plastnode.pngbin0 -> 165 bytes
-rw-r--r--runtime/docs/html/ftv2pnode.pngbin0 -> 200 bytes
-rw-r--r--runtime/docs/html/ftv2vertline.pngbin0 -> 229 bytes
-rw-r--r--runtime/docs/html/functions.html43
-rw-r--r--runtime/docs/html/functions_vars.html43
-rw-r--r--runtime/docs/html/globals.html99
-rw-r--r--runtime/docs/html/globals_defs.html28
-rw-r--r--runtime/docs/html/globals_enum.html21
-rw-r--r--runtime/docs/html/globals_eval.html27
-rw-r--r--runtime/docs/html/globals_func.html55
-rw-r--r--runtime/docs/html/globals_type.html19
-rw-r--r--runtime/docs/html/globals_vars.html19
-rw-r--r--runtime/docs/html/index.html40
-rw-r--r--runtime/docs/html/io_8c-source.html23
-rw-r--r--runtime/docs/html/io_8c.html75
-rw-r--r--runtime/docs/html/main.html17
-rw-r--r--runtime/docs/html/map_8c-source.html661
-rw-r--r--runtime/docs/html/map_8c.html1199
-rw-r--r--runtime/docs/html/map_8h-source.html146
-rw-r--r--runtime/docs/html/map_8h.html535
-rw-r--r--runtime/docs/html/pages.html19
-rw-r--r--runtime/docs/html/runtime_8h-source.html31
-rw-r--r--runtime/docs/html/runtime_8h.html67
-rw-r--r--runtime/docs/html/structmap__node.html138
-rw-r--r--runtime/docs/html/structmap__node__int64.html80
-rw-r--r--runtime/docs/html/structmap__node__stat.html80
-rw-r--r--runtime/docs/html/structmap__node__str.html80
-rw-r--r--runtime/docs/html/structmap__root.html370
-rw-r--r--runtime/docs/html/structstat.html165
-rw-r--r--runtime/docs/html/todo.html32
-rw-r--r--runtime/docs/html/tree.html139
-rw-r--r--runtime/docs/html/unionkey__data.html80
-rw-r--r--runtime/io.c19
-rw-r--r--runtime/map.c830
-rw-r--r--runtime/map.h141
-rw-r--r--runtime/runtime.h18
-rw-r--r--runtime/tests/Makefile3
-rw-r--r--runtime/tests/README4
-rw-r--r--runtime/tests/all.tcl11
-rw-r--r--runtime/tests/map.test385
-rw-r--r--runtime/tests/shellsnoop/Makefile9
-rw-r--r--runtime/tests/shellsnoop/README70
-rw-r--r--runtime/tests/shellsnoop/buildit1
-rw-r--r--runtime/tests/shellsnoop/dtr.c130
-rw-r--r--runtime/tests/test.h233
-rw-r--r--runtime/tests/test4_probe/Makefile9
-rw-r--r--runtime/tests/test4_probe/README23
-rw-r--r--runtime/tests/test4_probe/buildit1
-rw-r--r--runtime/tests/test4_probe/dtr.c108
-rw-r--r--runtime/tests/testl64.c134
-rw-r--r--runtime/tests/testl64R.c50
-rw-r--r--runtime/tests/testl64_alloc.c139
-rw-r--r--runtime/tests/testlist.c63
-rw-r--r--runtime/tests/testll64.c111
-rw-r--r--runtime/tests/testlongstr.c120
-rw-r--r--runtime/tests/teststat.c72
-rw-r--r--runtime/tests/teststr.c117
-rw-r--r--runtime/tests/teststrlong.c114
-rw-r--r--runtime/tests/teststrstr.c103
-rw-r--r--runtime/tests/teststrstrstr.c121
93 files changed, 10050 insertions, 0 deletions
diff --git a/runtime/Doxyfile b/runtime/Doxyfile
new file mode 100644
index 00000000..050d4449
--- /dev/null
+++ b/runtime/Doxyfile
@@ -0,0 +1,1161 @@
+# Doxyfile 1.3.9.1
+
+# This file describes the settings to be used by the documentation system
+# doxygen (www.doxygen.org) for a project
+#
+# All text after a hash (#) is considered a comment and will be ignored
+# The format is:
+# TAG = value [value, ...]
+# For lists items can also be appended using:
+# TAG += value [value, ...]
+# Values that contain spaces should be placed between quotes (" ")
+
+#---------------------------------------------------------------------------
+# Project related configuration options
+#---------------------------------------------------------------------------
+
+# The PROJECT_NAME tag is a single word (or a sequence of words surrounded
+# by quotes) that should identify the project.
+
+PROJECT_NAME = SystemTap
+
+# The PROJECT_NUMBER tag can be used to enter a project or revision number.
+# This could be handy for archiving the generated documentation or
+# if some version control system is used.
+
+PROJECT_NUMBER = 0.1
+
+# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
+# base path where the generated documentation will be put.
+# If a relative path is entered, it will be relative to the location
+# where doxygen was started. If left blank the current directory will be used.
+
+OUTPUT_DIRECTORY = docs
+
+# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
+# 4096 sub-directories (in 2 levels) under the output directory of each output
+# format and will distribute the generated files over these directories.
+# Enabling this option can be useful when feeding doxygen a huge amount of source
+# files, where putting all generated files in the same directory would otherwise
+# cause performance problems for the file system.
+
+CREATE_SUBDIRS = NO
+
+# The OUTPUT_LANGUAGE tag is used to specify the language in which all
+# documentation generated by doxygen is written. Doxygen will use this
+# information to generate all constant output in the proper language.
+# The default language is English, other supported languages are:
+# Brazilian, Catalan, Chinese, Chinese-Traditional, Croatian, Czech, Danish,
+# Dutch, Finnish, French, German, Greek, Hungarian, Italian, Japanese,
+# Japanese-en (Japanese with English messages), Korean, Korean-en, Norwegian,
+# Polish, Portuguese, Romanian, Russian, Serbian, Slovak, Slovene, Spanish,
+# Swedish, and Ukrainian.
+
+OUTPUT_LANGUAGE = English
+
+# This tag can be used to specify the encoding used in the generated output.
+# The encoding is not always determined by the language that is chosen,
+# but also whether or not the output is meant for Windows or non-Windows users.
+# In case there is a difference, setting the USE_WINDOWS_ENCODING tag to YES
+# forces the Windows encoding (this is the default for the Windows binary),
+# whereas setting the tag to NO uses a Unix-style encoding (the default for
+# all platforms other than Windows).
+
+USE_WINDOWS_ENCODING = NO
+
+# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will
+# include brief member descriptions after the members that are listed in
+# the file and class documentation (similar to JavaDoc).
+# Set to NO to disable this.
+
+BRIEF_MEMBER_DESC = YES
+
+# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend
+# the brief description of a member or function before the detailed description.
+# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
+# brief descriptions will be completely suppressed.
+
+REPEAT_BRIEF = YES
+
+# This tag implements a quasi-intelligent brief description abbreviator
+# that is used to form the text in various listings. Each string
+# in this list, if found as the leading text of the brief description, will be
+# stripped from the text and the result after processing the whole list, is used
+# as the annotated text. Otherwise, the brief description is used as-is. If left
+# blank, the following values are used ("$name" is automatically replaced with the
+# name of the entity): "The $name class" "The $name widget" "The $name file"
+# "is" "provides" "specifies" "contains" "represents" "a" "an" "the"
+
+ABBREVIATE_BRIEF =
+
+# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
+# Doxygen will generate a detailed section even if there is only a brief
+# description.
+
+ALWAYS_DETAILED_SEC = NO
+
+# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all inherited
+# members of a class in the documentation of that class as if those members were
+# ordinary class members. Constructors, destructors and assignment operators of
+# the base classes will not be shown.
+
+INLINE_INHERITED_MEMB = NO
+
+# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full
+# path before files name in the file list and in the header files. If set
+# to NO the shortest path that makes the file name unique will be used.
+
+FULL_PATH_NAMES = YES
+
+# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag
+# can be used to strip a user-defined part of the path. Stripping is
+# only done if one of the specified strings matches the left-hand part of
+# the path. The tag can be used to show relative paths in the file list.
+# If left blank the directory from which doxygen is run is used as the
+# path to strip.
+
+STRIP_FROM_PATH =
+
+# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of
+# the path mentioned in the documentation of a class, which tells
+# the reader which header file to include in order to use a class.
+# If left blank only the name of the header file containing the class
+# definition is used. Otherwise one should specify the include paths that
+# are normally passed to the compiler using the -I flag.
+
+STRIP_FROM_INC_PATH =
+
+# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter
+# (but less readable) file names. This can be useful is your file systems
+# doesn't support long names like on DOS, Mac, or CD-ROM.
+
+SHORT_NAMES = NO
+
+# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen
+# will interpret the first line (until the first dot) of a JavaDoc-style
+# comment as the brief description. If set to NO, the JavaDoc
+# comments will behave just like the Qt-style comments (thus requiring an
+# explicit @brief command for a brief description.
+
+JAVADOC_AUTOBRIEF = YES
+
+# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen
+# treat a multi-line C++ special comment block (i.e. a block of //! or ///
+# comments) as a brief description. This used to be the default behaviour.
+# The new default is to treat a multi-line C++ comment block as a detailed
+# description. Set this tag to YES if you prefer the old behaviour instead.
+
+MULTILINE_CPP_IS_BRIEF = NO
+
+# If the DETAILS_AT_TOP tag is set to YES then Doxygen
+# will output the detailed description near the top, like JavaDoc.
+# If set to NO, the detailed description appears after the member
+# documentation.
+
+DETAILS_AT_TOP = NO
+
+# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented
+# member inherits the documentation from any documented member that it
+# re-implements.
+
+INHERIT_DOCS = YES
+
+# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
+# tag is set to YES, then doxygen will reuse the documentation of the first
+# member in the group (if any) for the other members of the group. By default
+# all members of a group must be documented explicitly.
+
+DISTRIBUTE_GROUP_DOC = NO
+
+# The TAB_SIZE tag can be used to set the number of spaces in a tab.
+# Doxygen uses this value to replace tabs by spaces in code fragments.
+
+TAB_SIZE = 8
+
+# This tag can be used to specify a number of aliases that acts
+# as commands in the documentation. An alias has the form "name=value".
+# For example adding "sideeffect=\par Side Effects:\n" will allow you to
+# put the command \sideeffect (or @sideeffect) in the documentation, which
+# will result in a user-defined paragraph with heading "Side Effects:".
+# You can put \n's in the value part of an alias to insert newlines.
+
+ALIASES =
+
+# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
+# only. Doxygen will then generate output that is more tailored for C.
+# For instance, some of the names that are used will be different. The list
+# of all members will be omitted, etc.
+
+OPTIMIZE_OUTPUT_FOR_C = YES
+
+# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java sources
+# only. Doxygen will then generate output that is more tailored for Java.
+# For instance, namespaces will be presented as packages, qualified scopes
+# will look different, etc.
+
+OPTIMIZE_OUTPUT_JAVA = NO
+
+# Set the SUBGROUPING tag to YES (the default) to allow class member groups of
+# the same type (for instance a group of public functions) to be put as a
+# subgroup of that type (e.g. under the Public Functions section). Set it to
+# NO to prevent subgrouping. Alternatively, this can be done per class using
+# the \nosubgrouping command.
+
+SUBGROUPING = NO
+
+#---------------------------------------------------------------------------
+# Build related configuration options
+#---------------------------------------------------------------------------
+
+# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
+# documentation are documented, even if no documentation was available.
+# Private class members and static file members will be hidden unless
+# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES
+
+EXTRACT_ALL = YES
+
+# If the EXTRACT_PRIVATE tag is set to YES all private members of a class
+# will be included in the documentation.
+
+EXTRACT_PRIVATE = NO
+
+# If the EXTRACT_STATIC tag is set to YES all static members of a file
+# will be included in the documentation.
+
+EXTRACT_STATIC = NO
+
+# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs)
+# defined locally in source files will be included in the documentation.
+# If set to NO only classes defined in header files are included.
+
+EXTRACT_LOCAL_CLASSES = YES
+
+# This flag is only useful for Objective-C code. When set to YES local
+# methods, which are defined in the implementation section but not in
+# the interface are included in the documentation.
+# If set to NO (the default) only methods in the interface are included.
+
+EXTRACT_LOCAL_METHODS = NO
+
+# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all
+# undocumented members of documented classes, files or namespaces.
+# If set to NO (the default) these members will be included in the
+# various overviews, but no documentation section is generated.
+# This option has no effect if EXTRACT_ALL is enabled.
+
+HIDE_UNDOC_MEMBERS = NO
+
+# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all
+# undocumented classes that are normally visible in the class hierarchy.
+# If set to NO (the default) these classes will be included in the various
+# overviews. This option has no effect if EXTRACT_ALL is enabled.
+
+HIDE_UNDOC_CLASSES = NO
+
+# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all
+# friend (class|struct|union) declarations.
+# If set to NO (the default) these declarations will be included in the
+# documentation.
+
+HIDE_FRIEND_COMPOUNDS = NO
+
+# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any
+# documentation blocks found inside the body of a function.
+# If set to NO (the default) these blocks will be appended to the
+# function's detailed documentation block.
+
+HIDE_IN_BODY_DOCS = NO
+
+# The INTERNAL_DOCS tag determines if documentation
+# that is typed after a \internal command is included. If the tag is set
+# to NO (the default) then the documentation will be excluded.
+# Set it to YES to include the internal documentation.
+
+INTERNAL_DOCS = NO
+
+# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate
+# file names in lower-case letters. If set to YES upper-case letters are also
+# allowed. This is useful if you have classes or files whose names only differ
+# in case and if your file system supports case sensitive file names. Windows
+# and Mac users are advised to set this option to NO.
+
+CASE_SENSE_NAMES = YES
+
+# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen
+# will show members with their full class and namespace scopes in the
+# documentation. If set to YES the scope will be hidden.
+
+HIDE_SCOPE_NAMES = NO
+
+# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen
+# will put a list of the files that are included by a file in the documentation
+# of that file.
+
+SHOW_INCLUDE_FILES = YES
+
+# If the INLINE_INFO tag is set to YES (the default) then a tag [inline]
+# is inserted in the documentation for inline members.
+
+INLINE_INFO = YES
+
+# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen
+# will sort the (detailed) documentation of file and class members
+# alphabetically by member name. If set to NO the members will appear in
+# declaration order.
+
+SORT_MEMBER_DOCS = YES
+
+# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the
+# brief documentation of file, namespace and class members alphabetically
+# by member name. If set to NO (the default) the members will appear in
+# declaration order.
+
+SORT_BRIEF_DOCS = NO
+
+# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be
+# sorted by fully-qualified names, including namespaces. If set to
+# NO (the default), the class list will be sorted only by class name,
+# not including the namespace part.
+# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.
+# Note: This option applies only to the class list, not to the
+# alphabetical list.
+
+SORT_BY_SCOPE_NAME = NO
+
+# The GENERATE_TODOLIST tag can be used to enable (YES) or
+# disable (NO) the todo list. This list is created by putting \todo
+# commands in the documentation.
+
+GENERATE_TODOLIST = YES
+
+# The GENERATE_TESTLIST tag can be used to enable (YES) or
+# disable (NO) the test list. This list is created by putting \test
+# commands in the documentation.
+
+GENERATE_TESTLIST = YES
+
+# The GENERATE_BUGLIST tag can be used to enable (YES) or
+# disable (NO) the bug list. This list is created by putting \bug
+# commands in the documentation.
+
+GENERATE_BUGLIST = YES
+
+# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or
+# disable (NO) the deprecated list. This list is created by putting
+# \deprecated commands in the documentation.
+
+GENERATE_DEPRECATEDLIST= YES
+
+# The ENABLED_SECTIONS tag can be used to enable conditional
+# documentation sections, marked by \if sectionname ... \endif.
+
+ENABLED_SECTIONS =
+
+# The MAX_INITIALIZER_LINES tag determines the maximum number of lines
+# the initial value of a variable or define consists of for it to appear in
+# the documentation. If the initializer consists of more lines than specified
+# here it will be hidden. Use a value of 0 to hide initializers completely.
+# The appearance of the initializer of individual variables and defines in the
+# documentation can be controlled using \showinitializer or \hideinitializer
+# command in the documentation regardless of this setting.
+
+MAX_INITIALIZER_LINES = 30
+
+# Set the SHOW_USED_FILES tag to NO to disable the list of files generated
+# at the bottom of the documentation of classes and structs. If set to YES the
+# list will mention the files that were used to generate the documentation.
+
+SHOW_USED_FILES = YES
+
+# If the sources in your project are distributed over multiple directories
+# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy
+# in the documentation.
+
+SHOW_DIRECTORIES = YES
+
+#---------------------------------------------------------------------------
+# configuration options related to warning and progress messages
+#---------------------------------------------------------------------------
+
+# The QUIET tag can be used to turn on/off the messages that are generated
+# by doxygen. Possible values are YES and NO. If left blank NO is used.
+
+QUIET = NO
+
+# The WARNINGS tag can be used to turn on/off the warning messages that are
+# generated by doxygen. Possible values are YES and NO. If left blank
+# NO is used.
+
+WARNINGS = YES
+
+# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings
+# for undocumented members. If EXTRACT_ALL is set to YES then this flag will
+# automatically be disabled.
+
+WARN_IF_UNDOCUMENTED = YES
+
+# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for
+# potential errors in the documentation, such as not documenting some
+# parameters in a documented function, or documenting parameters that
+# don't exist or using markup commands wrongly.
+
+WARN_IF_DOC_ERROR = YES
+
+# The WARN_FORMAT tag determines the format of the warning messages that
+# doxygen can produce. The string should contain the $file, $line, and $text
+# tags, which will be replaced by the file and line number from which the
+# warning originated and the warning text.
+
+WARN_FORMAT = "$file:$line: $text"
+
+# The WARN_LOGFILE tag can be used to specify a file to which warning
+# and error messages should be written. If left blank the output is written
+# to stderr.
+
+WARN_LOGFILE =
+
+#---------------------------------------------------------------------------
+# configuration options related to the input files
+#---------------------------------------------------------------------------
+
+# The INPUT tag can be used to specify the files and/or directories that contain
+# documented source files. You may enter file names like "myfile.cpp" or
+# directories like "/usr/src/myproject". Separate the files or directories
+# with spaces.
+
+INPUT =
+
+# If the value of the INPUT tag contains directories, you can use the
+# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
+# and *.h) to filter out the source-files in the directories. If left
+# blank the following patterns are tested:
+# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx *.hpp
+# *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm
+
+FILE_PATTERNS = *.c *.h README
+
+# The RECURSIVE tag can be used to turn specify whether or not subdirectories
+# should be searched for input files as well. Possible values are YES and NO.
+# If left blank NO is used.
+
+RECURSIVE = NO
+
+# The EXCLUDE tag can be used to specify files and/or directories that should
+# excluded from the INPUT source files. This way you can easily exclude a
+# subdirectory from a directory tree whose root is specified with the INPUT tag.
+
+EXCLUDE =
+
+# The EXCLUDE_SYMLINKS tag can be used select whether or not files or directories
+# that are symbolic links (a Unix filesystem feature) are excluded from the input.
+
+EXCLUDE_SYMLINKS = NO
+
+# If the value of the INPUT tag contains directories, you can use the
+# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
+# certain files from those directories.
+
+EXCLUDE_PATTERNS =
+
+# The EXAMPLE_PATH tag can be used to specify one or more files or
+# directories that contain example code fragments that are included (see
+# the \include command).
+
+EXAMPLE_PATH = docs/examples
+
+# If the value of the EXAMPLE_PATH tag contains directories, you can use the
+# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
+# and *.h) to filter out the source-files in the directories. If left
+# blank all files are included.
+
+EXAMPLE_PATTERNS =
+
+# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
+# searched for input files to be used with the \include or \dontinclude
+# commands irrespective of the value of the RECURSIVE tag.
+# Possible values are YES and NO. If left blank NO is used.
+
+EXAMPLE_RECURSIVE = NO
+
+# The IMAGE_PATH tag can be used to specify one or more files or
+# directories that contain image that are included in the documentation (see
+# the \image command).
+
+IMAGE_PATH =
+
+# The INPUT_FILTER tag can be used to specify a program that doxygen should
+# invoke to filter for each input file. Doxygen will invoke the filter program
+# by executing (via popen()) the command <filter> <input-file>, where <filter>
+# is the value of the INPUT_FILTER tag, and <input-file> is the name of an
+# input file. Doxygen will then use the output that the filter program writes
+# to standard output. If FILTER_PATTERNS is specified, this tag will be
+# ignored.
+
+INPUT_FILTER =
+
+# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
+# basis. Doxygen will compare the file name with each pattern and apply the
+# filter if there is a match. The filters are a list of the form:
+# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further
+# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER
+# is applied to all files.
+
+FILTER_PATTERNS =
+
+# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
+# INPUT_FILTER) will be used to filter the input files when producing source
+# files to browse (i.e. when SOURCE_BROWSER is set to YES).
+
+FILTER_SOURCE_FILES = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to source browsing
+#---------------------------------------------------------------------------
+
+# If the SOURCE_BROWSER tag is set to YES then a list of source files will
+# be generated. Documented entities will be cross-referenced with these sources.
+# Note: To get rid of all source code in the generated output, make sure also
+# VERBATIM_HEADERS is set to NO.
+
+SOURCE_BROWSER = YES
+
+# Setting the INLINE_SOURCES tag to YES will include the body
+# of functions and classes directly in the documentation.
+
+INLINE_SOURCES = NO
+
+# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct
+# doxygen to hide any special comment blocks from generated source code
+# fragments. Normal C and C++ comments will always remain visible.
+
+STRIP_CODE_COMMENTS = YES
+
+# If the REFERENCED_BY_RELATION tag is set to YES (the default)
+# then for each documented function all documented
+# functions referencing it will be listed.
+
+REFERENCED_BY_RELATION = YES
+
+# If the REFERENCES_RELATION tag is set to YES (the default)
+# then for each documented function all documented entities
+# called/used by that function will be listed.
+
+REFERENCES_RELATION = YES
+
+# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen
+# will generate a verbatim copy of the header file for each class for
+# which an include is specified. Set to NO to disable this.
+
+VERBATIM_HEADERS = YES
+
+#---------------------------------------------------------------------------
+# configuration options related to the alphabetical class index
+#---------------------------------------------------------------------------
+
+# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index
+# of all compounds will be generated. Enable this if the project
+# contains a lot of classes, structs, unions or interfaces.
+
+ALPHABETICAL_INDEX = NO
+
+# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then
+# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns
+# in which this list will be split (can be a number in the range [1..20])
+
+COLS_IN_ALPHA_INDEX = 5
+
+# In case all classes in a project start with a common prefix, all
+# classes will be put under the same header in the alphabetical index.
+# The IGNORE_PREFIX tag can be used to specify one or more prefixes that
+# should be ignored while generating the index headers.
+
+IGNORE_PREFIX =
+
+#---------------------------------------------------------------------------
+# configuration options related to the HTML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_HTML tag is set to YES (the default) Doxygen will
+# generate HTML output.
+
+GENERATE_HTML = YES
+
+# The HTML_OUTPUT tag is used to specify where the HTML docs will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `html' will be used as the default path.
+
+HTML_OUTPUT = html
+
+# The HTML_FILE_EXTENSION tag can be used to specify the file extension for
+# each generated HTML page (for example: .htm,.php,.asp). If it is left blank
+# doxygen will generate files with .html extension.
+
+HTML_FILE_EXTENSION = .html
+
+# The HTML_HEADER tag can be used to specify a personal HTML header for
+# each generated HTML page. If it is left blank doxygen will generate a
+# standard header.
+
+HTML_HEADER = docs/header.html
+
+# The HTML_FOOTER tag can be used to specify a personal HTML footer for
+# each generated HTML page. If it is left blank doxygen will generate a
+# standard footer.
+
+HTML_FOOTER =
+
+# The HTML_STYLESHEET tag can be used to specify a user-defined cascading
+# style sheet that is used by each HTML page. It can be used to
+# fine-tune the look of the HTML output. If the tag is left blank doxygen
+# will generate a default style sheet. Note that doxygen will try to copy
+# the style sheet file to the HTML output directory, so don't put your own
+# stylesheet in the HTML output directory as well, or it will be erased!
+
+HTML_STYLESHEET =
+
+# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes,
+# files or namespaces will be aligned in HTML using tables. If set to
+# NO a bullet list will be used.
+
+HTML_ALIGN_MEMBERS = YES
+
+# If the GENERATE_HTMLHELP tag is set to YES, additional index files
+# will be generated that can be used as input for tools like the
+# Microsoft HTML help workshop to generate a compressed HTML help file (.chm)
+# of the generated HTML documentation.
+
+GENERATE_HTMLHELP = NO
+
+# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can
+# be used to specify the file name of the resulting .chm file. You
+# can add a path in front of the file if the result should not be
+# written to the html output directory.
+
+CHM_FILE =
+
+# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can
+# be used to specify the location (absolute path including file name) of
+# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run
+# the HTML help compiler on the generated index.hhp.
+
+HHC_LOCATION =
+
+# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag
+# controls if a separate .chi index file is generated (YES) or that
+# it should be included in the master .chm file (NO).
+
+GENERATE_CHI = NO
+
+# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag
+# controls whether a binary table of contents is generated (YES) or a
+# normal table of contents (NO) in the .chm file.
+
+BINARY_TOC = NO
+
+# The TOC_EXPAND flag can be set to YES to add extra items for group members
+# to the contents of the HTML help documentation and to the tree view.
+
+TOC_EXPAND = NO
+
+# The DISABLE_INDEX tag can be used to turn on/off the condensed index at
+# top of each HTML page. The value NO (the default) enables the index and
+# the value YES disables it.
+
+DISABLE_INDEX = YES
+
+# This tag can be used to set the number of enum values (range [1..20])
+# that doxygen will group on one line in the generated HTML documentation.
+
+ENUM_VALUES_PER_LINE = 4
+
+# If the GENERATE_TREEVIEW tag is set to YES, a side panel will be
+# generated containing a tree-like index structure (just like the one that
+# is generated for HTML Help). For this to work a browser that supports
+# JavaScript, DHTML, CSS and frames is required (for instance Mozilla 1.0+,
+# Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are
+# probably better off using the HTML help feature.
+
+GENERATE_TREEVIEW = NO
+
+# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be
+# used to set the initial width (in pixels) of the frame in which the tree
+# is shown.
+
+TREEVIEW_WIDTH = 250
+
+#---------------------------------------------------------------------------
+# configuration options related to the LaTeX output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will
+# generate Latex output.
+
+GENERATE_LATEX = NO
+
+# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `latex' will be used as the default path.
+
+LATEX_OUTPUT = latex
+
+# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
+# invoked. If left blank `latex' will be used as the default command name.
+
+LATEX_CMD_NAME = latex
+
+# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to
+# generate index for LaTeX. If left blank `makeindex' will be used as the
+# default command name.
+
+MAKEINDEX_CMD_NAME = makeindex
+
+# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact
+# LaTeX documents. This may be useful for small projects and may help to
+# save some trees in general.
+
+COMPACT_LATEX = NO
+
+# The PAPER_TYPE tag can be used to set the paper type that is used
+# by the printer. Possible values are: a4, a4wide, letter, legal and
+# executive. If left blank a4wide will be used.
+
+PAPER_TYPE = a4wide
+
+# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX
+# packages that should be included in the LaTeX output.
+
+EXTRA_PACKAGES =
+
+# The LATEX_HEADER tag can be used to specify a personal LaTeX header for
+# the generated latex document. The header should contain everything until
+# the first chapter. If it is left blank doxygen will generate a
+# standard header. Notice: only use this tag if you know what you are doing!
+
+LATEX_HEADER =
+
+# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated
+# is prepared for conversion to pdf (using ps2pdf). The pdf file will
+# contain links (just like the HTML output) instead of page references
+# This makes the output suitable for online browsing using a pdf viewer.
+
+PDF_HYPERLINKS = NO
+
+# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of
+# plain latex in the generated Makefile. Set this option to YES to get a
+# higher quality PDF documentation.
+
+USE_PDFLATEX = NO
+
+# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode.
+# command to the generated LaTeX files. This will instruct LaTeX to keep
+# running if errors occur, instead of asking the user for help.
+# This option is also used when generating formulas in HTML.
+
+LATEX_BATCHMODE = NO
+
+# If LATEX_HIDE_INDICES is set to YES then doxygen will not
+# include the index chapters (such as File Index, Compound Index, etc.)
+# in the output.
+
+LATEX_HIDE_INDICES = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the RTF output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output
+# The RTF output is optimized for Word 97 and may not look very pretty with
+# other RTF readers or editors.
+
+GENERATE_RTF = NO
+
+# The RTF_OUTPUT tag is used to specify where the RTF docs will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `rtf' will be used as the default path.
+
+RTF_OUTPUT = rtf
+
+# If the COMPACT_RTF tag is set to YES Doxygen generates more compact
+# RTF documents. This may be useful for small projects and may help to
+# save some trees in general.
+
+COMPACT_RTF = NO
+
+# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated
+# will contain hyperlink fields. The RTF file will
+# contain links (just like the HTML output) instead of page references.
+# This makes the output suitable for online browsing using WORD or other
+# programs which support those fields.
+# Note: wordpad (write) and others do not support links.
+
+RTF_HYPERLINKS = NO
+
+# Load stylesheet definitions from file. Syntax is similar to doxygen's
+# config file, i.e. a series of assignments. You only have to provide
+# replacements, missing definitions are set to their default value.
+
+RTF_STYLESHEET_FILE =
+
+# Set optional variables used in the generation of an rtf document.
+# Syntax is similar to doxygen's config file.
+
+RTF_EXTENSIONS_FILE =
+
+#---------------------------------------------------------------------------
+# configuration options related to the man page output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_MAN tag is set to YES (the default) Doxygen will
+# generate man pages
+
+GENERATE_MAN = NO
+
+# The MAN_OUTPUT tag is used to specify where the man pages will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `man' will be used as the default path.
+
+MAN_OUTPUT = man
+
+# The MAN_EXTENSION tag determines the extension that is added to
+# the generated man pages (default is the subroutine's section .3)
+
+MAN_EXTENSION = .3
+
+# If the MAN_LINKS tag is set to YES and Doxygen generates man output,
+# then it will generate one additional man file for each entity
+# documented in the real man page(s). These additional files
+# only source the real man page, but without them the man command
+# would be unable to find the correct page. The default is NO.
+
+MAN_LINKS = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the XML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_XML tag is set to YES Doxygen will
+# generate an XML file that captures the structure of
+# the code including all documentation.
+
+GENERATE_XML = NO
+
+# The XML_OUTPUT tag is used to specify where the XML pages will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `xml' will be used as the default path.
+
+XML_OUTPUT = xml
+
+# The XML_SCHEMA tag can be used to specify an XML schema,
+# which can be used by a validating XML parser to check the
+# syntax of the XML files.
+
+XML_SCHEMA =
+
+# The XML_DTD tag can be used to specify an XML DTD,
+# which can be used by a validating XML parser to check the
+# syntax of the XML files.
+
+XML_DTD =
+
+# If the XML_PROGRAMLISTING tag is set to YES Doxygen will
+# dump the program listings (including syntax highlighting
+# and cross-referencing information) to the XML output. Note that
+# enabling this will significantly increase the size of the XML output.
+
+XML_PROGRAMLISTING = YES
+
+#---------------------------------------------------------------------------
+# configuration options for the AutoGen Definitions output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will
+# generate an AutoGen Definitions (see autogen.sf.net) file
+# that captures the structure of the code including all
+# documentation. Note that this feature is still experimental
+# and incomplete at the moment.
+
+GENERATE_AUTOGEN_DEF = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the Perl module output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_PERLMOD tag is set to YES Doxygen will
+# generate a Perl module file that captures the structure of
+# the code including all documentation. Note that this
+# feature is still experimental and incomplete at the
+# moment.
+
+GENERATE_PERLMOD = NO
+
+# If the PERLMOD_LATEX tag is set to YES Doxygen will generate
+# the necessary Makefile rules, Perl scripts and LaTeX code to be able
+# to generate PDF and DVI output from the Perl module output.
+
+PERLMOD_LATEX = NO
+
+# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be
+# nicely formatted so it can be parsed by a human reader. This is useful
+# if you want to understand what is going on. On the other hand, if this
+# tag is set to NO the size of the Perl module output will be much smaller
+# and Perl will parse it just the same.
+
+PERLMOD_PRETTY = YES
+
+# The names of the make variables in the generated doxyrules.make file
+# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX.
+# This is useful so different doxyrules.make files included by the same
+# Makefile don't overwrite each other's variables.
+
+PERLMOD_MAKEVAR_PREFIX =
+
+#---------------------------------------------------------------------------
+# Configuration options related to the preprocessor
+#---------------------------------------------------------------------------
+
+# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will
+# evaluate all C-preprocessor directives found in the sources and include
+# files.
+
+ENABLE_PREPROCESSING = YES
+
+# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro
+# names in the source code. If set to NO (the default) only conditional
+# compilation will be performed. Macro expansion can be done in a controlled
+# way by setting EXPAND_ONLY_PREDEF to YES.
+
+MACRO_EXPANSION = YES
+
+# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES
+# then the macro expansion is limited to the macros specified with the
+# PREDEFINED and EXPAND_AS_PREDEFINED tags.
+
+EXPAND_ONLY_PREDEF = NO
+
+# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files
+# in the INCLUDE_PATH (see below) will be search if a #include is found.
+
+SEARCH_INCLUDES = YES
+
+# The INCLUDE_PATH tag can be used to specify one or more directories that
+# contain include files that are not input files but should be processed by
+# the preprocessor.
+
+INCLUDE_PATH =
+
+# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
+# patterns (like *.h and *.hpp) to filter out the header-files in the
+# directories. If left blank, the patterns specified with FILE_PATTERNS will
+# be used.
+
+INCLUDE_FILE_PATTERNS =
+
+# The PREDEFINED tag can be used to specify one or more macro names that
+# are defined before the preprocessor is started (similar to the -D option of
+# gcc). The argument of the tag is a list of macros of the form: name
+# or name=definition (no spaces). If the definition and the = are
+# omitted =1 is assumed. To prevent a macro definition from being
+# undefined via #undef or recursively expanded use the := operator
+# instead of the = operator.
+
+PREDEFINED =
+
+# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
+# this tag can be used to specify a list of macro names that should be expanded.
+# The macro definition that is found in the sources will be used.
+# Use the PREDEFINED tag if you want to use a different macro definition.
+
+EXPAND_AS_DEFINED =
+
+# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then
+# doxygen's preprocessor will remove all function-like macros that are alone
+# on a line, have an all uppercase name, and do not end with a semicolon. Such
+# function macros are typically used for boiler-plate code, and will confuse the
+# parser if not removed.
+
+SKIP_FUNCTION_MACROS = YES
+
+#---------------------------------------------------------------------------
+# Configuration::additions related to external references
+#---------------------------------------------------------------------------
+
+# The TAGFILES option can be used to specify one or more tagfiles.
+# Optionally an initial location of the external documentation
+# can be added for each tagfile. The format of a tag file without
+# this location is as follows:
+# TAGFILES = file1 file2 ...
+# Adding location for the tag files is done as follows:
+# TAGFILES = file1=loc1 "file2 = loc2" ...
+# where "loc1" and "loc2" can be relative or absolute paths or
+# URLs. If a location is present for each tag, the installdox tool
+# does not have to be run to correct the links.
+# Note that each tag file must have a unique name
+# (where the name does NOT include the path)
+# If a tag file is not located in the directory in which doxygen
+# is run, you must also specify the path to the tagfile here.
+
+TAGFILES =
+
+# When a file name is specified after GENERATE_TAGFILE, doxygen will create
+# a tag file that is based on the input files it reads.
+
+GENERATE_TAGFILE =
+
+# If the ALLEXTERNALS tag is set to YES all external classes will be listed
+# in the class index. If set to NO only the inherited external classes
+# will be listed.
+
+ALLEXTERNALS = NO
+
+# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed
+# in the modules index. If set to NO, only the current project's groups will
+# be listed.
+
+EXTERNAL_GROUPS = NO
+
+# The PERL_PATH should be the absolute path and name of the perl script
+# interpreter (i.e. the result of `which perl').
+
+PERL_PATH = /usr/bin/perl
+
+#---------------------------------------------------------------------------
+# Configuration options related to the dot tool
+#---------------------------------------------------------------------------
+
+# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will
+# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base or
+# super classes. Setting the tag to NO turns the diagrams off. Note that this
+# option is superseded by the HAVE_DOT option below. This is only a fallback. It is
+# recommended to install and use dot, since it yields more powerful graphs.
+
+CLASS_DIAGRAMS = YES
+
+# If set to YES, the inheritance and collaboration graphs will hide
+# inheritance and usage relations if the target is undocumented
+# or is not a class.
+
+HIDE_UNDOC_RELATIONS = YES
+
+# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
+# available from the path. This tool is part of Graphviz, a graph visualization
+# toolkit from AT&T and Lucent Bell Labs. The other options in this section
+# have no effect if this option is set to NO (the default)
+
+HAVE_DOT = NO
+
+# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen
+# will generate a graph for each documented class showing the direct and
+# indirect inheritance relations. Setting this tag to YES will force the
+# the CLASS_DIAGRAMS tag to NO.
+
+CLASS_GRAPH = YES
+
+# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen
+# will generate a graph for each documented class showing the direct and
+# indirect implementation dependencies (inheritance, containment, and
+# class references variables) of the class with other documented classes.
+
+COLLABORATION_GRAPH = YES
+
+# If the UML_LOOK tag is set to YES doxygen will generate inheritance and
+# collaboration diagrams in a style similar to the OMG's Unified Modeling
+# Language.
+
+UML_LOOK = NO
+
+# If set to YES, the inheritance and collaboration graphs will show the
+# relations between templates and their instances.
+
+TEMPLATE_RELATIONS = NO
+
+# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT
+# tags are set to YES then doxygen will generate a graph for each documented
+# file showing the direct and indirect include dependencies of the file with
+# other documented files.
+
+INCLUDE_GRAPH = YES
+
+# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and
+# HAVE_DOT tags are set to YES then doxygen will generate a graph for each
+# documented header file showing the documented files that directly or
+# indirectly include this file.
+
+INCLUDED_BY_GRAPH = YES
+
+# If the CALL_GRAPH and HAVE_DOT tags are set to YES then doxygen will
+# generate a call dependency graph for every global function or class method.
+# Note that enabling this option will significantly increase the time of a run.
+# So in most cases it will be better to enable call graphs for selected
+# functions only using the \callgraph command.
+
+CALL_GRAPH = NO
+
+# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen
+# will graphical hierarchy of all classes instead of a textual one.
+
+GRAPHICAL_HIERARCHY = YES
+
+# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
+# generated by dot. Possible values are png, jpg, or gif
+# If left blank png will be used.
+
+DOT_IMAGE_FORMAT = png
+
+# The tag DOT_PATH can be used to specify the path where the dot tool can be
+# found. If left blank, it is assumed the dot tool can be found on the path.
+
+DOT_PATH =
+
+# The DOTFILE_DIRS tag can be used to specify one or more directories that
+# contain dot files that are included in the documentation (see the
+# \dotfile command).
+
+DOTFILE_DIRS =
+
+# The MAX_DOT_GRAPH_WIDTH tag can be used to set the maximum allowed width
+# (in pixels) of the graphs generated by dot. If a graph becomes larger than
+# this value, doxygen will try to truncate the graph, so that it fits within
+# the specified constraint. Beware that most browsers cannot cope with very
+# large images.
+
+MAX_DOT_GRAPH_WIDTH = 1024
+
+# The MAX_DOT_GRAPH_HEIGHT tag can be used to set the maximum allows height
+# (in pixels) of the graphs generated by dot. If a graph becomes larger than
+# this value, doxygen will try to truncate the graph, so that it fits within
+# the specified constraint. Beware that most browsers cannot cope with very
+# large images.
+
+MAX_DOT_GRAPH_HEIGHT = 1024
+
+# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the
+# graphs generated by dot. A depth value of 3 means that only nodes reachable
+# from the root by following a path via at most 3 edges will be shown. Nodes that
+# lay further from the root node will be omitted. Note that setting this option to
+# 1 or 2 may greatly reduce the computation time needed for large code bases. Also
+# note that a graph may be further truncated if the graph's image dimensions are
+# not sufficient to fit the graph (see MAX_DOT_GRAPH_WIDTH and MAX_DOT_GRAPH_HEIGHT).
+# If 0 is used for the depth value (the default), the graph is not depth-constrained.
+
+MAX_DOT_GRAPH_DEPTH = 0
+
+# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will
+# generate a legend page explaining the meaning of the various boxes and
+# arrows in the dot generated graphs.
+
+GENERATE_LEGEND = YES
+
+# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will
+# remove the intermediate dot files that are used to generate
+# the various graphs.
+
+DOT_CLEANUP = YES
+
+#---------------------------------------------------------------------------
+# Configuration::additions related to the search engine
+#---------------------------------------------------------------------------
+
+# The SEARCHENGINE tag specifies whether or not a search engine should be
+# used. If set to NO the values of all tags below this one will be ignored.
+
+SEARCHENGINE = NO
diff --git a/runtime/README b/runtime/README
new file mode 100644
index 00000000..d7146655
--- /dev/null
+++ b/runtime/README
@@ -0,0 +1,45 @@
+/** @mainpage SystemTap Runtime Library
+ *
+ * @section intro_sec Introduction
+ *
+ * The SystemTap Runtime Library consists of all functions
+ * and code fragments needed by the compiler/translator to
+ * include in building a kernel module using kprobes.
+ *
+ * @section design_sec Design
+ * @subsection map_sec Maps (Associative Arrays)
+ * Maps are implemented as hash lists. It is not expected that users will
+ * attempt to collect so much data in kernel space that performance problems will require
+ * more complex solutions such as AVL trees.
+ *
+ * Maps are created with _stp_map_new(). Each map can hold only one type of
+ * data; int64, string, or statistics. Each element belonging to a map can have up to 2 keys
+ * and a value. Implemented key types are strings and longs.
+ *
+ * To simplify the implementation, the functions to set the key and the functions to set the data are separated.
+ * That means we need only 4 functions to set the key and 3 functions to set the value.
+ *
+ * For example:
+ * @include map.c
+
+ * All elements have a default value of 0 (or NULL). Elements are only saved to the map when their value is set
+ * to something nonzero. This means that querying for the existance of a key is inexpensive because
+ * no element is created, just a hash table lookup.
+ *
+ * A list is a special map which has internally ascending long integer keys. Adding a value to
+ * a list does not require setting a key first. See _stp_list_add_str() and _stp_list_add_int64().
+ *
+ * @section status_sec Status
+ * Maps are implemented and tested. Histograms are not yet finished.
+ *
+ * Copy_From_User functions are done.
+ *
+ * If maps overflow or memory runs out for some reason, globals are set but nothing is done yet.
+ * I expect to implement a function to tell the system to either ignore it or unload the module and quit.
+ *
+ * Working sample probe code using the runtime is in tests/test4_probe and tests/shellprobe.
+ *
+ * @todo The Runtime Library is not actually a library yet. It is just a collection of functions
+ * included in the probe boilerplate.
+ *
+ */
diff --git a/runtime/alloc.h b/runtime/alloc.h
new file mode 100644
index 00000000..13bd6766
--- /dev/null
+++ b/runtime/alloc.h
@@ -0,0 +1,71 @@
+enum errorcode { ERR_NONE=0, ERR_NO_MEM };
+enum errorcode _stp_error = ERR_NONE;
+
+/** Allocates memory within a probe.
+ * This is used for small allocations from within a running
+ * probe where the process cannot sleep.
+ * @param len Number of bytes to allocate.
+ * @return a valid pointer on success or NULL on failure.
+ * @bug Currently uses kmalloc (GFP_ATOMIC).
+ */
+
+inline void *_stp_alloc(size_t len)
+{
+ void *ptr = kmalloc(len, GFP_ATOMIC);
+ if (ptr == NULL)
+ _stp_error = ERR_NO_MEM;
+ return ptr;
+}
+
+/** Allocates and clears memory within a probe.
+ * This is used for small allocations from within a running
+ * probe where the process cannot sleep.
+ * @param len Number of bytes to allocate.
+ * @return a valid pointer on success or NULL on failure.
+ * @bug Currently uses kmalloc (GFP_ATOMIC).
+ */
+
+inline void *_stp_calloc(size_t len)
+{
+ void *ptr = _stp_alloc(len);
+ if (ptr)
+ memset(ptr, 0, len);
+ return ptr;
+}
+
+/** Allocates and clears memory outside a probe.
+ * This is typically used in the module initialization to
+ * allocate new maps, lists, etc.
+ * @param len Number of bytes to allocate.
+ * @return a valid pointer on success or NULL on failure.
+ */
+
+inline void *_stp_valloc(size_t len)
+{
+ void *ptr = vmalloc(len);
+ if (ptr)
+ memset(ptr, 0, len);
+ else
+ _stp_error = ERR_NO_MEM;
+ return ptr;
+}
+
+/** Frees memory allocated by _stp_alloc or _stp_calloc.
+ * @param ptr pointer to memory to free
+ */
+
+inline void _stp_free(void *ptr)
+{
+ if (ptr)
+ kfree(ptr);
+}
+
+/** Frees memory allocated by _stp_valloc.
+ * @param ptr pointer to memory to free
+ */
+
+inline void _stp_vfree(void *ptr)
+{
+ if (ptr)
+ vfree(ptr);
+}
diff --git a/runtime/copy.c b/runtime/copy.c
new file mode 100644
index 00000000..28880c08
--- /dev/null
+++ b/runtime/copy.c
@@ -0,0 +1,137 @@
+long _stp_strncpy_from_user(char *dst, const char __user *src, long count);
+//static long __stp_strncpy_from_user(char *dst, const char __user *src, long count);
+
+#if defined (__i386__)
+#define __stp_strncpy_from_user(dst,src,count,res) \
+do { \
+ int __d0, __d1, __d2; \
+ __asm__ __volatile__( \
+ " testl %1,%1\n" \
+ " jz 2f\n" \
+ "0: lodsb\n" \
+ " stosb\n" \
+ " testb %%al,%%al\n" \
+ " jz 1f\n" \
+ " decl %1\n" \
+ " jnz 0b\n" \
+ "1: subl %1,%0\n" \
+ "2:\n" \
+ ".section .fixup,\"ax\"\n" \
+ "3: movl %5,%0\n" \
+ " jmp 2b\n" \
+ ".previous\n" \
+ ".section __ex_table,\"a\"\n" \
+ " .align 4\n" \
+ " .long 0b,3b\n" \
+ ".previous" \
+ : "=d"(res), "=c"(count), "=&a" (__d0), "=&S" (__d1), \
+ "=&D" (__d2) \
+ : "i"(-EFAULT), "0"(count), "1"(count), "3"(src), "4"(dst) \
+ : "memory"); \
+} while (0)
+#elif defined (__x86_64__)
+#define __stp_strncpy_from_user(dst,src,count,res) \
+do { \
+ long __d0, __d1, __d2; \
+ __asm__ __volatile__( \
+ " testq %1,%1\n" \
+ " jz 2f\n" \
+ "0: lodsb\n" \
+ " stosb\n" \
+ " testb %%al,%%al\n" \
+ " jz 1f\n" \
+ " decq %1\n" \
+ " jnz 0b\n" \
+ "1: subq %1,%0\n" \
+ "2:\n" \
+ ".section .fixup,\"ax\"\n" \
+ "3: movq %5,%0\n" \
+ " jmp 2b\n" \
+ ".previous\n" \
+ ".section __ex_table,\"a\"\n" \
+ " .align 8\n" \
+ " .quad 0b,3b\n" \
+ ".previous" \
+ : "=r"(res), "=c"(count), "=&a" (__d0), "=&S" (__d1), \
+ "=&D" (__d2) \
+ : "i"(-EFAULT), "0"(count), "1"(count), "3"(src), "4"(dst) \
+ : "memory"); \
+} while (0)
+#endif
+
+/** Copy a NULL-terminated string from userspace.
+ * On success, returns the length of the string (not including the trailing
+ * NULL).
+ *
+ * If access to userspace fails, returns -EFAULT (some data may have been
+ * copied).
+ * @param dst Destination address, in kernel space. This buffer must be at
+ * least <i>count</i> bytes long.
+ * @param src Source address, in user space.
+ * @param count Maximum number of bytes to copy, including the trailing NULL.
+ *
+ * If <i>count</i> is smaller than the length of the string, copies
+ * <i>count</i> bytes and returns <i>count</i>.
+ */
+
+
+long
+_stp_strncpy_from_user(char *dst, const char __user *src, long count)
+{
+ long res;
+ __stp_strncpy_from_user(dst, src, count, res);
+ return res;
+}
+
+/** Copy a block of data from user space.
+ *
+ * If some data could not be copied, this function will pad the copied
+ * data to the requested size using zero bytes.
+
+ * @param dst Destination address, in kernel space.
+ * @param src Source address, in user space.
+ * @param count Number of bytes to copy.
+ * @return number of bytes that could not be copied. On success,
+ * this will be zero.
+ *
+ */
+
+unsigned long inline
+_stp_copy_from_user (char *dst, const char __user *src, unsigned long count)
+{
+ return __copy_from_user_inatomic(dst, src, count);
+}
+
+/** Copy an argv from user space to a List.
+ *
+ * @param list A list.
+ * @param argv Source argv, in user space.
+ * @return number of elements in <i>list</i>
+ *
+ * @b Example:
+ * @include argv.c
+ */
+
+int _stp_copy_argv_from_user (MAP list, char __user *__user *argv)
+{
+ char str[128];
+ char __user *vstr;
+ int len;
+
+ if (argv)
+ argv++;
+
+ while (argv != NULL) {
+ if (get_user (vstr, argv))
+ break;
+
+ if (vstr == NULL)
+ break;
+
+ len = _stp_strncpy_from_user(str, vstr, 128);
+ str[len] = 0;
+ _stp_list_add_str (list, str);
+ argv++;
+ }
+ return list->num;
+}
diff --git a/runtime/docs/examples/argv.c b/runtime/docs/examples/argv.c
new file mode 100644
index 00000000..5200c350
--- /dev/null
+++ b/runtime/docs/examples/argv.c
@@ -0,0 +1,12 @@
+MAP arglist ;
+
+int inst_do_execve (char * filename, char __user *__user *argv, char __user *__user *envp, struct pt_regs * regs)
+{
+ struct map_node_str *ptr;
+
+ _stp_copy_argv_from_user (arglist, argv);
+
+ foreach (arglist, ptr)
+ printk ("%s ", ptr->str);
+ printk ("\n");
+}
diff --git a/runtime/docs/examples/foreach.c b/runtime/docs/examples/foreach.c
new file mode 100644
index 00000000..fc110674
--- /dev/null
+++ b/runtime/docs/examples/foreach.c
@@ -0,0 +1,9 @@
+/* example showing how to print all the stats in a map using foreach() */
+
+struct map_node_stat *ptr;
+
+foreach (map, ptr)
+ printf ("map[%s,%ld] = [c=%lld s=%lld min=%lld max=%lld]\n", key1str(ptr),
+ key2int(ptr), ptr->stats.count, ptr->stats.sum, ptr->stats.min,
+ ptr->stats.max);
+
diff --git a/runtime/docs/examples/map.c b/runtime/docs/examples/map.c
new file mode 100644
index 00000000..ca661d05
--- /dev/null
+++ b/runtime/docs/examples/map.c
@@ -0,0 +1,7 @@
+
+/* create a map with a max of 100 elements */
+MAP mymap = map_new(100, INT64);
+
+/* mymap[birth year] = 2000 */
+map_key_str (mymap, "birth year");
+map_set_int64 (mymap, 2000);
diff --git a/runtime/docs/header.html b/runtime/docs/header.html
new file mode 100644
index 00000000..f47a1c4f
--- /dev/null
+++ b/runtime/docs/header.html
@@ -0,0 +1,7 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
diff --git a/runtime/docs/html/MAP-example.html b/runtime/docs/html/MAP-example.html
new file mode 100644
index 00000000..45e6a3c3
--- /dev/null
+++ b/runtime/docs/html/MAP-example.html
@@ -0,0 +1,17 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1>MAP</h1>arglist ;<p>
+int inst_do_execve (char * filename, char __user *__user *argv, char __user *__user *envp, struct pt_regs * regs) { struct <a class="el" href="structmap__node__str.html">map_node_str</a> *ptr;<p>
+_stp_copy_argv_from_user (arglist, argv);<p>
+foreach (arglist, ptr) printk ("%s ", ptr-&gt;str); printk ("\n");<p>
+<div class="fragment"><pre class="fragment"></pre></div> <hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 03:32:10 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/README-source.html b/runtime/docs/html/README-source.html
new file mode 100644
index 00000000..2b8a1dfd
--- /dev/null
+++ b/runtime/docs/html/README-source.html
@@ -0,0 +1,14 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1>README</h1><a href="README.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001
+</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/README.html b/runtime/docs/html/README.html
new file mode 100644
index 00000000..0da9fbaf
--- /dev/null
+++ b/runtime/docs/html/README.html
@@ -0,0 +1,18 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1>README File Reference</h1>
+<p>
+<a href="README-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
+<tr><td></td></tr>
+</table>
+<hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/alloc_8h-source.html b/runtime/docs/html/alloc_8h-source.html
new file mode 100644
index 00000000..ba908655
--- /dev/null
+++ b/runtime/docs/html/alloc_8h-source.html
@@ -0,0 +1,53 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1>alloc.h</h1><a href="alloc_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a><a class="code" href="alloc_8h.html#a7">00001</a> <span class="keyword">enum</span> <a class="code" href="alloc_8h.html#a7">errorcode</a> { <a class="code" href="alloc_8h.html#a7a0">ERR_NONE</a>=0, <a class="code" href="alloc_8h.html#a7a1">ERR_NO_MEM</a> };
+00002 <span class="keyword">enum</span> <a class="code" href="alloc_8h.html#a7">errorcode</a> _stp_error = ERR_NONE;
+00003
+<a name="l00012"></a><a class="code" href="alloc_8h.html#a2">00012</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> *<a class="code" href="alloc_8h.html#a2">_stp_alloc</a>(size_t len)
+00013 {
+00014 <span class="keywordtype">void</span> *ptr = kmalloc(len, GFP_ATOMIC);
+00015 <span class="keywordflow">if</span> (ptr == NULL)
+00016 _stp_error = ERR_NO_MEM;
+00017 <span class="keywordflow">return</span> ptr;
+00018 }
+00019
+<a name="l00028"></a><a class="code" href="alloc_8h.html#a3">00028</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> *<a class="code" href="alloc_8h.html#a3">_stp_calloc</a>(size_t len)
+00029 {
+00030 <span class="keywordtype">void</span> *ptr = <a class="code" href="alloc_8h.html#a2">_stp_alloc</a>(len);
+00031 <span class="keywordflow">if</span> (ptr)
+00032 memset(ptr, 0, len);
+00033 <span class="keywordflow">return</span> ptr;
+00034 }
+00035
+<a name="l00043"></a><a class="code" href="alloc_8h.html#a4">00043</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> *<a class="code" href="alloc_8h.html#a4">_stp_valloc</a>(size_t len)
+00044 {
+00045 <span class="keywordtype">void</span> *ptr = vmalloc(len);
+00046 <span class="keywordflow">if</span> (ptr)
+00047 memset(ptr, 0, len);
+00048 <span class="keywordflow">else</span>
+00049 _stp_error = ERR_NO_MEM;
+00050 <span class="keywordflow">return</span> ptr;
+00051 }
+00052
+<a name="l00057"></a><a class="code" href="alloc_8h.html#a5">00057</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="alloc_8h.html#a5">_stp_free</a>(<span class="keywordtype">void</span> *ptr)
+00058 {
+00059 <span class="keywordflow">if</span> (ptr)
+00060 kfree(ptr);
+00061 }
+00062
+<a name="l00067"></a><a class="code" href="alloc_8h.html#a6">00067</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="alloc_8h.html#a6">_stp_vfree</a>(<span class="keywordtype">void</span> *ptr)
+00068 {
+00069 <span class="keywordflow">if</span> (ptr)
+00070 vfree(ptr);
+00071 }
+</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/alloc_8h.html b/runtime/docs/html/alloc_8h.html
new file mode 100644
index 00000000..6a5db5ab
--- /dev/null
+++ b/runtime/docs/html/alloc_8h.html
@@ -0,0 +1,276 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1>alloc.h File Reference</h1>
+<p>
+<a href="alloc_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
+<tr><td></td></tr>
+<tr><td colspan="2"><br><h2>Enumerations</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="alloc_8h.html#a7">errorcode</a> { <a class="el" href="alloc_8h.html#a7a0">ERR_NONE</a> = 0,
+<a class="el" href="alloc_8h.html#a7a1">ERR_NO_MEM</a>
+ }</td></tr>
+
+<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">void *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="alloc_8h.html#a2">_stp_alloc</a> (size_t len)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Allocates memory within a probe. <a href="#a2"></a><br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">void *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="alloc_8h.html#a3">_stp_calloc</a> (size_t len)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Allocates and clears memory within a probe. <a href="#a3"></a><br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">void *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="alloc_8h.html#a4">_stp_valloc</a> (size_t len)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Allocates and clears memory outside a probe. <a href="#a4"></a><br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="alloc_8h.html#a5">_stp_free</a> (void *ptr)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Frees memory allocated by _stp_alloc or _stp_calloc. <a href="#a5"></a><br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="alloc_8h.html#a6">_stp_vfree</a> (void *ptr)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Frees memory allocated by _stp_valloc. <a href="#a6"></a><br></td></tr>
+</table>
+<hr><h2>Enumeration Type Documentation</h2>
+<a class="anchor" name="a7" doxytag="alloc.h::errorcode"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">enum <a class="el" href="alloc_8h.html#a7">errorcode</a> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+<dl compact><dt><b>Enumeration values: </b></dt><dd>
+<table border="0" cellspacing="2" cellpadding="0">
+<tr><td valign="top"><em><a class="anchor" name="a7a0" doxytag="ERR_NONE"></a>ERR_NONE</em>&nbsp;</td><td>
+</td></tr>
+<tr><td valign="top"><em><a class="anchor" name="a7a1" doxytag="ERR_NO_MEM"></a>ERR_NO_MEM</em>&nbsp;</td><td>
+</td></tr>
+</table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="alloc_8h-source.html#l00001">1</a> of file <a class="el" href="alloc_8h-source.html">alloc.h</a>. </td>
+ </tr>
+</table>
+<hr><h2>Function Documentation</h2>
+<a class="anchor" name="a2" doxytag="alloc.h::_stp_alloc"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">void* _stp_alloc </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">size_t&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>len</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline]</code></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Allocates memory within a probe.
+<p>
+This is used for small allocations from within a running probe where the process cannot sleep. <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>len</em>&nbsp;</td><td>Number of bytes to allocate. </td></tr>
+ </table>
+</dl>
+<dl compact><dt><b>Returns:</b></dt><dd>a valid pointer on success or NULL on failure. </dd></dl>
+<dl compact><dt><b><a class="el" href="bug.html#_bug000001">Bug:</a></b></dt><dd>Currently uses kmalloc (GFP_ATOMIC). </dd></dl>
+
+<p>
+Definition at line <a class="el" href="alloc_8h-source.html#l00012">12</a> of file <a class="el" href="alloc_8h-source.html">alloc.h</a>.
+<p>
+Referenced by <a class="el" href="alloc_8h-source.html#l00028">_stp_calloc()</a>, and <a class="el" href="map_8c-source.html#l00548">_stp_map_set_str()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a3" doxytag="alloc.h::_stp_calloc"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">void* _stp_calloc </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">size_t&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>len</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline]</code></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Allocates and clears memory within a probe.
+<p>
+This is used for small allocations from within a running probe where the process cannot sleep. <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>len</em>&nbsp;</td><td>Number of bytes to allocate. </td></tr>
+ </table>
+</dl>
+<dl compact><dt><b>Returns:</b></dt><dd>a valid pointer on success or NULL on failure. </dd></dl>
+<dl compact><dt><b><a class="el" href="bug.html#_bug000002">Bug:</a></b></dt><dd>Currently uses kmalloc (GFP_ATOMIC). </dd></dl>
+
+<p>
+Definition at line <a class="el" href="alloc_8h-source.html#l00028">28</a> of file <a class="el" href="alloc_8h-source.html">alloc.h</a>.
+<p>
+References <a class="el" href="alloc_8h-source.html#l00012">_stp_alloc()</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00471">_stp_map_set_int64()</a>, <a class="el" href="map_8c-source.html#l00633">_stp_map_set_stat()</a>, and <a class="el" href="map_8c-source.html#l00548">_stp_map_set_str()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a5" doxytag="alloc.h::_stp_free"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">void _stp_free </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">void *&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>ptr</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline]</code></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Frees memory allocated by _stp_alloc or _stp_calloc.
+<p>
+<dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>ptr</em>&nbsp;</td><td>pointer to memory to free </td></tr>
+ </table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="alloc_8h-source.html#l00057">57</a> of file <a class="el" href="alloc_8h-source.html">alloc.h</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00765">_stp_list_clear()</a>, <a class="el" href="map_8c-source.html#l00104">_stp_map_key_del()</a>, and <a class="el" href="map_8c-source.html#l00548">_stp_map_set_str()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a4" doxytag="alloc.h::_stp_valloc"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">void* _stp_valloc </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">size_t&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>len</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline]</code></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Allocates and clears memory outside a probe.
+<p>
+This is typically used in the module initialization to allocate new maps, lists, etc. <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>len</em>&nbsp;</td><td>Number of bytes to allocate. </td></tr>
+ </table>
+</dl>
+<dl compact><dt><b>Returns:</b></dt><dd>a valid pointer on success or NULL on failure. </dd></dl>
+
+<p>
+Definition at line <a class="el" href="alloc_8h-source.html#l00043">43</a> of file <a class="el" href="alloc_8h-source.html">alloc.h</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00043">_stp_map_new()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a6" doxytag="alloc.h::_stp_vfree"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">void _stp_vfree </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">void *&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>ptr</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline]</code></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Frees memory allocated by _stp_valloc.
+<p>
+<dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>ptr</em>&nbsp;</td><td>pointer to memory to free </td></tr>
+ </table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="alloc_8h-source.html#l00067">67</a> of file <a class="el" href="alloc_8h-source.html">alloc.h</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00190">_stp_map_del()</a>. </td>
+ </tr>
+</table>
+<hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/annotated.html b/runtime/docs/html/annotated.html
new file mode 100644
index 00000000..77bc2e38
--- /dev/null
+++ b/runtime/docs/html/annotated.html
@@ -0,0 +1,22 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1>SystemTap Data Structures</h1>Here are the data structures with brief descriptions:<table>
+ <tr><td class="indexkey"><a class="el" href="unionkey__data.html">key_data</a></td><td class="indexvalue"></td></tr>
+ <tr><td class="indexkey"><a class="el" href="structmap__node.html">map_node</a></td><td class="indexvalue"></td></tr>
+ <tr><td class="indexkey"><a class="el" href="structmap__node__int64.html">map_node_int64</a></td><td class="indexvalue"></td></tr>
+ <tr><td class="indexkey"><a class="el" href="structmap__node__stat.html">map_node_stat</a></td><td class="indexvalue"></td></tr>
+ <tr><td class="indexkey"><a class="el" href="structmap__node__str.html">map_node_str</a></td><td class="indexvalue"></td></tr>
+ <tr><td class="indexkey"><a class="el" href="structmap__root.html">map_root</a></td><td class="indexvalue"></td></tr>
+ <tr><td class="indexkey"><a class="el" href="structstat.html">stat</a></td><td class="indexvalue"></td></tr>
+</table>
+<hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/argv__example_8c-example.html b/runtime/docs/html/argv__example_8c-example.html
new file mode 100644
index 00000000..1369c4c2
--- /dev/null
+++ b/runtime/docs/html/argv__example_8c-example.html
@@ -0,0 +1,32 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1>argv_example.c</h1><dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>list</em>&nbsp;</td><td>A list. </td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>argv</em>&nbsp;</td><td>Source argv, in user space. </td></tr>
+ </table>
+</dl>
+<dl compact><dt><b>Returns:</b></dt><dd>number of elements in <em>list</em></dd></dl>
+<div class="fragment"><pre class="fragment"><a name="_a0"></a><a class="code" href="structmap__root.html">MAP</a> arglist ;
+
+<span class="keywordtype">int</span> inst_do_execve (<span class="keywordtype">char</span> * filename, <span class="keywordtype">char</span> __user *__user *argv, <span class="keywordtype">char</span> __user *__user *envp, <span class="keyword">struct</span> pt_regs * regs)
+{
+ <span class="keyword">struct </span><a name="_a1"></a><a class="code" href="structmap__node__str.html">map_node_str</a> *ptr;
+
+ <a name="a2"></a><a class="code" href="copy_8c.html#a2">_stp_copy_argv_from_user</a> (arglist, argv);
+
+ <a name="a3"></a><a class="code" href="map_8h.html#a8">foreach</a> (arglist, ptr)
+ printk ("%s ", ptr-&gt;str);
+ printk ("\n");
+}
+</pre></div> <hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 03:40:33 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/bug.html b/runtime/docs/html/bug.html
new file mode 100644
index 00000000..a2be5f08
--- /dev/null
+++ b/runtime/docs/html/bug.html
@@ -0,0 +1,27 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1><a class="anchor" name="bug">Bug List</a></h1><a class="anchor" name="_bug000001"></a> <dl>
+<dt>Global <a class="el" href="alloc_8h.html#a2">_stp_alloc</a> (size_t len) </dt>
+<dd>Currently uses kmalloc (GFP_ATOMIC). </dd>
+</dl>
+<p>
+<a class="anchor" name="_bug000002"></a> <dl>
+<dt>Global <a class="el" href="alloc_8h.html#a3">_stp_calloc</a> (size_t len) </dt>
+<dd>Currently uses kmalloc (GFP_ATOMIC). </dd>
+</dl>
+<p>
+<a class="anchor" name="_bug000003"></a> <dl>
+<dt>Global <a class="el" href="io_8c.html#a0">dlog</a> (const char *fmt,...) </dt>
+<dd>Lines are limited in length by printk buffer.</dd>
+</dl>
+<hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/copy_8c-source.html b/runtime/docs/html/copy_8c-source.html
new file mode 100644
index 00000000..2e21314c
--- /dev/null
+++ b/runtime/docs/html/copy_8c-source.html
@@ -0,0 +1,111 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1>copy.c</h1><a href="copy_8c.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="keywordtype">long</span> <a class="code" href="copy_8c.html#a0">_stp_strncpy_from_user</a>(<span class="keywordtype">char</span> *dst, <span class="keyword">const</span> <span class="keywordtype">char</span> __user *src, <span class="keywordtype">long</span> count);
+00002 <span class="comment">//static long __stp_strncpy_from_user(char *dst, const char __user *src, long count);</span>
+00003
+00004 <span class="preprocessor">#if defined (__i386__)</span>
+00005 <span class="preprocessor"></span><span class="preprocessor">#define __stp_strncpy_from_user(dst,src,count,res) \</span>
+00006 <span class="preprocessor">do { \</span>
+00007 <span class="preprocessor"> int __d0, __d1, __d2; \</span>
+00008 <span class="preprocessor"> __asm__ __volatile__( \</span>
+00009 <span class="preprocessor"> " testl %1,%1\n" \</span>
+00010 <span class="preprocessor"> " jz 2f\n" \</span>
+00011 <span class="preprocessor"> "0: lodsb\n" \</span>
+00012 <span class="preprocessor"> " stosb\n" \</span>
+00013 <span class="preprocessor"> " testb %%al,%%al\n" \</span>
+00014 <span class="preprocessor"> " jz 1f\n" \</span>
+00015 <span class="preprocessor"> " decl %1\n" \</span>
+00016 <span class="preprocessor"> " jnz 0b\n" \</span>
+00017 <span class="preprocessor"> "1: subl %1,%0\n" \</span>
+00018 <span class="preprocessor"> "2:\n" \</span>
+00019 <span class="preprocessor"> ".section .fixup,\"ax\"\n" \</span>
+00020 <span class="preprocessor"> "3: movl %5,%0\n" \</span>
+00021 <span class="preprocessor"> " jmp 2b\n" \</span>
+00022 <span class="preprocessor"> ".previous\n" \</span>
+00023 <span class="preprocessor"> ".section __ex_table,\"a\"\n" \</span>
+00024 <span class="preprocessor"> " .align 4\n" \</span>
+00025 <span class="preprocessor"> " .long 0b,3b\n" \</span>
+00026 <span class="preprocessor"> ".previous" \</span>
+00027 <span class="preprocessor"> : "=d"(res), "=c"(count), "=&amp;a" (__d0), "=&amp;S" (__d1), \</span>
+00028 <span class="preprocessor"> "=&amp;D" (__d2) \</span>
+00029 <span class="preprocessor"> : "i"(-EFAULT), "0"(count), "1"(count), "3"(src), "4"(dst) \</span>
+00030 <span class="preprocessor"> : "memory"); \</span>
+00031 <span class="preprocessor">} while (0)</span>
+00032 <span class="preprocessor"></span><span class="preprocessor">#elif defined (__x86_64__)</span>
+00033 <span class="preprocessor"></span><span class="preprocessor">#define __stp_strncpy_from_user(dst,src,count,res) \</span>
+00034 <span class="preprocessor">do { \</span>
+00035 <span class="preprocessor"> long __d0, __d1, __d2; \</span>
+00036 <span class="preprocessor"> __asm__ __volatile__( \</span>
+00037 <span class="preprocessor"> " testq %1,%1\n" \</span>
+00038 <span class="preprocessor"> " jz 2f\n" \</span>
+00039 <span class="preprocessor"> "0: lodsb\n" \</span>
+00040 <span class="preprocessor"> " stosb\n" \</span>
+00041 <span class="preprocessor"> " testb %%al,%%al\n" \</span>
+00042 <span class="preprocessor"> " jz 1f\n" \</span>
+00043 <span class="preprocessor"> " decq %1\n" \</span>
+00044 <span class="preprocessor"> " jnz 0b\n" \</span>
+00045 <span class="preprocessor"> "1: subq %1,%0\n" \</span>
+00046 <span class="preprocessor"> "2:\n" \</span>
+00047 <span class="preprocessor"> ".section .fixup,\"ax\"\n" \</span>
+00048 <span class="preprocessor"> "3: movq %5,%0\n" \</span>
+00049 <span class="preprocessor"> " jmp 2b\n" \</span>
+00050 <span class="preprocessor"> ".previous\n" \</span>
+00051 <span class="preprocessor"> ".section __ex_table,\"a\"\n" \</span>
+00052 <span class="preprocessor"> " .align 8\n" \</span>
+00053 <span class="preprocessor"> " .quad 0b,3b\n" \</span>
+00054 <span class="preprocessor"> ".previous" \</span>
+00055 <span class="preprocessor"> : "=r"(res), "=c"(count), "=&amp;a" (__d0), "=&amp;S" (__d1), \</span>
+00056 <span class="preprocessor"> "=&amp;D" (__d2) \</span>
+00057 <span class="preprocessor"> : "i"(-EFAULT), "0"(count), "1"(count), "3"(src), "4"(dst) \</span>
+00058 <span class="preprocessor"> : "memory"); \</span>
+00059 <span class="preprocessor">} while (0)</span>
+00060 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
+00061 <span class="preprocessor"></span>
+00078 <span class="keywordtype">long</span>
+<a name="l00079"></a><a class="code" href="copy_8c.html#a0">00079</a> <a class="code" href="copy_8c.html#a0">_stp_strncpy_from_user</a>(<span class="keywordtype">char</span> *dst, <span class="keyword">const</span> <span class="keywordtype">char</span> __user *src, <span class="keywordtype">long</span> count)
+00080 {
+00081 <span class="keywordtype">long</span> res;
+00082 __stp_strncpy_from_user(dst, src, count, res);
+00083 <span class="keywordflow">return</span> res;
+00084 }
+00085
+00099 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keyword">inline</span>
+<a name="l00100"></a><a class="code" href="copy_8c.html#a1">00100</a> <a class="code" href="copy_8c.html#a1">_stp_copy_from_user</a> (<span class="keywordtype">char</span> *dst, <span class="keyword">const</span> <span class="keywordtype">char</span> __user *src, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> count)
+00101 {
+00102 <span class="keywordflow">return</span> __copy_from_user_inatomic(dst, src, count);
+00103 }
+00104
+<a name="l00115"></a><a class="code" href="copy_8c.html#a2">00115</a> <span class="keywordtype">int</span> <a class="code" href="copy_8c.html#a2">_stp_copy_argv_from_user</a> (<a class="code" href="structmap__root.html">MAP</a> list, <span class="keywordtype">char</span> __user *__user *argv)
+00116 {
+00117 <span class="keywordtype">char</span> str[128];
+00118 <span class="keywordtype">char</span> __user *vstr;
+00119 <span class="keywordtype">int</span> len;
+00120
+00121 <span class="keywordflow">if</span> (argv)
+00122 argv++;
+00123
+00124 <span class="keywordflow">while</span> (argv != NULL) {
+00125 <span class="keywordflow">if</span> (get_user (vstr, argv))
+00126 <span class="keywordflow">break</span>;
+00127
+00128 <span class="keywordflow">if</span> (vstr == NULL)
+00129 <span class="keywordflow">break</span>;
+00130
+00131 len = <a class="code" href="copy_8c.html#a0">_stp_strncpy_from_user</a>(str, vstr, 128);
+00132 str[len] = 0;
+00133 <a class="code" href="map_8c.html#a25">_stp_list_add_str</a> (list, str);
+00134 argv++;
+00135 }
+00136 <span class="keywordflow">return</span> list-&gt;<a class="code" href="structmap__root.html#o1">num</a>;
+00137 }
+</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/copy_8c.html b/runtime/docs/html/copy_8c.html
new file mode 100644
index 00000000..0febb9ab
--- /dev/null
+++ b/runtime/docs/html/copy_8c.html
@@ -0,0 +1,204 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1>copy.c File Reference</h1>
+<p>
+<a href="copy_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
+<tr><td></td></tr>
+<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="copy_8c.html#a0">_stp_strncpy_from_user</a> (char *dst, const char __user *src, long count)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy a NULL-terminated string from userspace. <a href="#a0"></a><br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="copy_8c.html#a1">_stp_copy_from_user</a> (char *dst, const char __user *src, unsigned long count)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy a block of data from user space. <a href="#a1"></a><br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="copy_8c.html#a2">_stp_copy_argv_from_user</a> (<a class="el" href="structmap__root.html">MAP</a> list, char __user *__user *argv)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy an argv from user space to a List. <a href="#a2"></a><br></td></tr>
+</table>
+<hr><h2>Function Documentation</h2>
+<a class="anchor" name="a2" doxytag="copy.c::_stp_copy_argv_from_user"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">int _stp_copy_argv_from_user </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="structmap__root.html">MAP</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>list</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>char __user *__user *&nbsp;</td>
+ <td class="mdname" nowrap> <em>argv</em></td>
+ </tr>
+ <tr>
+ <td class="md"></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Copy an argv from user space to a List.
+<p>
+<dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>list</em>&nbsp;</td><td>A list. </td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>argv</em>&nbsp;</td><td>Source argv, in user space. </td></tr>
+ </table>
+</dl>
+<dl compact><dt><b>Returns:</b></dt><dd>number of elements in <em>list</em></dd></dl>
+<b>Example:</b> <div class="fragment"><pre class="fragment"><a class="code" href="structmap__root.html">MAP</a> arglist ;
+
+<span class="keywordtype">int</span> inst_do_execve (<span class="keywordtype">char</span> * filename, <span class="keywordtype">char</span> __user *__user *argv, <span class="keywordtype">char</span> __user *__user *envp, <span class="keyword">struct</span> pt_regs * regs)
+{
+ <span class="keyword">struct </span><a class="code" href="structmap__node__str.html">map_node_str</a> *ptr;
+
+ <a class="code" href="copy_8c.html#a2">_stp_copy_argv_from_user</a> (arglist, argv);
+
+ <a class="code" href="map_8h.html#a8">foreach</a> (arglist, ptr)
+ printk ("%s ", ptr-&gt;str);
+ printk ("\n");
+}
+</pre></div>
+<p>
+Definition at line <a class="el" href="copy_8c-source.html#l00115">115</a> of file <a class="el" href="copy_8c-source.html">copy.c</a>.
+<p>
+References <a class="el" href="map_8c-source.html#l00805">_stp_list_add_str()</a>, <a class="el" href="copy_8c-source.html#l00079">_stp_strncpy_from_user()</a>, <a class="el" href="map_8h-source.html#l00084">MAP</a>, and <a class="el" href="map_8h-source.html#l00053">map_root::num</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a1" doxytag="copy.c::_stp_copy_from_user"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">unsigned long _stp_copy_from_user </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">char *&nbsp;</td>
+ <td class="mdname" nowrap> <em>dst</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>const char __user *&nbsp;</td>
+ <td class="mdname" nowrap> <em>src</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>unsigned long&nbsp;</td>
+ <td class="mdname" nowrap> <em>count</em></td>
+ </tr>
+ <tr>
+ <td class="md"></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"><code> [inline]</code></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Copy a block of data from user space.
+<p>
+If some data could not be copied, this function will pad the copied data to the requested size using zero bytes.<p>
+<dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>dst</em>&nbsp;</td><td>Destination address, in kernel space. </td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>Source address, in user space. </td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>count</em>&nbsp;</td><td>Number of bytes to copy. </td></tr>
+ </table>
+</dl>
+<dl compact><dt><b>Returns:</b></dt><dd>number of bytes that could not be copied. On success, this will be zero. </dd></dl>
+
+<p>
+Definition at line <a class="el" href="copy_8c-source.html#l00100">100</a> of file <a class="el" href="copy_8c-source.html">copy.c</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a0" doxytag="copy.c::_stp_strncpy_from_user"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">long _stp_strncpy_from_user </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">char *&nbsp;</td>
+ <td class="mdname" nowrap> <em>dst</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>const char __user *&nbsp;</td>
+ <td class="mdname" nowrap> <em>src</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>long&nbsp;</td>
+ <td class="mdname" nowrap> <em>count</em></td>
+ </tr>
+ <tr>
+ <td class="md"></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Copy a NULL-terminated string from userspace.
+<p>
+On success, returns the length of the string (not including the trailing NULL).<p>
+If access to userspace fails, returns -EFAULT (some data may have been copied). <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>dst</em>&nbsp;</td><td>Destination address, in kernel space. This buffer must be at least <em>count</em> bytes long. </td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>Source address, in user space. </td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>count</em>&nbsp;</td><td>Maximum number of bytes to copy, including the trailing NULL.</td></tr>
+ </table>
+</dl>
+If <em>count</em> is smaller than the length of the string, copies <em>count</em> bytes and returns <em>count</em>.
+<p>
+Definition at line <a class="el" href="copy_8c-source.html#l00079">79</a> of file <a class="el" href="copy_8c-source.html">copy.c</a>.
+<p>
+Referenced by <a class="el" href="copy_8c-source.html#l00115">_stp_copy_argv_from_user()</a>. </td>
+ </tr>
+</table>
+<hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/docs_2argv__example_8c-example.html b/runtime/docs/html/docs_2argv__example_8c-example.html
new file mode 100644
index 00000000..0ad61d6d
--- /dev/null
+++ b/runtime/docs/html/docs_2argv__example_8c-example.html
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1>docs/argv_example.c</h1><dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>list</em>&nbsp;</td><td>A list. </td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>argv</em>&nbsp;</td><td>Source argv, in user space. </td></tr>
+ </table>
+</dl>
+<dl compact><dt><b>Returns:</b></dt><dd>number of elements in <em>list</em></dd></dl>
+<div class="fragment"><pre class="fragment"></pre></div> <hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 03:35:02 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/doxygen.css b/runtime/docs/html/doxygen.css
new file mode 100644
index 00000000..1d4d6311
--- /dev/null
+++ b/runtime/docs/html/doxygen.css
@@ -0,0 +1,271 @@
+BODY,H1,H2,H3,H4,H5,H6,P,CENTER,TD,TH,UL,DL,DIV {
+ font-family: Geneva, Arial, Helvetica, sans-serif;
+}
+H1 {
+ text-align: center;
+}
+CAPTION { font-weight: bold }
+DIV.qindex {
+ width: 100%;
+ background-color: #eeeeff;
+ border: 1px solid #b0b0b0;
+ text-align: center;
+ margin: 2px;
+ padding: 2px;
+ line-height: 140%;
+}
+DIV.nav {
+ width: 100%;
+ background-color: #eeeeff;
+ border: 1px solid #b0b0b0;
+ text-align: center;
+ margin: 2px;
+ padding: 2px;
+ line-height: 140%;
+}
+A.qindex {
+ text-decoration: none;
+ font-weight: bold;
+ color: #1A419D;
+}
+A.qindex:visited {
+ text-decoration: none;
+ font-weight: bold;
+ color: #1A419D
+}
+A.qindex:hover {
+ text-decoration: none;
+ background-color: #ddddff;
+}
+A.qindexHL {
+ text-decoration: none;
+ font-weight: bold;
+ background-color: #6666cc;
+ color: #ffffff;
+ border: 1px double #9295C2;
+}
+A.qindexHL:hover {
+ text-decoration: none;
+ background-color: #6666cc;
+ color: #ffffff;
+}
+A.qindexHL:visited { text-decoration: none; background-color: #6666cc; color: #ffffff }
+A.el { text-decoration: none; font-weight: bold }
+A.elRef { font-weight: bold }
+A.code:link { text-decoration: none; font-weight: normal; color: #0000FF}
+A.code:visited { text-decoration: none; font-weight: normal; color: #0000FF}
+A.codeRef:link { font-weight: normal; color: #0000FF}
+A.codeRef:visited { font-weight: normal; color: #0000FF}
+A:hover { text-decoration: none; background-color: #f2f2ff }
+DL.el { margin-left: -1cm }
+.fragment {
+ font-family: monospace
+}
+PRE.fragment {
+ border: 1px solid #CCCCCC;
+ background-color: #f5f5f5;
+ margin-top: 4px;
+ margin-bottom: 4px;
+ margin-left: 2px;
+ margin-right: 8px;
+ padding-left: 6px;
+ padding-right: 6px;
+ padding-top: 4px;
+ padding-bottom: 4px;
+}
+DIV.ah { background-color: black; font-weight: bold; color: #ffffff; margin-bottom: 3px; margin-top: 3px }
+TD.md { background-color: #F4F4FB; font-weight: bold; }
+TD.mdname1 { background-color: #F4F4FB; font-weight: bold; color: #602020; }
+TD.mdname { background-color: #F4F4FB; font-weight: bold; color: #602020; width: 600px; }
+DIV.groupHeader {
+ margin-left: 16px;
+ margin-top: 12px;
+ margin-bottom: 6px;
+ font-weight: bold;
+}
+DIV.groupText { margin-left: 16px; font-style: italic; font-size: 14px }
+BODY {
+ background: white;
+ color: black;
+ margin-right: 20px;
+ margin-left: 20px;
+}
+TD.indexkey {
+ background-color: #eeeeff;
+ font-weight: bold;
+ padding-right : 10px;
+ padding-top : 2px;
+ padding-left : 10px;
+ padding-bottom : 2px;
+ margin-left : 0px;
+ margin-right : 0px;
+ margin-top : 2px;
+ margin-bottom : 2px;
+ border: 1px solid #CCCCCC;
+}
+TD.indexvalue {
+ background-color: #eeeeff;
+ font-style: italic;
+ padding-right : 10px;
+ padding-top : 2px;
+ padding-left : 10px;
+ padding-bottom : 2px;
+ margin-left : 0px;
+ margin-right : 0px;
+ margin-top : 2px;
+ margin-bottom : 2px;
+ border: 1px solid #CCCCCC;
+}
+TR.memlist {
+ background-color: #f0f0f0;
+}
+P.formulaDsp { text-align: center; }
+IMG.formulaDsp { }
+IMG.formulaInl { vertical-align: middle; }
+SPAN.keyword { color: #008000 }
+SPAN.keywordtype { color: #604020 }
+SPAN.keywordflow { color: #e08000 }
+SPAN.comment { color: #800000 }
+SPAN.preprocessor { color: #806020 }
+SPAN.stringliteral { color: #002080 }
+SPAN.charliteral { color: #008080 }
+.mdTable {
+ border: 1px solid #868686;
+ background-color: #F4F4FB;
+}
+.mdRow {
+ padding: 8px 10px;
+}
+.mdescLeft {
+ padding: 0px 8px 4px 8px;
+ font-size: 12px;
+ font-style: italic;
+ background-color: #FAFAFA;
+ border-top: 1px none #E0E0E0;
+ border-right: 1px none #E0E0E0;
+ border-bottom: 1px none #E0E0E0;
+ border-left: 1px none #E0E0E0;
+ margin: 0px;
+}
+.mdescRight {
+ padding: 0px 8px 4px 8px;
+ font-size: 12px;
+ font-style: italic;
+ background-color: #FAFAFA;
+ border-top: 1px none #E0E0E0;
+ border-right: 1px none #E0E0E0;
+ border-bottom: 1px none #E0E0E0;
+ border-left: 1px none #E0E0E0;
+ margin: 0px;
+}
+.memItemLeft {
+ padding: 1px 0px 0px 8px;
+ margin: 4px;
+ border-top-width: 1px;
+ border-right-width: 1px;
+ border-bottom-width: 1px;
+ border-left-width: 1px;
+ border-top-color: #E0E0E0;
+ border-right-color: #E0E0E0;
+ border-bottom-color: #E0E0E0;
+ border-left-color: #E0E0E0;
+ border-top-style: solid;
+ border-right-style: none;
+ border-bottom-style: none;
+ border-left-style: none;
+ background-color: #FAFAFA;
+ font-size: 12px;
+}
+.memItemRight {
+ padding: 1px 8px 0px 8px;
+ margin: 4px;
+ border-top-width: 1px;
+ border-right-width: 1px;
+ border-bottom-width: 1px;
+ border-left-width: 1px;
+ border-top-color: #E0E0E0;
+ border-right-color: #E0E0E0;
+ border-bottom-color: #E0E0E0;
+ border-left-color: #E0E0E0;
+ border-top-style: solid;
+ border-right-style: none;
+ border-bottom-style: none;
+ border-left-style: none;
+ background-color: #FAFAFA;
+ font-size: 13px;
+}
+.memTemplItemLeft {
+ padding: 1px 0px 0px 8px;
+ margin: 4px;
+ border-top-width: 1px;
+ border-right-width: 1px;
+ border-bottom-width: 1px;
+ border-left-width: 1px;
+ border-top-color: #E0E0E0;
+ border-right-color: #E0E0E0;
+ border-bottom-color: #E0E0E0;
+ border-left-color: #E0E0E0;
+ border-top-style: none;
+ border-right-style: none;
+ border-bottom-style: none;
+ border-left-style: none;
+ background-color: #FAFAFA;
+ font-size: 12px;
+}
+.memTemplItemRight {
+ padding: 1px 8px 0px 8px;
+ margin: 4px;
+ border-top-width: 1px;
+ border-right-width: 1px;
+ border-bottom-width: 1px;
+ border-left-width: 1px;
+ border-top-color: #E0E0E0;
+ border-right-color: #E0E0E0;
+ border-bottom-color: #E0E0E0;
+ border-left-color: #E0E0E0;
+ border-top-style: none;
+ border-right-style: none;
+ border-bottom-style: none;
+ border-left-style: none;
+ background-color: #FAFAFA;
+ font-size: 13px;
+}
+.memTemplParams {
+ padding: 1px 0px 0px 8px;
+ margin: 4px;
+ border-top-width: 1px;
+ border-right-width: 1px;
+ border-bottom-width: 1px;
+ border-left-width: 1px;
+ border-top-color: #E0E0E0;
+ border-right-color: #E0E0E0;
+ border-bottom-color: #E0E0E0;
+ border-left-color: #E0E0E0;
+ border-top-style: solid;
+ border-right-style: none;
+ border-bottom-style: none;
+ border-left-style: none;
+ color: #606060;
+ background-color: #FAFAFA;
+ font-size: 12px;
+}
+.search { color: #003399;
+ font-weight: bold;
+}
+FORM.search {
+ margin-bottom: 0px;
+ margin-top: 0px;
+}
+INPUT.search { font-size: 75%;
+ color: #000080;
+ font-weight: normal;
+ background-color: #eeeeff;
+}
+TD.tiny { font-size: 75%;
+}
+a {
+ color: #252E78;
+}
+a:visited {
+ color: #3D2185;
+}
diff --git a/runtime/docs/html/doxygen.png b/runtime/docs/html/doxygen.png
new file mode 100644
index 00000000..f0a274bb
--- /dev/null
+++ b/runtime/docs/html/doxygen.png
Binary files differ
diff --git a/runtime/docs/html/examples.html b/runtime/docs/html/examples.html
new file mode 100644
index 00000000..cd53f417
--- /dev/null
+++ b/runtime/docs/html/examples.html
@@ -0,0 +1,16 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1>SystemTap Examples</h1>Here is a list of all examples:<ul>
+<li><a class="el" href="foreach_8c-example.html">foreach.c</a>
+</ul>
+<hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 12:24:52 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/files.html b/runtime/docs/html/files.html
new file mode 100644
index 00000000..599ee02d
--- /dev/null
+++ b/runtime/docs/html/files.html
@@ -0,0 +1,22 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1>SystemTap File List</h1>Here is a list of all files with brief descriptions:<table>
+ <tr><td class="indexkey"><a class="el" href="alloc_8h.html">alloc.h</a> <a href="alloc_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr>
+ <tr><td class="indexkey"><a class="el" href="copy_8c.html">copy.c</a> <a href="copy_8c-source.html">[code]</a></td><td class="indexvalue"></td></tr>
+ <tr><td class="indexkey"><a class="el" href="io_8c.html">io.c</a> <a href="io_8c-source.html">[code]</a></td><td class="indexvalue"></td></tr>
+ <tr><td class="indexkey"><a class="el" href="map_8c.html">map.c</a> <a href="map_8c-source.html">[code]</a></td><td class="indexvalue"></td></tr>
+ <tr><td class="indexkey"><a class="el" href="map_8h.html">map.h</a> <a href="map_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr>
+ <tr><td class="indexkey"><a class="el" href="README.html">README</a> <a href="README-source.html">[code]</a></td><td class="indexvalue"></td></tr>
+ <tr><td class="indexkey"><a class="el" href="runtime_8h.html">runtime.h</a> <a href="runtime_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr>
+</table>
+<hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/foreach_8c-example.html b/runtime/docs/html/foreach_8c-example.html
new file mode 100644
index 00000000..ccafaeeb
--- /dev/null
+++ b/runtime/docs/html/foreach_8c-example.html
@@ -0,0 +1,28 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1>foreach.c</h1><dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>map</em>&nbsp;</td><td></td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>ptr</em>&nbsp;</td><td>pointer to a <a class="el" href="structmap__node__stat.html">map_node_stat</a>, <a class="el" href="structmap__node__int64.html">map_node_int64</a> or <a class="el" href="structmap__node__str.html">map_node_str</a></td></tr>
+ </table>
+</dl>
+<div class="fragment"><pre class="fragment"><span class="comment">/* example showing how to print all the stats in a map using foreach() */</span>
+
+<span class="keyword">struct </span><a name="_a0"></a><a class="code" href="structmap__node__stat.html">map_node_stat</a> *ptr;
+
+<a name="a1"></a><a class="code" href="map_8h.html#a8">foreach</a> (map, ptr)
+ printf ("map[%s,%ld] = [c=%lld s=%lld min=%lld max=%lld]\n", key1str(ptr),
+ key2int(ptr), ptr-&gt;stats.count, ptr-&gt;stats.sum, ptr-&gt;stats.min,
+ ptr-&gt;stats.max);
+
+</pre></div> <hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 12:24:52 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/ftv2blank.png b/runtime/docs/html/ftv2blank.png
new file mode 100644
index 00000000..493c3c0b
--- /dev/null
+++ b/runtime/docs/html/ftv2blank.png
Binary files differ
diff --git a/runtime/docs/html/ftv2doc.png b/runtime/docs/html/ftv2doc.png
new file mode 100644
index 00000000..f72999f9
--- /dev/null
+++ b/runtime/docs/html/ftv2doc.png
Binary files differ
diff --git a/runtime/docs/html/ftv2folderclosed.png b/runtime/docs/html/ftv2folderclosed.png
new file mode 100644
index 00000000..d6d06344
--- /dev/null
+++ b/runtime/docs/html/ftv2folderclosed.png
Binary files differ
diff --git a/runtime/docs/html/ftv2folderopen.png b/runtime/docs/html/ftv2folderopen.png
new file mode 100644
index 00000000..bbe2c913
--- /dev/null
+++ b/runtime/docs/html/ftv2folderopen.png
Binary files differ
diff --git a/runtime/docs/html/ftv2lastnode.png b/runtime/docs/html/ftv2lastnode.png
new file mode 100644
index 00000000..e7b9ba90
--- /dev/null
+++ b/runtime/docs/html/ftv2lastnode.png
Binary files differ
diff --git a/runtime/docs/html/ftv2link.png b/runtime/docs/html/ftv2link.png
new file mode 100644
index 00000000..14f3fed0
--- /dev/null
+++ b/runtime/docs/html/ftv2link.png
Binary files differ
diff --git a/runtime/docs/html/ftv2mlastnode.png b/runtime/docs/html/ftv2mlastnode.png
new file mode 100644
index 00000000..09ceb6ad
--- /dev/null
+++ b/runtime/docs/html/ftv2mlastnode.png
Binary files differ
diff --git a/runtime/docs/html/ftv2mnode.png b/runtime/docs/html/ftv2mnode.png
new file mode 100644
index 00000000..3254c051
--- /dev/null
+++ b/runtime/docs/html/ftv2mnode.png
Binary files differ
diff --git a/runtime/docs/html/ftv2node.png b/runtime/docs/html/ftv2node.png
new file mode 100644
index 00000000..c9f06a57
--- /dev/null
+++ b/runtime/docs/html/ftv2node.png
Binary files differ
diff --git a/runtime/docs/html/ftv2plastnode.png b/runtime/docs/html/ftv2plastnode.png
new file mode 100644
index 00000000..0b07e009
--- /dev/null
+++ b/runtime/docs/html/ftv2plastnode.png
Binary files differ
diff --git a/runtime/docs/html/ftv2pnode.png b/runtime/docs/html/ftv2pnode.png
new file mode 100644
index 00000000..2001b797
--- /dev/null
+++ b/runtime/docs/html/ftv2pnode.png
Binary files differ
diff --git a/runtime/docs/html/ftv2vertline.png b/runtime/docs/html/ftv2vertline.png
new file mode 100644
index 00000000..b330f3a3
--- /dev/null
+++ b/runtime/docs/html/ftv2vertline.png
Binary files differ
diff --git a/runtime/docs/html/functions.html b/runtime/docs/html/functions.html
new file mode 100644
index 00000000..60b6cf16
--- /dev/null
+++ b/runtime/docs/html/functions.html
@@ -0,0 +1,43 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<div class="qindex"><a class="qindexHL" href="functions.html">All</a> | <a class="qindex" href="functions_vars.html">Variables</a></div>
+
+<p>
+Here is a list of all struct and union fields with links to the structures/unions they belong to:<ul>
+<li>c_key1
+: <a class="el" href="structmap__root.html#o8">map_root</a><li>c_key2
+: <a class="el" href="structmap__root.html#o9">map_root</a><li>c_keyhead
+: <a class="el" href="structmap__root.html#o7">map_root</a><li>count
+: <a class="el" href="structstat.html#o0">stat</a><li>create
+: <a class="el" href="structmap__root.html#o6">map_root</a><li>hashes
+: <a class="el" href="structmap__root.html#o10">map_root</a><li>head
+: <a class="el" href="structmap__root.html#o3">map_root</a><li>histogram
+: <a class="el" href="structstat.html#o4">stat</a><li>hnode
+: <a class="el" href="structmap__node.html#o1">map_node</a><li>key
+: <a class="el" href="structmap__root.html#o5">map_root</a><li>key1
+: <a class="el" href="structmap__node.html#o2">map_node</a><li>key2
+: <a class="el" href="structmap__node.html#o3">map_node</a><li>lnode
+: <a class="el" href="structmap__node.html#o0">map_node</a><li>max
+: <a class="el" href="structstat.html#o3">stat</a><li>maxnum
+: <a class="el" href="structmap__root.html#o0">map_root</a><li>membuf
+: <a class="el" href="structmap__root.html#o11">map_root</a><li>min
+: <a class="el" href="structstat.html#o2">stat</a><li>n
+: <a class="el" href="structmap__node__stat.html#o0">map_node_stat</a>, <a class="el" href="structmap__node__str.html#o0">map_node_str</a>, <a class="el" href="structmap__node__int64.html#o0">map_node_int64</a><li>no_wrap
+: <a class="el" href="structmap__root.html#o2">map_root</a><li>num
+: <a class="el" href="structmap__root.html#o1">map_root</a><li>pool
+: <a class="el" href="structmap__root.html#o4">map_root</a><li>stats
+: <a class="el" href="structmap__node__stat.html#o1">map_node_stat</a><li>str
+: <a class="el" href="structmap__node__str.html#o1">map_node_str</a>, <a class="el" href="unionkey__data.html#o1">key_data</a><li>sum
+: <a class="el" href="structstat.html#o1">stat</a><li>val
+: <a class="el" href="structmap__node__int64.html#o1">map_node_int64</a>, <a class="el" href="unionkey__data.html#o0">key_data</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/functions_vars.html b/runtime/docs/html/functions_vars.html
new file mode 100644
index 00000000..aa0ebe5a
--- /dev/null
+++ b/runtime/docs/html/functions_vars.html
@@ -0,0 +1,43 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<div class="qindex"><a class="qindex" href="functions.html">All</a> | <a class="qindexHL" href="functions_vars.html">Variables</a></div>
+
+<p>
+<ul>
+<li>c_key1
+: <a class="el" href="structmap__root.html#o8">map_root</a><li>c_key2
+: <a class="el" href="structmap__root.html#o9">map_root</a><li>c_keyhead
+: <a class="el" href="structmap__root.html#o7">map_root</a><li>count
+: <a class="el" href="structstat.html#o0">stat</a><li>create
+: <a class="el" href="structmap__root.html#o6">map_root</a><li>hashes
+: <a class="el" href="structmap__root.html#o10">map_root</a><li>head
+: <a class="el" href="structmap__root.html#o3">map_root</a><li>histogram
+: <a class="el" href="structstat.html#o4">stat</a><li>hnode
+: <a class="el" href="structmap__node.html#o1">map_node</a><li>key
+: <a class="el" href="structmap__root.html#o5">map_root</a><li>key1
+: <a class="el" href="structmap__node.html#o2">map_node</a><li>key2
+: <a class="el" href="structmap__node.html#o3">map_node</a><li>lnode
+: <a class="el" href="structmap__node.html#o0">map_node</a><li>max
+: <a class="el" href="structstat.html#o3">stat</a><li>maxnum
+: <a class="el" href="structmap__root.html#o0">map_root</a><li>membuf
+: <a class="el" href="structmap__root.html#o11">map_root</a><li>min
+: <a class="el" href="structstat.html#o2">stat</a><li>n
+: <a class="el" href="structmap__node__stat.html#o0">map_node_stat</a>, <a class="el" href="structmap__node__str.html#o0">map_node_str</a>, <a class="el" href="structmap__node__int64.html#o0">map_node_int64</a><li>no_wrap
+: <a class="el" href="structmap__root.html#o2">map_root</a><li>num
+: <a class="el" href="structmap__root.html#o1">map_root</a><li>pool
+: <a class="el" href="structmap__root.html#o4">map_root</a><li>stats
+: <a class="el" href="structmap__node__stat.html#o1">map_node_stat</a><li>str
+: <a class="el" href="structmap__node__str.html#o1">map_node_str</a>, <a class="el" href="unionkey__data.html#o1">key_data</a><li>sum
+: <a class="el" href="structstat.html#o1">stat</a><li>val
+: <a class="el" href="structmap__node__int64.html#o1">map_node_int64</a>, <a class="el" href="unionkey__data.html#o0">key_data</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/globals.html b/runtime/docs/html/globals.html
new file mode 100644
index 00000000..9c4c693f
--- /dev/null
+++ b/runtime/docs/html/globals.html
@@ -0,0 +1,99 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<div class="qindex"><a class="qindexHL" href="globals.html">All</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_vars.html">Variables</a> | <a class="qindex" href="globals_type.html">Typedefs</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration&nbsp;values</a> | <a class="qindex" href="globals_defs.html">Defines</a></div>
+<div class="qindex"><a class="qindex" href="#index__">_</a> | <a class="qindex" href="#index_d">d</a> | <a class="qindex" href="#index_e">e</a> | <a class="qindex" href="#index_f">f</a> | <a class="qindex" href="#index_i">i</a> | <a class="qindex" href="#index_k">k</a> | <a class="qindex" href="#index_l">l</a> | <a class="qindex" href="#index_m">m</a> | <a class="qindex" href="#index_n">n</a> | <a class="qindex" href="#index_p">p</a> | <a class="qindex" href="#index_s">s</a> | <a class="qindex" href="#index_v">v</a></div>
+
+<p>
+
+<p>
+Here is a list of all functions, variables, defines, enums, and typedefs with links to the files they belong to:<h3><a class="anchor" name="index__">- _ -</a></h3><ul>
+<li>_stp_alloc()
+: <a class="el" href="alloc_8h.html#a2">alloc.h</a><li>_stp_calloc()
+: <a class="el" href="alloc_8h.html#a3">alloc.h</a><li>_stp_copy_argv_from_user()
+: <a class="el" href="copy_8c.html#a2">copy.c</a><li>_stp_copy_from_user()
+: <a class="el" href="copy_8c.html#a1">copy.c</a><li>_stp_free()
+: <a class="el" href="alloc_8h.html#a5">alloc.h</a><li>_stp_list_add
+: <a class="el" href="map_8h.html#a7">map.h</a><li>_stp_list_add_int64()
+: <a class="el" href="map_8c.html#a26">map.c</a><li>_stp_list_add_str()
+: <a class="el" href="map_8c.html#a25">map.c</a><li>_stp_list_clear()
+: <a class="el" href="map_8c.html#a24">map.c</a><li>_stp_list_new()
+: <a class="el" href="map_8c.html#a23">map.c</a><li>_stp_list_size()
+: <a class="el" href="map_8c.html#a27">map.c</a><li>_stp_map_del()
+: <a class="el" href="map_8c.html#a8">map.c</a><li>_stp_map_get_int64()
+: <a class="el" href="map_8c.html#a17">map.c</a><li>_stp_map_get_stat()
+: <a class="el" href="map_8c.html#a21">map.c</a><li>_stp_map_get_str()
+: <a class="el" href="map_8c.html#a19">map.c</a><li>_stp_map_iter()
+: <a class="el" href="map_8c.html#a7">map.c</a><li>_stp_map_key
+: <a class="el" href="map_8h.html#a5">map.h</a><li>_stp_map_key2
+: <a class="el" href="map_8h.html#a4">map.h</a><li>_stp_map_key_del()
+: <a class="el" href="map_8c.html#a5">map.c</a><li>_stp_map_key_long()
+: <a class="el" href="map_8c.html#a14">map.c</a><li>_stp_map_key_long_long()
+: <a class="el" href="map_8c.html#a9">map.c</a><li>_stp_map_key_long_str()
+: <a class="el" href="map_8c.html#a12">map.c</a><li>_stp_map_key_str()
+: <a class="el" href="map_8c.html#a13">map.c</a><li>_stp_map_key_str_long()
+: <a class="el" href="map_8c.html#a11">map.c</a><li>_stp_map_key_str_str()
+: <a class="el" href="map_8c.html#a10">map.c</a><li>_stp_map_new()
+: <a class="el" href="map_8c.html#a3">map.c</a><li>_stp_map_set
+: <a class="el" href="map_8h.html#a6">map.h</a><li>_stp_map_set_int64()
+: <a class="el" href="map_8c.html#a16">map.c</a><li>_stp_map_set_stat()
+: <a class="el" href="map_8c.html#a20">map.c</a><li>_stp_map_set_str()
+: <a class="el" href="map_8c.html#a18">map.c</a><li>_stp_map_start()
+: <a class="el" href="map_8c.html#a6">map.c</a><li>_stp_map_stat_add()
+: <a class="el" href="map_8c.html#a22">map.c</a><li>_stp_strncpy_from_user()
+: <a class="el" href="copy_8c.html#a0">copy.c</a><li>_stp_valloc()
+: <a class="el" href="alloc_8h.html#a4">alloc.h</a><li>_stp_vfree()
+: <a class="el" href="alloc_8h.html#a6">alloc.h</a></ul>
+<h3><a class="anchor" name="index_d">- d -</a></h3><ul>
+<li>dbug
+: <a class="el" href="runtime_8h.html#a0">runtime.h</a><li>dlog()
+: <a class="el" href="io_8c.html#a0">io.c</a></ul>
+<h3><a class="anchor" name="index_e">- e -</a></h3><ul>
+<li>END
+: <a class="el" href="map_8h.html#a19a17">map.h</a><li>ERR_NO_MEM
+: <a class="el" href="alloc_8h.html#a7a1">alloc.h</a><li>ERR_NONE
+: <a class="el" href="alloc_8h.html#a7a0">alloc.h</a><li>errorcode
+: <a class="el" href="alloc_8h.html#a7">alloc.h</a></ul>
+<h3><a class="anchor" name="index_f">- f -</a></h3><ul>
+<li>foreach
+: <a class="el" href="map_8h.html#a8">map.h</a></ul>
+<h3><a class="anchor" name="index_i">- i -</a></h3><ul>
+<li>INT64
+: <a class="el" href="map_8h.html#a19a14">map.h</a></ul>
+<h3><a class="anchor" name="index_k">- k -</a></h3><ul>
+<li>key1int
+: <a class="el" href="map_8h.html#a2">map.h</a><li>key1str
+: <a class="el" href="map_8h.html#a0">map.h</a><li>key2int
+: <a class="el" href="map_8h.html#a3">map.h</a><li>key2str
+: <a class="el" href="map_8h.html#a1">map.h</a><li>keytype
+: <a class="el" href="map_8h.html#a18">map.h</a></ul>
+<h3><a class="anchor" name="index_l">- l -</a></h3><ul>
+<li>LONG
+: <a class="el" href="map_8h.html#a18a12">map.h</a></ul>
+<h3><a class="anchor" name="index_m">- m -</a></h3><ul>
+<li>MAP
+: <a class="el" href="map_8h.html#a10">map.h</a></ul>
+<h3><a class="anchor" name="index_n">- n -</a></h3><ul>
+<li>NONE
+: <a class="el" href="map_8h.html#a18a11">map.h</a></ul>
+<h3><a class="anchor" name="index_p">- p -</a></h3><ul>
+<li>packed
+: <a class="el" href="map_8h.html#a9">map.h</a></ul>
+<h3><a class="anchor" name="index_s">- s -</a></h3><ul>
+<li>STAT
+: <a class="el" href="map_8h.html#a19a15">map.h</a><li>STR
+: <a class="el" href="map_8h.html#a18a13">map.h</a><li>STRING
+: <a class="el" href="map_8h.html#a19a16">map.h</a></ul>
+<h3><a class="anchor" name="index_v">- v -</a></h3><ul>
+<li>valtype
+: <a class="el" href="map_8h.html#a19">map.h</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/globals_defs.html b/runtime/docs/html/globals_defs.html
new file mode 100644
index 00000000..ed1d2424
--- /dev/null
+++ b/runtime/docs/html/globals_defs.html
@@ -0,0 +1,28 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<div class="qindex"><a class="qindex" href="globals.html">All</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_vars.html">Variables</a> | <a class="qindex" href="globals_type.html">Typedefs</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration&nbsp;values</a> | <a class="qindexHL" href="globals_defs.html">Defines</a></div>
+
+<p>
+<ul>
+<li>_stp_list_add
+: <a class="el" href="map_8h.html#a7">map.h</a><li>_stp_map_key
+: <a class="el" href="map_8h.html#a5">map.h</a><li>_stp_map_key2
+: <a class="el" href="map_8h.html#a4">map.h</a><li>_stp_map_set
+: <a class="el" href="map_8h.html#a6">map.h</a><li>dbug
+: <a class="el" href="runtime_8h.html#a0">runtime.h</a><li>foreach
+: <a class="el" href="map_8h.html#a8">map.h</a><li>key1int
+: <a class="el" href="map_8h.html#a2">map.h</a><li>key1str
+: <a class="el" href="map_8h.html#a0">map.h</a><li>key2int
+: <a class="el" href="map_8h.html#a3">map.h</a><li>key2str
+: <a class="el" href="map_8h.html#a1">map.h</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/globals_enum.html b/runtime/docs/html/globals_enum.html
new file mode 100644
index 00000000..f12861a2
--- /dev/null
+++ b/runtime/docs/html/globals_enum.html
@@ -0,0 +1,21 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<div class="qindex"><a class="qindex" href="globals.html">All</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_vars.html">Variables</a> | <a class="qindex" href="globals_type.html">Typedefs</a> | <a class="qindexHL" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration&nbsp;values</a> | <a class="qindex" href="globals_defs.html">Defines</a></div>
+
+<p>
+<ul>
+<li>errorcode
+: <a class="el" href="alloc_8h.html#a7">alloc.h</a><li>keytype
+: <a class="el" href="map_8h.html#a18">map.h</a><li>valtype
+: <a class="el" href="map_8h.html#a19">map.h</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/globals_eval.html b/runtime/docs/html/globals_eval.html
new file mode 100644
index 00000000..f697e2e0
--- /dev/null
+++ b/runtime/docs/html/globals_eval.html
@@ -0,0 +1,27 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<div class="qindex"><a class="qindex" href="globals.html">All</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_vars.html">Variables</a> | <a class="qindex" href="globals_type.html">Typedefs</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindexHL" href="globals_eval.html">Enumeration&nbsp;values</a> | <a class="qindex" href="globals_defs.html">Defines</a></div>
+
+<p>
+<ul>
+<li>END
+: <a class="el" href="map_8h.html#a19a17">map.h</a><li>ERR_NO_MEM
+: <a class="el" href="alloc_8h.html#a7a1">alloc.h</a><li>ERR_NONE
+: <a class="el" href="alloc_8h.html#a7a0">alloc.h</a><li>INT64
+: <a class="el" href="map_8h.html#a19a14">map.h</a><li>LONG
+: <a class="el" href="map_8h.html#a18a12">map.h</a><li>NONE
+: <a class="el" href="map_8h.html#a18a11">map.h</a><li>STAT
+: <a class="el" href="map_8h.html#a19a15">map.h</a><li>STR
+: <a class="el" href="map_8h.html#a18a13">map.h</a><li>STRING
+: <a class="el" href="map_8h.html#a19a16">map.h</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/globals_func.html b/runtime/docs/html/globals_func.html
new file mode 100644
index 00000000..3ef3fd40
--- /dev/null
+++ b/runtime/docs/html/globals_func.html
@@ -0,0 +1,55 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<div class="qindex"><a class="qindex" href="globals.html">All</a> | <a class="qindexHL" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_vars.html">Variables</a> | <a class="qindex" href="globals_type.html">Typedefs</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration&nbsp;values</a> | <a class="qindex" href="globals_defs.html">Defines</a></div>
+<div class="qindex"><a class="qindex" href="#index__">_</a> | <a class="qindex" href="#index_d">d</a></div>
+
+<p>
+
+<p>
+<h3><a class="anchor" name="index__">- _ -</a></h3><ul>
+<li>_stp_alloc()
+: <a class="el" href="alloc_8h.html#a2">alloc.h</a><li>_stp_calloc()
+: <a class="el" href="alloc_8h.html#a3">alloc.h</a><li>_stp_copy_argv_from_user()
+: <a class="el" href="copy_8c.html#a2">copy.c</a><li>_stp_copy_from_user()
+: <a class="el" href="copy_8c.html#a1">copy.c</a><li>_stp_free()
+: <a class="el" href="alloc_8h.html#a5">alloc.h</a><li>_stp_list_add_int64()
+: <a class="el" href="map_8c.html#a26">map.c</a><li>_stp_list_add_str()
+: <a class="el" href="map_8c.html#a25">map.c</a><li>_stp_list_clear()
+: <a class="el" href="map_8c.html#a24">map.c</a><li>_stp_list_new()
+: <a class="el" href="map_8c.html#a23">map.c</a><li>_stp_list_size()
+: <a class="el" href="map_8c.html#a27">map.c</a><li>_stp_map_del()
+: <a class="el" href="map_8c.html#a8">map.c</a><li>_stp_map_get_int64()
+: <a class="el" href="map_8c.html#a17">map.c</a><li>_stp_map_get_stat()
+: <a class="el" href="map_8c.html#a21">map.c</a><li>_stp_map_get_str()
+: <a class="el" href="map_8c.html#a19">map.c</a><li>_stp_map_iter()
+: <a class="el" href="map_8c.html#a7">map.c</a><li>_stp_map_key_del()
+: <a class="el" href="map_8c.html#a5">map.c</a><li>_stp_map_key_long()
+: <a class="el" href="map_8c.html#a14">map.c</a><li>_stp_map_key_long_long()
+: <a class="el" href="map_8c.html#a9">map.c</a><li>_stp_map_key_long_str()
+: <a class="el" href="map_8c.html#a12">map.c</a><li>_stp_map_key_str()
+: <a class="el" href="map_8c.html#a13">map.c</a><li>_stp_map_key_str_long()
+: <a class="el" href="map_8c.html#a11">map.c</a><li>_stp_map_key_str_str()
+: <a class="el" href="map_8c.html#a10">map.c</a><li>_stp_map_new()
+: <a class="el" href="map_8c.html#a3">map.c</a><li>_stp_map_set_int64()
+: <a class="el" href="map_8c.html#a16">map.c</a><li>_stp_map_set_stat()
+: <a class="el" href="map_8c.html#a20">map.c</a><li>_stp_map_set_str()
+: <a class="el" href="map_8c.html#a18">map.c</a><li>_stp_map_start()
+: <a class="el" href="map_8c.html#a6">map.c</a><li>_stp_map_stat_add()
+: <a class="el" href="map_8c.html#a22">map.c</a><li>_stp_strncpy_from_user()
+: <a class="el" href="copy_8c.html#a0">copy.c</a><li>_stp_valloc()
+: <a class="el" href="alloc_8h.html#a4">alloc.h</a><li>_stp_vfree()
+: <a class="el" href="alloc_8h.html#a6">alloc.h</a></ul>
+<h3><a class="anchor" name="index_d">- d -</a></h3><ul>
+<li>dlog()
+: <a class="el" href="io_8c.html#a0">io.c</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/globals_type.html b/runtime/docs/html/globals_type.html
new file mode 100644
index 00000000..194983d0
--- /dev/null
+++ b/runtime/docs/html/globals_type.html
@@ -0,0 +1,19 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<div class="qindex"><a class="qindex" href="globals.html">All</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_vars.html">Variables</a> | <a class="qindexHL" href="globals_type.html">Typedefs</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration&nbsp;values</a> | <a class="qindex" href="globals_defs.html">Defines</a></div>
+
+<p>
+<ul>
+<li>MAP
+: <a class="el" href="map_8h.html#a10">map.h</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/globals_vars.html b/runtime/docs/html/globals_vars.html
new file mode 100644
index 00000000..f0282f63
--- /dev/null
+++ b/runtime/docs/html/globals_vars.html
@@ -0,0 +1,19 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<div class="qindex"><a class="qindex" href="globals.html">All</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindexHL" href="globals_vars.html">Variables</a> | <a class="qindex" href="globals_type.html">Typedefs</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration&nbsp;values</a> | <a class="qindex" href="globals_defs.html">Defines</a></div>
+
+<p>
+<ul>
+<li>packed
+: <a class="el" href="map_8h.html#a9">map.h</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/index.html b/runtime/docs/html/index.html
new file mode 100644
index 00000000..3796e861
--- /dev/null
+++ b/runtime/docs/html/index.html
@@ -0,0 +1,40 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1>SystemTap Runtime Library </h1>
+<p>
+<h3 align="center">0.1 </h3><h2><a class="anchor" name="intro_sec">
+Introduction</a></h2>
+The SystemTap Runtime Library consists of all functions and code fragments needed by the compiler/translator to include in building a kernel module using kprobes.<h2><a class="anchor" name="design_sec">
+Design</a></h2>
+<h3><a class="anchor" name="map_sec">
+Maps (Associative Arrays)</a></h3>
+Maps are implemented as hash lists. It is not expected that users will attempt to collect so much data in kernel space that performance problems will require more complex solutions such as AVL trees.<p>
+Maps are created with <a class="el" href="map_8c.html#a3">_stp_map_new()</a>. Each map can hold only one type of data; int64, string, or statistics. Each element belonging to a map can have up to 2 keys and a value. Implemented key types are strings and longs.<p>
+To simplify the implementation, the functions to set the key and the functions to set the data are separated. That means we need only 4 functions to set the key and 3 functions to set the value.<p>
+For example: <div class="fragment"><pre class="fragment">
+<span class="comment">/* create a map with a max of 100 elements */</span>
+<a class="code" href="structmap__root.html">MAP</a> mymap = map_new(100, INT64);
+
+<span class="comment">/* mymap[birth year] = 2000 */</span>
+map_key_str (mymap, <span class="stringliteral">"birth year"</span>);
+map_set_int64 (mymap, 2000);
+</pre></div><p>
+All elements have a default value of 0 (or NULL). Elements are only saved to the map when their value is set to something nonzero. This means that querying for the existance of a key is inexpensive because no element is created, just a hash table lookup.<p>
+A list is a special map which has internally ascending long integer keys. Adding a value to a list does not require setting a key first. See <a class="el" href="map_8c.html#a25">_stp_list_add_str()</a> and <a class="el" href="map_8c.html#a26">_stp_list_add_int64()</a>.<h2><a class="anchor" name="status_sec">
+Status</a></h2>
+Maps are implemented and tested. Histograms are not yet finished.<p>
+Copy_From_User functions are done.<p>
+If maps overflow or memory runs out for some reason, globals are set but nothing is done yet. I expect to implement a function to tell the system to either ignore it or unload the module and quit.<p>
+Working sample probe code using the runtime is in tests/test4_probe and tests/shellprobe.<p>
+<dl compact><dt><b><a class="el" href="todo.html#_todo000004">Todo:</a></b></dt><dd>The Runtime Library is not actually a library yet. It is just a collection of functions included in the probe boilerplate. </dd></dl>
+<hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/io_8c-source.html b/runtime/docs/html/io_8c-source.html
new file mode 100644
index 00000000..5a5c1fe3
--- /dev/null
+++ b/runtime/docs/html/io_8c-source.html
@@ -0,0 +1,23 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1>io.c</h1><a href="io_8c.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001
+<a name="l00011"></a><a class="code" href="io_8c.html#a0">00011</a> <span class="keywordtype">void</span> <a class="code" href="io_8c.html#a0">dlog</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *fmt, ...)
+00012 {
+00013 va_list args;
+00014 printk(<span class="stringliteral">"STP: "</span>);
+00015 va_start(args, fmt);
+00016 vprintk(fmt, args);
+00017 va_end(args);
+00018 }
+00019
+</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/io_8c.html b/runtime/docs/html/io_8c.html
new file mode 100644
index 00000000..1419497c
--- /dev/null
+++ b/runtime/docs/html/io_8c.html
@@ -0,0 +1,75 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1>io.c File Reference</h1>
+<p>
+<a href="io_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
+<tr><td></td></tr>
+<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="io_8c.html#a0">dlog</a> (const char *fmt,...)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Logs data. <a href="#a0"></a><br></td></tr>
+</table>
+<hr><h2>Function Documentation</h2>
+<a class="anchor" name="a0" doxytag="io.c::dlog"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">void dlog </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const char *&nbsp;</td>
+ <td class="mdname" nowrap> <em>fmt</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>&nbsp;</td>
+ <td class="mdname" nowrap> <em>...</em></td>
+ </tr>
+ <tr>
+ <td class="md"></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Logs data.
+<p>
+This function is compatible with printk. In fact it currently sends all output to vprintk, after sending "STP: ". This allows us to easily detect SystemTap output in the log file.<p>
+<dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>fmt</em>&nbsp;</td><td>A variable number of args. </td></tr>
+ </table>
+</dl>
+<dl compact><dt><b><a class="el" href="bug.html#_bug000003">Bug:</a></b></dt><dd>Lines are limited in length by printk buffer.</dd></dl>
+<p>
+<dl compact><dt><b><a class="el" href="todo.html#_todo000001">Todo:</a></b></dt><dd>Needs replaced with something much faster that does not use the system log. </dd></dl>
+
+<p>
+Definition at line <a class="el" href="io_8c-source.html#l00011">11</a> of file <a class="el" href="io_8c-source.html">io.c</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00765">_stp_list_clear()</a>. </td>
+ </tr>
+</table>
+<hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/main.html b/runtime/docs/html/main.html
new file mode 100644
index 00000000..59ec4e75
--- /dev/null
+++ b/runtime/docs/html/main.html
@@ -0,0 +1,17 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1>SystemTap Runtime Library </h1>
+<p>
+<h3 align="center">0.1 </h3><h2><a class="anchor" name="intro_sec">
+Introduction</a></h2>
+The SystemTap Runtime Library consists of all functions and code fragments needed by the compiler/translator to include in building a kernel module using kprobes. <hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 01:43:27 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/map_8c-source.html b/runtime/docs/html/map_8c-source.html
new file mode 100644
index 00000000..301087fb
--- /dev/null
+++ b/runtime/docs/html/map_8c-source.html
@@ -0,0 +1,661 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1>map.c</h1><a href="map_8c.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="comment">/* -*- linux-c -*- */</span>
+00002
+00003 <span class="keyword">static</span> <span class="keywordtype">int</span> map_sizes[] = {
+00004 <span class="keyword">sizeof</span>(<span class="keyword">struct </span><a class="code" href="structmap__node__int64.html">map_node_int64</a>),
+00005 sizeof(struct map_node_stat),
+00006 sizeof(struct map_node_str),
+00007 0
+00008 };
+00009
+00010 <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">unsigned</span> string_hash(<span class="keyword">const</span> <span class="keywordtype">char</span> *key1, <span class="keyword">const</span> <span class="keywordtype">char</span> *key2)
+00011 {
+00012 <span class="keywordtype">int</span> hash = 0, count = 0;
+00013 <span class="keywordtype">char</span> *v1 = (<span class="keywordtype">char</span> *)key1;
+00014 <span class="keywordtype">char</span> *v2 = (<span class="keywordtype">char</span> *)key2;
+00015 <span class="keywordflow">while</span> (*v1 &amp;&amp; count++ &lt; 5) {
+00016 hash += *v1++;
+00017 }
+00018 <span class="keywordflow">while</span> (v2 &amp;&amp; *v2 &amp;&amp; count++ &lt; 5) {
+00019 hash += *v2++;
+00020 }
+00021 <span class="keywordflow">return</span> hash_long((<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>)hash, HASH_TABLE_BITS);
+00022 }
+00023
+00024 <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">unsigned</span> mixed_hash(<span class="keyword">const</span> <span class="keywordtype">char</span> *key1, <span class="keywordtype">long</span> key2)
+00025 {
+00026 <span class="keywordtype">int</span> hash = 0, count = 0;
+00027 <span class="keywordtype">char</span> *v = (<span class="keywordtype">char</span> *)key1;
+00028 <span class="keywordflow">while</span> (v &amp;&amp; *v &amp;&amp; count++ &lt; 5)
+00029 hash += *v++;
+00030 <span class="keywordflow">return</span> hash_long((<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>)(hash ^ key2), HASH_TABLE_BITS);
+00031 }
+00032
+<a name="l00043"></a><a class="code" href="map_8c.html#a3">00043</a> <a class="code" href="structmap__root.html">MAP</a> <a class="code" href="map_8c.html#a3">_stp_map_new</a>(<span class="keywordtype">unsigned</span> max_entries, <span class="keyword">enum</span> valtype type)
+00044 {
+00045 size_t size;
+00046 <a class="code" href="structmap__root.html">MAP</a> m = (<a class="code" href="structmap__root.html">MAP</a>) <a class="code" href="alloc_8h.html#a4">_stp_valloc</a>(<span class="keyword">sizeof</span>(<span class="keyword">struct</span> <a class="code" href="structmap__root.html">map_root</a>));
+00047 <span class="keywordflow">if</span> (m == NULL)
+00048 <span class="keywordflow">return</span> NULL;
+00049
+00050 INIT_LIST_HEAD(&amp;m-&gt;<a class="code" href="structmap__root.html#o3">head</a>);
+00051
+00052 m-&gt;<a class="code" href="structmap__root.html#o0">maxnum</a> = max_entries;
+00053 m-&gt;type = type;
+00054 <span class="keywordflow">if</span> (type &gt;= END) {
+00055 <a class="code" href="runtime_8h.html#a0">dbug</a> (<span class="stringliteral">"map_new: unknown type %d\n"</span>, type);
+00056 <span class="keywordflow">return</span> NULL;
+00057 }
+00058
+00059 <span class="keywordflow">if</span> (max_entries) {
+00060 <span class="keywordtype">void</span> *tmp;
+00061 <span class="keywordtype">int</span> i;
+00062 <span class="keyword">struct </span>list_head *e;
+00063
+00064 INIT_LIST_HEAD(&amp;m-&gt;<a class="code" href="structmap__root.html#o4">pool</a>);
+00065 size = map_sizes[type];
+00066 tmp = <a class="code" href="alloc_8h.html#a4">_stp_valloc</a>(max_entries * size);
+00067
+00068 <span class="keywordflow">for</span> (i = max_entries - 1; i &gt;= 0; i--) {
+00069 e = i * size + tmp;
+00070 <a class="code" href="runtime_8h.html#a0">dbug</a> (<span class="stringliteral">"e=%lx\n"</span>, (<span class="keywordtype">long</span>)e);
+00071 list_add(e, &amp;m-&gt;<a class="code" href="structmap__root.html#o4">pool</a>);
+00072 }
+00073 m-&gt;<a class="code" href="structmap__root.html#o11">membuf</a> = tmp;
+00074 }
+00075 <span class="keywordflow">return</span> m;
+00076 }
+00077
+00078 <span class="keyword">static</span> <span class="keywordtype">void</span> map_free_strings(<a class="code" href="structmap__root.html">MAP</a> map, <span class="keyword">struct</span> <a class="code" href="structmap__node.html">map_node</a> *n)
+00079 {
+00080 <span class="keyword">struct </span>map_node_str *m = (<span class="keyword">struct </span>map_node_str *)n;
+00081 <a class="code" href="runtime_8h.html#a0">dbug</a> (<span class="stringliteral">"n = %lx\n"</span>, (<span class="keywordtype">long</span>)n);
+00082 <span class="keywordflow">if</span> (map-&gt;type == STRING) {
+00083 <a class="code" href="runtime_8h.html#a0">dbug</a> (<span class="stringliteral">"val STRING %lx\n"</span>, (<span class="keywordtype">long</span>)m-&gt;<a class="code" href="structmap__node__str.html#o1">str</a>);
+00084 <span class="keywordflow">if</span> (m-&gt;<a class="code" href="structmap__node__str.html#o1">str</a>)
+00085 <a class="code" href="alloc_8h.html#a5">_stp_free</a>(m-&gt;<a class="code" href="structmap__node__str.html#o1">str</a>);
+00086 }
+00087 <span class="keywordflow">if</span> (m-&gt;<a class="code" href="structmap__node__str.html#o0">n</a>.key1type == STR) {
+00088 <a class="code" href="runtime_8h.html#a0">dbug</a> (<span class="stringliteral">"key1 STR %lx\n"</span>, (<span class="keywordtype">long</span>)<a class="code" href="map_8h.html#a0">key1str</a>(m));
+00089 <span class="keywordflow">if</span> (<a class="code" href="map_8h.html#a0">key1str</a>(m))
+00090 <a class="code" href="alloc_8h.html#a5">_stp_free</a>(<a class="code" href="map_8h.html#a0">key1str</a>(m));
+00091 }
+00092 <span class="keywordflow">if</span> (m-&gt;<a class="code" href="structmap__node__str.html#o0">n</a>.key2type == STR) {
+00093 <a class="code" href="runtime_8h.html#a0">dbug</a> (<span class="stringliteral">"key2 STR %lx\n"</span>, (<span class="keywordtype">long</span>)<a class="code" href="map_8h.html#a1">key2str</a>(m));
+00094 <span class="keywordflow">if</span> (<a class="code" href="map_8h.html#a1">key2str</a>(m))
+00095 <a class="code" href="alloc_8h.html#a5">_stp_free</a>(<a class="code" href="map_8h.html#a1">key2str</a>(m));
+00096 }
+00097 }
+00098
+<a name="l00104"></a><a class="code" href="map_8c.html#a5">00104</a> <span class="keywordtype">void</span> <a class="code" href="map_8c.html#a5">_stp_map_key_del</a>(<a class="code" href="structmap__root.html">MAP</a> map)
+00105 {
+00106 <span class="keyword">struct </span><a class="code" href="structmap__node.html">map_node</a> *m;
+00107
+00108 <a class="code" href="runtime_8h.html#a0">dbug</a> (<span class="stringliteral">"create=%d key=%lx\n"</span>, map-&gt;<a class="code" href="structmap__root.html#o6">create</a>, (<span class="keywordtype">long</span>)map-&gt;<a class="code" href="structmap__root.html#o5">key</a>);
+00109 <span class="keywordflow">if</span> (map == NULL)
+00110 <span class="keywordflow">return</span>;
+00111
+00112 <span class="keywordflow">if</span> (map-&gt;<a class="code" href="structmap__root.html#o6">create</a>) {
+00113 map-&gt;<a class="code" href="structmap__root.html#o6">create</a> = 0;
+00114 map-&gt;<a class="code" href="structmap__root.html#o5">key</a> = NULL;
+00115 <span class="keywordflow">return</span>;
+00116 }
+00117
+00118 <span class="keywordflow">if</span> (map-&gt;<a class="code" href="structmap__root.html#o5">key</a> == NULL)
+00119 <span class="keywordflow">return</span>;
+00120
+00121 m = (<span class="keyword">struct </span><a class="code" href="structmap__node.html">map_node</a> *)map-&gt;<a class="code" href="structmap__root.html#o5">key</a>;
+00122
+00123 <span class="comment">/* remove node from old hash list */</span>
+00124 hlist_del_init(&amp;m-&gt;<a class="code" href="structmap__node.html#o1">hnode</a>);
+00125
+00126 <span class="comment">/* remove from entry list */</span>
+00127 list_del(&amp;m-&gt;<a class="code" href="structmap__node.html#o0">lnode</a>);
+00128
+00129 <span class="comment">/* remove any allocated string storage */</span>
+00130 map_free_strings(map, (<span class="keyword">struct</span> <a class="code" href="structmap__node.html">map_node</a> *)map-&gt;<a class="code" href="structmap__root.html#o5">key</a>);
+00131
+00132 <span class="keywordflow">if</span> (map-&gt;<a class="code" href="structmap__root.html#o0">maxnum</a>)
+00133 list_add(&amp;m-&gt;<a class="code" href="structmap__node.html#o0">lnode</a>, &amp;map-&gt;<a class="code" href="structmap__root.html#o4">pool</a>);
+00134 <span class="keywordflow">else</span>
+00135 <a class="code" href="alloc_8h.html#a5">_stp_free</a>(m);
+00136
+00137 map-&gt;<a class="code" href="structmap__root.html#o5">key</a> = NULL;
+00138 map-&gt;<a class="code" href="structmap__root.html#o1">num</a>--;
+00139 }
+00140
+<a name="l00149"></a><a class="code" href="map_8c.html#a6">00149</a> <span class="keyword">struct </span><a class="code" href="structmap__node.html">map_node</a> *<a class="code" href="map_8c.html#a6">_stp_map_start</a>(<a class="code" href="structmap__root.html">MAP</a> map)
+00150 {
+00151 <span class="keywordflow">if</span> (map == NULL)
+00152 <span class="keywordflow">return</span> NULL;
+00153
+00154 <a class="code" href="runtime_8h.html#a0">dbug</a> (<span class="stringliteral">"%lx\n"</span>, (<span class="keywordtype">long</span>)map-&gt;<a class="code" href="structmap__root.html#o3">head</a>.next);
+00155
+00156 <span class="keywordflow">if</span> (list_empty(&amp;map-&gt;<a class="code" href="structmap__root.html#o3">head</a>))
+00157 <span class="keywordflow">return</span> NULL;
+00158
+00159 <span class="keywordflow">return</span> (<span class="keyword">struct </span><a class="code" href="structmap__node.html">map_node</a> *)map-&gt;<a class="code" href="structmap__root.html#o3">head</a>.next;
+00160 }
+00161
+<a name="l00172"></a><a class="code" href="map_8c.html#a7">00172</a> <span class="keyword">struct </span><a class="code" href="structmap__node.html">map_node</a> *<a class="code" href="map_8c.html#a7">_stp_map_iter</a>(<a class="code" href="structmap__root.html">MAP</a> map, <span class="keyword">struct</span> <a class="code" href="structmap__node.html">map_node</a> *m)
+00173 {
+00174 <span class="keywordflow">if</span> (map == NULL)
+00175 <span class="keywordflow">return</span> NULL;
+00176
+00177 <a class="code" href="runtime_8h.html#a0">dbug</a> (<span class="stringliteral">"%lx next=%lx prev=%lx map-&gt;head.next=%lx\n"</span>, (<span class="keywordtype">long</span>)m, (<span class="keywordtype">long</span>)m-&gt;<a class="code" href="structmap__node.html#o0">lnode</a>.next, (<span class="keywordtype">long</span>)m-&gt;<a class="code" href="structmap__node.html#o0">lnode</a>.prev, (<span class="keywordtype">long</span>)map-&gt;<a class="code" href="structmap__root.html#o3">head</a>.next);
+00178
+00179 <span class="keywordflow">if</span> (m-&gt;lnode.next == &amp;map-&gt;<a class="code" href="structmap__root.html#o3">head</a>)
+00180 <span class="keywordflow">return</span> NULL;
+00181
+00182 <span class="keywordflow">return</span> (<span class="keyword">struct </span><a class="code" href="structmap__node.html">map_node</a> *)m-&gt;<a class="code" href="structmap__node.html#o0">lnode</a>.next;
+00183 }
+00184
+<a name="l00190"></a><a class="code" href="map_8c.html#a8">00190</a> <span class="keywordtype">void</span> <a class="code" href="map_8c.html#a8">_stp_map_del</a>(<a class="code" href="structmap__root.html">MAP</a> map)
+00191 {
+00192 <span class="keywordflow">if</span> (map == NULL)
+00193 <span class="keywordflow">return</span>;
+00194
+00195 <span class="keywordflow">if</span> (!list_empty(&amp;map-&gt;<a class="code" href="structmap__root.html#o3">head</a>)) {
+00196 <span class="keyword">struct </span><a class="code" href="structmap__node.html">map_node</a> *ptr = (<span class="keyword">struct </span><a class="code" href="structmap__node.html">map_node</a> *)map-&gt;<a class="code" href="structmap__root.html#o3">head</a>.next;
+00197 <span class="keywordflow">while</span> (ptr &amp;&amp; ptr != (<span class="keyword">struct </span><a class="code" href="structmap__node.html">map_node</a> *)&amp;map-&gt;<a class="code" href="structmap__root.html#o3">head</a>) {
+00198 map_free_strings(map, ptr);
+00199 ptr = (<span class="keyword">struct </span><a class="code" href="structmap__node.html">map_node</a> *)ptr-&gt;<a class="code" href="structmap__node.html#o0">lnode</a>.next;
+00200 }
+00201 }
+00202 <a class="code" href="alloc_8h.html#a6">_stp_vfree</a>(map-&gt;<a class="code" href="structmap__root.html#o11">membuf</a>);
+00203 <a class="code" href="alloc_8h.html#a6">_stp_vfree</a>(map);
+00204 }
+00205
+00206 <span class="comment">/********************** KEY FUNCTIONS *********************/</span>
+00207
+00208
+<a name="l00218"></a><a class="code" href="map_8c.html#a9">00218</a> <span class="keywordtype">void</span> <a class="code" href="map_8c.html#a9">_stp_map_key_long_long</a>(<a class="code" href="structmap__root.html">MAP</a> map, <span class="keywordtype">long</span> key1, <span class="keywordtype">long</span> key2)
+00219 {
+00220 <span class="keywordtype">unsigned</span> hv;
+00221 <span class="keyword">struct </span>hlist_head *head;
+00222 <span class="keyword">struct </span>hlist_node *e;
+00223
+00224 <span class="keywordflow">if</span> (map == NULL)
+00225 <span class="keywordflow">return</span>;
+00226
+00227 hv = hash_long(key1 ^ key2, HASH_TABLE_BITS);
+00228 head = &amp;map-&gt;<a class="code" href="structmap__root.html#o10">hashes</a>[hv];
+00229
+00230 <a class="code" href="runtime_8h.html#a0">dbug</a> (<span class="stringliteral">"hash for %ld,%ld is %d\n"</span>, key1, key2, hv);
+00231
+00232 hlist_for_each(e, head) {
+00233 <span class="keyword">struct </span><a class="code" href="structmap__node.html">map_node</a> *n =
+00234 (<span class="keyword">struct </span><a class="code" href="structmap__node.html">map_node</a> *)((long)e - <span class="keyword">sizeof</span>(<span class="keyword">struct </span>hlist_node));
+00235 <a class="code" href="runtime_8h.html#a0">dbug</a> (<span class="stringliteral">"n =%lx key=%ld,%ld\n"</span>, (<span class="keywordtype">long</span>)n, n-&gt;<a class="code" href="structmap__node.html#o2">key1</a>.<a class="code" href="unionkey__data.html#o0">val</a>, n-&gt;key2.<a class="code" href="unionkey__data.html#o0">val</a>);
+00236 <span class="keywordflow">if</span> (key1 == n-&gt;key1.val &amp;&amp; key2 == n-&gt;key2.val) {
+00237 map-&gt;<a class="code" href="structmap__root.html#o5">key</a> = n;
+00238 <a class="code" href="runtime_8h.html#a0">dbug</a> (<span class="stringliteral">"saving key %lx\n"</span>, (<span class="keywordtype">long</span>)map-&gt;<a class="code" href="structmap__root.html#o5">key</a>);
+00239 map-&gt;<a class="code" href="structmap__root.html#o6">create</a> = 0;
+00240 <span class="keywordflow">return</span>;
+00241 }
+00242 }
+00243
+00244 map-&gt;<a class="code" href="structmap__root.html#o8">c_key1</a>.<a class="code" href="unionkey__data.html#o0">val</a> = key1;
+00245 map-&gt;<a class="code" href="structmap__root.html#o9">c_key2</a>.<a class="code" href="unionkey__data.html#o0">val</a> = key2;
+00246 map-&gt;c_key1type = LONG;
+00247 map-&gt;c_key2type = LONG;
+00248 map-&gt;<a class="code" href="structmap__root.html#o7">c_keyhead</a> = head;
+00249 map-&gt;<a class="code" href="structmap__root.html#o6">create</a> = 1;
+00250 }
+00251
+<a name="l00261"></a><a class="code" href="map_8c.html#a10">00261</a> <span class="keywordtype">void</span> <a class="code" href="map_8c.html#a10">_stp_map_key_str_str</a>(<a class="code" href="structmap__root.html">MAP</a> map, <span class="keywordtype">char</span> *key1, <span class="keywordtype">char</span> *key2)
+00262 {
+00263 <span class="keywordtype">unsigned</span> hv;
+00264 <span class="keyword">struct </span>hlist_head *head;
+00265 <span class="keyword">struct </span>hlist_node *e;
+00266
+00267 <span class="keywordflow">if</span> (map == NULL)
+00268 <span class="keywordflow">return</span>;
+00269
+00270 <span class="keywordflow">if</span> (key1 == NULL) {
+00271 map-&gt;<a class="code" href="structmap__root.html#o5">key</a> = NULL;
+00272 <span class="keywordflow">return</span>;
+00273 }
+00274
+00275 hv = string_hash(key1, key2);
+00276 head = &amp;map-&gt;<a class="code" href="structmap__root.html#o10">hashes</a>[hv];
+00277
+00278 <a class="code" href="runtime_8h.html#a0">dbug</a> (<span class="stringliteral">"hash for %s,%s is %d\n"</span>, key1, key2, hv);
+00279
+00280 hlist_for_each(e, head) {
+00281 <span class="keyword">struct </span><a class="code" href="structmap__node.html">map_node</a> *n =
+00282 (<span class="keyword">struct </span><a class="code" href="structmap__node.html">map_node</a> *)((long)e - <span class="keyword">sizeof</span>(<span class="keyword">struct </span>hlist_node));
+00283 <a class="code" href="runtime_8h.html#a0">dbug</a> (<span class="stringliteral">"e =%lx key=%s,%s\n"</span>, (<span class="keywordtype">long</span>)e, n-&gt;<a class="code" href="structmap__node.html#o2">key1</a>.<a class="code" href="unionkey__data.html#o1">str</a>,n-&gt;<a class="code" href="structmap__node.html#o3">key2</a>.<a class="code" href="unionkey__data.html#o1">str</a>);
+00284 <span class="keywordflow">if</span> (strcmp(key1, n-&gt;<a class="code" href="structmap__node.html#o2">key1</a>.<a class="code" href="unionkey__data.html#o1">str</a>) == 0
+00285 &amp;&amp; (key2 == NULL || strcmp(key2, n-&gt;<a class="code" href="structmap__node.html#o3">key2</a>.<a class="code" href="unionkey__data.html#o1">str</a>) == 0)) {
+00286 map-&gt;<a class="code" href="structmap__root.html#o5">key</a> = n;
+00287 <a class="code" href="runtime_8h.html#a0">dbug</a> (<span class="stringliteral">"saving key %lx\n"</span>, (<span class="keywordtype">long</span>)map-&gt;<a class="code" href="structmap__root.html#o5">key</a>);
+00288 map-&gt;<a class="code" href="structmap__root.html#o6">create</a> = 0;
+00289 <span class="keywordflow">return</span>;
+00290 }
+00291 }
+00292
+00293 map-&gt;<a class="code" href="structmap__root.html#o8">c_key1</a>.<a class="code" href="unionkey__data.html#o1">str</a> = key1;
+00294 map-&gt;<a class="code" href="structmap__root.html#o9">c_key2</a>.<a class="code" href="unionkey__data.html#o1">str</a> = key2;
+00295 map-&gt;c_key1type = STR;
+00296 map-&gt;c_key2type = STR;
+00297 map-&gt;<a class="code" href="structmap__root.html#o7">c_keyhead</a> = head;
+00298 map-&gt;<a class="code" href="structmap__root.html#o6">create</a> = 1;
+00299 }
+00300
+<a name="l00310"></a><a class="code" href="map_8c.html#a11">00310</a> <span class="keywordtype">void</span> <a class="code" href="map_8c.html#a11">_stp_map_key_str_long</a>(<a class="code" href="structmap__root.html">MAP</a> map, <span class="keywordtype">char</span> *key1, <span class="keywordtype">long</span> key2)
+00311 {
+00312 <span class="keywordtype">unsigned</span> hv;
+00313 <span class="keyword">struct </span>hlist_head *head;
+00314 <span class="keyword">struct </span>hlist_node *e;
+00315
+00316 <span class="keywordflow">if</span> (map == NULL)
+00317 <span class="keywordflow">return</span>;
+00318
+00319 <span class="keywordflow">if</span> (key1 == NULL) {
+00320 map-&gt;<a class="code" href="structmap__root.html#o5">key</a> = NULL;
+00321 <span class="keywordflow">return</span>;
+00322 }
+00323
+00324 hv = mixed_hash(key1, key2);
+00325 head = &amp;map-&gt;<a class="code" href="structmap__root.html#o10">hashes</a>[hv];
+00326
+00327 <a class="code" href="runtime_8h.html#a0">dbug</a> (<span class="stringliteral">"hash for %s,%ld is %d\n"</span>, key1, key2, hv);
+00328
+00329 hlist_for_each(e, head) {
+00330 <span class="keyword">struct </span><a class="code" href="structmap__node.html">map_node</a> *n =
+00331 (<span class="keyword">struct </span><a class="code" href="structmap__node.html">map_node</a> *)((long)e - <span class="keyword">sizeof</span>(<span class="keyword">struct </span>hlist_node));
+00332 <a class="code" href="runtime_8h.html#a0">dbug</a> (<span class="stringliteral">"e =%lx key=%s,%ld\n"</span>, (<span class="keywordtype">long</span>)e, n-&gt;<a class="code" href="structmap__node.html#o2">key1</a>.<a class="code" href="unionkey__data.html#o1">str</a>,(<span class="keywordtype">long</span>)n-&gt;<a class="code" href="structmap__node.html#o3">key2</a>.<a class="code" href="unionkey__data.html#o0">val</a>);
+00333 <span class="keywordflow">if</span> (strcmp(key1, n-&gt;<a class="code" href="structmap__node.html#o2">key1</a>.<a class="code" href="unionkey__data.html#o1">str</a>) == 0 &amp;&amp; key2 == n-&gt;<a class="code" href="structmap__node.html#o3">key2</a>.<a class="code" href="unionkey__data.html#o0">val</a>) {
+00334 map-&gt;<a class="code" href="structmap__root.html#o5">key</a> = n;
+00335 <a class="code" href="runtime_8h.html#a0">dbug</a> (<span class="stringliteral">"saving key %lx\n"</span>, (<span class="keywordtype">long</span>)map-&gt;<a class="code" href="structmap__root.html#o5">key</a>);
+00336 map-&gt;<a class="code" href="structmap__root.html#o6">create</a> = 0;
+00337 <span class="keywordflow">return</span>;
+00338 }
+00339 }
+00340
+00341 map-&gt;<a class="code" href="structmap__root.html#o8">c_key1</a>.<a class="code" href="unionkey__data.html#o1">str</a> = key1;
+00342 map-&gt;<a class="code" href="structmap__root.html#o9">c_key2</a>.<a class="code" href="unionkey__data.html#o0">val</a> = key2;
+00343 map-&gt;c_key1type = STR;
+00344 map-&gt;c_key2type = LONG;
+00345 map-&gt;<a class="code" href="structmap__root.html#o7">c_keyhead</a> = head;
+00346 map-&gt;<a class="code" href="structmap__root.html#o6">create</a> = 1;
+00347 }
+00348
+<a name="l00358"></a><a class="code" href="map_8c.html#a12">00358</a> <span class="keywordtype">void</span> <a class="code" href="map_8c.html#a12">_stp_map_key_long_str</a>(<a class="code" href="structmap__root.html">MAP</a> map, <span class="keywordtype">long</span> key1, <span class="keywordtype">char</span> *key2)
+00359 {
+00360 <span class="keywordtype">unsigned</span> hv;
+00361 <span class="keyword">struct </span>hlist_head *head;
+00362 <span class="keyword">struct </span>hlist_node *e;
+00363
+00364 <span class="keywordflow">if</span> (map == NULL)
+00365 <span class="keywordflow">return</span>;
+00366
+00367 hv = mixed_hash(key2, key1);
+00368 head = &amp;map-&gt;<a class="code" href="structmap__root.html#o10">hashes</a>[hv];
+00369 <a class="code" href="runtime_8h.html#a0">dbug</a> (<span class="stringliteral">"hash for %ld,%s is %d\n"</span>, key1, key2, hv);
+00370
+00371 hlist_for_each(e, head) {
+00372 <span class="keyword">struct </span><a class="code" href="structmap__node.html">map_node</a> *n =
+00373 (<span class="keyword">struct </span><a class="code" href="structmap__node.html">map_node</a> *)((long)e - <span class="keyword">sizeof</span>(<span class="keyword">struct </span>hlist_node));
+00374 <a class="code" href="runtime_8h.html#a0">dbug</a> (<span class="stringliteral">"e =%lx key=%ld,%s\n"</span>, (<span class="keywordtype">long</span>)e, n-&gt;<a class="code" href="structmap__node.html#o2">key1</a>.<a class="code" href="unionkey__data.html#o0">val</a>,n-&gt;<a class="code" href="structmap__node.html#o3">key2</a>.<a class="code" href="unionkey__data.html#o1">str</a>);
+00375 <span class="keywordflow">if</span> (key1 == n-&gt;<a class="code" href="structmap__node.html#o2">key1</a>.<a class="code" href="unionkey__data.html#o0">val</a> &amp;&amp; strcmp(key2, n-&gt;<a class="code" href="structmap__node.html#o3">key2</a>.<a class="code" href="unionkey__data.html#o1">str</a>) == 0) {
+00376 map-&gt;<a class="code" href="structmap__root.html#o5">key</a> = n;
+00377 <a class="code" href="runtime_8h.html#a0">dbug</a> (<span class="stringliteral">"saving key %lx\n"</span>, (<span class="keywordtype">long</span>)map-&gt;<a class="code" href="structmap__root.html#o5">key</a>);
+00378 map-&gt;<a class="code" href="structmap__root.html#o6">create</a> = 0;
+00379 <span class="keywordflow">return</span>;
+00380 }
+00381 }
+00382
+00383 map-&gt;<a class="code" href="structmap__root.html#o8">c_key1</a>.<a class="code" href="unionkey__data.html#o0">val</a> = key1;
+00384 map-&gt;<a class="code" href="structmap__root.html#o9">c_key2</a>.<a class="code" href="unionkey__data.html#o1">str</a> = key2;
+00385 map-&gt;c_key1type = LONG;
+00386 map-&gt;c_key2type = STR;
+00387 map-&gt;<a class="code" href="structmap__root.html#o7">c_keyhead</a> = head;
+00388 map-&gt;<a class="code" href="structmap__root.html#o6">create</a> = 1;
+00389 }
+00390
+<a name="l00399"></a><a class="code" href="map_8c.html#a13">00399</a> <span class="keywordtype">void</span> <a class="code" href="map_8c.html#a13">_stp_map_key_str</a>(<a class="code" href="structmap__root.html">MAP</a> map, <span class="keywordtype">char</span> *key)
+00400 {
+00401 <span class="keywordflow">if</span> (map == NULL)
+00402 <span class="keywordflow">return</span>;
+00403 <a class="code" href="map_8c.html#a10">_stp_map_key_str_str</a>(map, key, NULL);
+00404 map-&gt;c_key2type = NONE;
+00405 }
+00406
+<a name="l00415"></a><a class="code" href="map_8c.html#a14">00415</a> <span class="keywordtype">void</span> <a class="code" href="map_8c.html#a14">_stp_map_key_long</a>(<a class="code" href="structmap__root.html">MAP</a> map, <span class="keywordtype">long</span> key)
+00416 {
+00417 <span class="keywordflow">if</span> (map == NULL)
+00418 <span class="keywordflow">return</span>;
+00419 <a class="code" href="map_8c.html#a9">_stp_map_key_long_long</a>(map, key, 0);
+00420 map-&gt;c_key2type = NONE;
+00421 }
+00422
+00423 <span class="comment">/********************** SET/GET VALUES *********************/</span>
+00424
+00425 <span class="keyword">static</span> <span class="keywordtype">void</span> map_copy_keys(<a class="code" href="structmap__root.html">MAP</a> map, <span class="keyword">struct</span> <a class="code" href="structmap__node.html">map_node</a> *m)
+00426 {
+00427 m-&gt;key1type = map-&gt;c_key1type;
+00428 m-&gt;key2type = map-&gt;c_key2type;
+00429 <span class="keywordflow">switch</span> (map-&gt;c_key1type) {
+00430 <span class="keywordflow">case</span> <a class="code" href="map_8h.html#a18a13">STR</a>:
+00431 m-&gt;<a class="code" href="structmap__node.html#o2">key1</a>.<a class="code" href="unionkey__data.html#o1">str</a> = <a class="code" href="alloc_8h.html#a2">_stp_alloc</a>(strlen(map-&gt;<a class="code" href="structmap__root.html#o8">c_key1</a>.<a class="code" href="unionkey__data.html#o1">str</a>) + 1);
+00432 strcpy(m-&gt;<a class="code" href="structmap__node.html#o2">key1</a>.<a class="code" href="unionkey__data.html#o1">str</a>, map-&gt;<a class="code" href="structmap__root.html#o8">c_key1</a>.<a class="code" href="unionkey__data.html#o1">str</a>);
+00433 <span class="keywordflow">break</span>;
+00434 <span class="keywordflow">case</span> <a class="code" href="map_8h.html#a18a12">LONG</a>:
+00435 m-&gt;<a class="code" href="structmap__node.html#o2">key1</a>.<a class="code" href="unionkey__data.html#o0">val</a> = map-&gt;<a class="code" href="structmap__root.html#o8">c_key1</a>.<a class="code" href="unionkey__data.html#o0">val</a>;
+00436 <span class="keywordflow">break</span>;
+00437 <span class="keywordflow">case</span> <a class="code" href="map_8h.html#a18a11">NONE</a>:
+00438 <span class="comment">/* ERROR */</span>
+00439 <span class="keywordflow">break</span>;
+00440 }
+00441 <span class="keywordflow">switch</span> (map-&gt;c_key2type) {
+00442 <span class="keywordflow">case</span> <a class="code" href="map_8h.html#a18a13">STR</a>:
+00443 m-&gt;<a class="code" href="structmap__node.html#o3">key2</a>.<a class="code" href="unionkey__data.html#o1">str</a> = <a class="code" href="alloc_8h.html#a2">_stp_alloc</a>(strlen(map-&gt;<a class="code" href="structmap__root.html#o9">c_key2</a>.<a class="code" href="unionkey__data.html#o1">str</a>) + 1);
+00444 strcpy(m-&gt;<a class="code" href="structmap__node.html#o3">key2</a>.<a class="code" href="unionkey__data.html#o1">str</a>, map-&gt;<a class="code" href="structmap__root.html#o9">c_key2</a>.<a class="code" href="unionkey__data.html#o1">str</a>);
+00445 <span class="keywordflow">break</span>;
+00446 <span class="keywordflow">case</span> <a class="code" href="map_8h.html#a18a12">LONG</a>:
+00447 m-&gt;<a class="code" href="structmap__node.html#o3">key2</a>.<a class="code" href="unionkey__data.html#o0">val</a> = map-&gt;<a class="code" href="structmap__root.html#o9">c_key2</a>.<a class="code" href="unionkey__data.html#o0">val</a>;
+00448 <span class="keywordflow">break</span>;
+00449 <span class="keywordflow">case</span> <a class="code" href="map_8h.html#a18a11">NONE</a>:
+00450 <span class="keywordflow">break</span>;
+00451 }
+00452
+00453 <span class="comment">/* add node to new hash list */</span>
+00454 hlist_add_head(&amp;m-&gt;<a class="code" href="structmap__node.html#o1">hnode</a>, map-&gt;<a class="code" href="structmap__root.html#o7">c_keyhead</a>);
+00455
+00456 map-&gt;<a class="code" href="structmap__root.html#o5">key</a> = m;
+00457 map-&gt;<a class="code" href="structmap__root.html#o6">create</a> = 0;
+00458 map-&gt;<a class="code" href="structmap__root.html#o1">num</a>++;
+00459 }
+00460
+<a name="l00471"></a><a class="code" href="map_8c.html#a16">00471</a> <span class="keywordtype">void</span> <a class="code" href="map_8c.html#a16">_stp_map_set_int64</a>(<a class="code" href="structmap__root.html">MAP</a> map, int64_t val)
+00472 {
+00473 <span class="keyword">struct </span><a class="code" href="structmap__node__int64.html">map_node_int64</a> *m;
+00474
+00475 <span class="keywordflow">if</span> (map == NULL)
+00476 <span class="keywordflow">return</span>;
+00477
+00478 <span class="keywordflow">if</span> (map-&gt;<a class="code" href="structmap__root.html#o6">create</a>) {
+00479 <span class="keywordflow">if</span> (val == 0)
+00480 <span class="keywordflow">return</span>;
+00481
+00482 <span class="keywordflow">if</span> (map-&gt;<a class="code" href="structmap__root.html#o0">maxnum</a>) {
+00483 <span class="keywordflow">if</span> (list_empty(&amp;map-&gt;<a class="code" href="structmap__root.html#o4">pool</a>)) {
+00484 <span class="keywordflow">if</span> (map-&gt;<a class="code" href="structmap__root.html#o2">no_wrap</a>) {
+00485 <span class="comment">/* ERROR. FIXME */</span>
+00486 <span class="keywordflow">return</span>;
+00487 }
+00488 m = (<span class="keyword">struct </span><a class="code" href="structmap__node__int64.html">map_node_int64</a> *)map-&gt;<a class="code" href="structmap__root.html#o3">head</a>.next;
+00489 hlist_del_init(&amp;m-&gt;<a class="code" href="structmap__node__int64.html#o0">n</a>.<a class="code" href="structmap__node.html#o1">hnode</a>);
+00490 map_free_strings(map, (<span class="keyword">struct</span> <a class="code" href="structmap__node.html">map_node</a> *)m);
+00491 <a class="code" href="runtime_8h.html#a0">dbug</a> (<span class="stringliteral">"got %lx off head\n"</span>, (<span class="keywordtype">long</span>)m);
+00492 } <span class="keywordflow">else</span> {
+00493 m = (<span class="keyword">struct </span><a class="code" href="structmap__node__int64.html">map_node_int64</a> *)map-&gt;<a class="code" href="structmap__root.html#o4">pool</a>.next;
+00494 <a class="code" href="runtime_8h.html#a0">dbug</a> (<span class="stringliteral">"got %lx off pool\n"</span>, (<span class="keywordtype">long</span>)m);
+00495 }
+00496 list_move_tail(&amp;m-&gt;<a class="code" href="structmap__node__int64.html#o0">n</a>.<a class="code" href="structmap__node.html#o0">lnode</a>, &amp;map-&gt;<a class="code" href="structmap__root.html#o3">head</a>);
+00497 } <span class="keywordflow">else</span> {
+00498 m = (<span class="keyword">struct </span><a class="code" href="structmap__node__int64.html">map_node_int64</a> *)
+00499 <a class="code" href="alloc_8h.html#a3">_stp_calloc</a>(<span class="keyword">sizeof</span>(<span class="keyword">struct</span> <a class="code" href="structmap__node__int64.html">map_node_int64</a>));
+00500 <span class="comment">/* add node to list */</span>
+00501 list_add_tail(&amp;m-&gt;<a class="code" href="structmap__node__int64.html#o0">n</a>.<a class="code" href="structmap__node.html#o0">lnode</a>, &amp;map-&gt;<a class="code" href="structmap__root.html#o3">head</a>);
+00502 }
+00503
+00504 <span class="comment">/* copy the key(s) */</span>
+00505 map_copy_keys(map, &amp;m-&gt;<a class="code" href="structmap__node__int64.html#o0">n</a>);
+00506
+00507 <span class="comment">/* set the value */</span>
+00508 m-&gt;<a class="code" href="structmap__node__int64.html#o1">val</a> = val;
+00509 } <span class="keywordflow">else</span> {
+00510 <span class="keywordflow">if</span> (map-&gt;<a class="code" href="structmap__root.html#o5">key</a> == NULL)
+00511 <span class="keywordflow">return</span>;
+00512
+00513 <span class="keywordflow">if</span> (val) {
+00514 m = (<span class="keyword">struct </span><a class="code" href="structmap__node__int64.html">map_node_int64</a> *)map-&gt;<a class="code" href="structmap__root.html#o5">key</a>;
+00515 m-&gt;<a class="code" href="structmap__node__int64.html#o1">val</a> = val;
+00516 } <span class="keywordflow">else</span> {
+00517 <span class="comment">/* setting value to 0 is the same as deleting */</span>
+00518 <a class="code" href="map_8c.html#a5">_stp_map_key_del</a>(map);
+00519 }
+00520 }
+00521 }
+00522
+<a name="l00528"></a><a class="code" href="map_8c.html#a17">00528</a> int64_t <a class="code" href="map_8c.html#a17">_stp_map_get_int64</a>(<a class="code" href="structmap__root.html">MAP</a> map)
+00529 {
+00530 <span class="keyword">struct </span><a class="code" href="structmap__node__int64.html">map_node_int64</a> *m;
+00531 <span class="keywordflow">if</span> (map == NULL || map-&gt;<a class="code" href="structmap__root.html#o6">create</a> || map-&gt;<a class="code" href="structmap__root.html#o5">key</a> == NULL)
+00532 <span class="keywordflow">return</span> 0;
+00533 <a class="code" href="runtime_8h.html#a0">dbug</a> (<span class="stringliteral">"%lx\n"</span>, (<span class="keywordtype">long</span>)map-&gt;<a class="code" href="structmap__root.html#o5">key</a>);
+00534 m = (<span class="keyword">struct </span><a class="code" href="structmap__node__int64.html">map_node_int64</a> *)map-&gt;<a class="code" href="structmap__root.html#o5">key</a>;
+00535 <span class="keywordflow">return</span> m-&gt;<a class="code" href="structmap__node__int64.html#o1">val</a>;
+00536 }
+00537
+<a name="l00548"></a><a class="code" href="map_8c.html#a18">00548</a> <span class="keywordtype">void</span> <a class="code" href="map_8c.html#a18">_stp_map_set_str</a>(<a class="code" href="structmap__root.html">MAP</a> map, <span class="keywordtype">char</span> *val)
+00549 {
+00550 <span class="keyword">struct </span>map_node_str *m;
+00551
+00552 <span class="keywordflow">if</span> (map == NULL)
+00553 <span class="keywordflow">return</span>;
+00554
+00555 <span class="keywordflow">if</span> (map-&gt;<a class="code" href="structmap__root.html#o6">create</a>) {
+00556 <span class="keywordflow">if</span> (val == NULL)
+00557 <span class="keywordflow">return</span>;
+00558
+00559 <span class="keywordflow">if</span> (map-&gt;<a class="code" href="structmap__root.html#o0">maxnum</a>) {
+00560 <span class="keywordflow">if</span> (list_empty(&amp;map-&gt;<a class="code" href="structmap__root.html#o4">pool</a>)) {
+00561 <span class="keywordflow">if</span> (map-&gt;<a class="code" href="structmap__root.html#o2">no_wrap</a>) {
+00562 <span class="comment">/* ERROR. FIXME */</span>
+00563 <span class="keywordflow">return</span>;
+00564 }
+00565 m = (<span class="keyword">struct </span>map_node_str *)map-&gt;<a class="code" href="structmap__root.html#o3">head</a>.next;
+00566 hlist_del_init(&amp;m-&gt;<a class="code" href="structmap__node__str.html#o0">n</a>.<a class="code" href="structmap__node.html#o1">hnode</a>);
+00567 map_free_strings(map, (<span class="keyword">struct</span> <a class="code" href="structmap__node.html">map_node</a> *)m);
+00568 <a class="code" href="runtime_8h.html#a0">dbug</a> (<span class="stringliteral">"got %lx off head\n"</span>, (<span class="keywordtype">long</span>)m);
+00569 } <span class="keywordflow">else</span> {
+00570 m = (<span class="keyword">struct </span>map_node_str *)map-&gt;<a class="code" href="structmap__root.html#o4">pool</a>.next;
+00571 <a class="code" href="runtime_8h.html#a0">dbug</a> (<span class="stringliteral">"got %lx off pool\n"</span>, (<span class="keywordtype">long</span>)m);
+00572 }
+00573 list_move_tail(&amp;m-&gt;<a class="code" href="structmap__node__str.html#o0">n</a>.<a class="code" href="structmap__node.html#o0">lnode</a>, &amp;map-&gt;<a class="code" href="structmap__root.html#o3">head</a>);
+00574 } <span class="keywordflow">else</span> {
+00575 m = (<span class="keyword">struct </span>map_node_str *)
+00576 <a class="code" href="alloc_8h.html#a3">_stp_calloc</a>(<span class="keyword">sizeof</span>(<span class="keyword">struct</span> map_node_str));
+00577 <span class="comment">/* add node to list */</span>
+00578 list_add_tail(&amp;m-&gt;<a class="code" href="structmap__node__str.html#o0">n</a>.<a class="code" href="structmap__node.html#o0">lnode</a>, &amp;map-&gt;<a class="code" href="structmap__root.html#o3">head</a>);
+00579 }
+00580
+00581 <span class="comment">/* copy the key(s) */</span>
+00582 map_copy_keys(map, &amp;m-&gt;<a class="code" href="structmap__node__str.html#o0">n</a>);
+00583
+00584 <span class="comment">/* set the value */</span>
+00585 m-&gt;<a class="code" href="structmap__node__str.html#o1">str</a> = <a class="code" href="alloc_8h.html#a2">_stp_alloc</a>(strlen(val) + 1);
+00586 strcpy(m-&gt;<a class="code" href="structmap__node__str.html#o1">str</a>, val);
+00587 } <span class="keywordflow">else</span> {
+00588 <span class="keywordflow">if</span> (map-&gt;<a class="code" href="structmap__root.html#o5">key</a> == NULL)
+00589 <span class="keywordflow">return</span>;
+00590
+00591 <span class="keywordflow">if</span> (val) {
+00592 m = (<span class="keyword">struct </span>map_node_str *)map-&gt;<a class="code" href="structmap__root.html#o5">key</a>;
+00593 <span class="keywordflow">if</span> (m-&gt;<a class="code" href="structmap__node__str.html#o1">str</a>)
+00594 <a class="code" href="alloc_8h.html#a5">_stp_free</a>(m-&gt;<a class="code" href="structmap__node__str.html#o1">str</a>);
+00595 m-&gt;<a class="code" href="structmap__node__str.html#o1">str</a> = <a class="code" href="alloc_8h.html#a2">_stp_alloc</a>(strlen(val) + 1);
+00596 strcpy(m-&gt;<a class="code" href="structmap__node__str.html#o1">str</a>, val);
+00597 } <span class="keywordflow">else</span> {
+00598 <span class="comment">/* setting value to 0 is the same as deleting */</span>
+00599 <a class="code" href="map_8c.html#a5">_stp_map_key_del</a>(map);
+00600 }
+00601 }
+00602 }
+00603
+<a name="l00609"></a><a class="code" href="map_8c.html#a19">00609</a> <span class="keywordtype">char</span> *<a class="code" href="map_8c.html#a19">_stp_map_get_str</a>(<a class="code" href="structmap__root.html">MAP</a> map)
+00610 {
+00611 <span class="keyword">struct </span>map_node_str *m;
+00612 <span class="keywordflow">if</span> (map == NULL || map-&gt;<a class="code" href="structmap__root.html#o6">create</a> || map-&gt;<a class="code" href="structmap__root.html#o5">key</a> == NULL)
+00613 <span class="keywordflow">return</span> NULL;
+00614 <a class="code" href="runtime_8h.html#a0">dbug</a> (<span class="stringliteral">"%lx\n"</span>, (<span class="keywordtype">long</span>)map-&gt;<a class="code" href="structmap__root.html#o5">key</a>);
+00615 m = (<span class="keyword">struct </span>map_node_str *)map-&gt;<a class="code" href="structmap__root.html#o5">key</a>;
+00616 <span class="keywordflow">return</span> m-&gt;<a class="code" href="structmap__node__str.html#o1">str</a>;
+00617 }
+00618
+<a name="l00633"></a><a class="code" href="map_8c.html#a20">00633</a> <span class="keywordtype">void</span> <a class="code" href="map_8c.html#a20">_stp_map_set_stat</a>(<a class="code" href="structmap__root.html">MAP</a> map, <a class="code" href="structstat.html">stat</a> * stats)
+00634 {
+00635 <span class="keyword">struct </span>map_node_stat *m;
+00636
+00637 <span class="keywordflow">if</span> (map == NULL)
+00638 <span class="keywordflow">return</span>;
+00639 <a class="code" href="runtime_8h.html#a0">dbug</a> (<span class="stringliteral">"set_stat %lx\n"</span>, (<span class="keywordtype">long</span>)map-&gt;<a class="code" href="structmap__root.html#o5">key</a>);
+00640
+00641 <span class="keywordflow">if</span> (map-&gt;<a class="code" href="structmap__root.html#o6">create</a>) {
+00642 <span class="keywordflow">if</span> (stats == NULL)
+00643 <span class="keywordflow">return</span>;
+00644
+00645 <span class="keywordflow">if</span> (map-&gt;<a class="code" href="structmap__root.html#o0">maxnum</a>) {
+00646 <span class="keywordflow">if</span> (list_empty(&amp;map-&gt;<a class="code" href="structmap__root.html#o4">pool</a>)) {
+00647 <span class="keywordflow">if</span> (map-&gt;<a class="code" href="structmap__root.html#o2">no_wrap</a>) {
+00648 <span class="comment">/* ERROR. FIXME */</span>
+00649 <span class="keywordflow">return</span>;
+00650 }
+00651 m = (<span class="keyword">struct </span>map_node_stat *)map-&gt;<a class="code" href="structmap__root.html#o3">head</a>.next;
+00652 hlist_del_init(&amp;m-&gt;<a class="code" href="structmap__node__stat.html#o0">n</a>.<a class="code" href="structmap__node.html#o1">hnode</a>);
+00653 map_free_strings(map, (<span class="keyword">struct</span> <a class="code" href="structmap__node.html">map_node</a> *)m);
+00654 <a class="code" href="runtime_8h.html#a0">dbug</a> (<span class="stringliteral">"got %lx off head\n"</span>, (<span class="keywordtype">long</span>)m);
+00655 } <span class="keywordflow">else</span> {
+00656 m = (<span class="keyword">struct </span>map_node_stat *)map-&gt;<a class="code" href="structmap__root.html#o4">pool</a>.next;
+00657 <a class="code" href="runtime_8h.html#a0">dbug</a> (<span class="stringliteral">"got %lx off pool\n"</span>, (<span class="keywordtype">long</span>)m);
+00658 }
+00659 list_move_tail(&amp;m-&gt;<a class="code" href="structmap__node__stat.html#o0">n</a>.<a class="code" href="structmap__node.html#o0">lnode</a>, &amp;map-&gt;<a class="code" href="structmap__root.html#o3">head</a>);
+00660 } <span class="keywordflow">else</span> {
+00661 m = (<span class="keyword">struct </span>map_node_stat *)
+00662 <a class="code" href="alloc_8h.html#a3">_stp_calloc</a>(<span class="keyword">sizeof</span>(<span class="keyword">struct</span> map_node_stat));
+00663 <span class="comment">/* add node to list */</span>
+00664 list_add_tail(&amp;m-&gt;<a class="code" href="structmap__node__stat.html#o0">n</a>.<a class="code" href="structmap__node.html#o0">lnode</a>, &amp;map-&gt;<a class="code" href="structmap__root.html#o3">head</a>);
+00665 }
+00666
+00667 <span class="comment">/* copy the key(s) */</span>
+00668 map_copy_keys(map, &amp;m-&gt;<a class="code" href="structmap__node__stat.html#o0">n</a>);
+00669
+00670 <span class="comment">/* set the value */</span>
+00671 memcpy(&amp;m-&gt;<a class="code" href="structmap__node__stat.html#o1">stats</a>, stats, <span class="keyword">sizeof</span>(<a class="code" href="structstat.html">stat</a>));
+00672 } <span class="keywordflow">else</span> {
+00673 <span class="keywordflow">if</span> (map-&gt;<a class="code" href="structmap__root.html#o5">key</a> == NULL)
+00674 <span class="keywordflow">return</span>;
+00675
+00676 <span class="keywordflow">if</span> (stats) {
+00677 m = (<span class="keyword">struct </span>map_node_stat *)map-&gt;<a class="code" href="structmap__root.html#o5">key</a>;
+00678 memcpy(&amp;m-&gt;<a class="code" href="structmap__node__stat.html#o1">stats</a>, stats, <span class="keyword">sizeof</span>(<a class="code" href="structstat.html">stat</a>));
+00679 } <span class="keywordflow">else</span> {
+00680 <span class="comment">/* setting value to NULL is the same as deleting */</span>
+00681 <a class="code" href="map_8c.html#a5">_stp_map_key_del</a>(map);
+00682 }
+00683 }
+00684 }
+00685
+<a name="l00692"></a><a class="code" href="map_8c.html#a21">00692</a> <a class="code" href="structstat.html">stat</a> *<a class="code" href="map_8c.html#a21">_stp_map_get_stat</a>(<a class="code" href="structmap__root.html">MAP</a> map)
+00693 {
+00694 <span class="keyword">struct </span>map_node_stat *m;
+00695 <span class="keywordflow">if</span> (map == NULL || map-&gt;<a class="code" href="structmap__root.html#o6">create</a> || map-&gt;<a class="code" href="structmap__root.html#o5">key</a> == NULL)
+00696 <span class="keywordflow">return</span> NULL;
+00697 <a class="code" href="runtime_8h.html#a0">dbug</a> (<span class="stringliteral">"%lx\n"</span>, (<span class="keywordtype">long</span>)map-&gt;<a class="code" href="structmap__root.html#o5">key</a>);
+00698 m = (<span class="keyword">struct </span>map_node_stat *)map-&gt;<a class="code" href="structmap__root.html#o5">key</a>;
+00699 <span class="keywordflow">return</span> &amp;m-&gt;<a class="code" href="structmap__node__stat.html#o1">stats</a>;
+00700 }
+00701
+<a name="l00713"></a><a class="code" href="map_8c.html#a22">00713</a> <span class="keywordtype">void</span> <a class="code" href="map_8c.html#a22">_stp_map_stat_add</a>(<a class="code" href="structmap__root.html">MAP</a> map, int64_t val)
+00714 {
+00715 <span class="keyword">struct </span>map_node_stat *m;
+00716 <span class="keywordflow">if</span> (map == NULL)
+00717 <span class="keywordflow">return</span>;
+00718
+00719 <span class="keywordflow">if</span> (map-&gt;<a class="code" href="structmap__root.html#o6">create</a>) {
+00720 <a class="code" href="structstat.html">stat</a> st = { 1, val, val, val };
+00721 <span class="comment">/* histogram */</span>
+00722 <a class="code" href="map_8c.html#a20">_stp_map_set_stat</a>(map, &amp;st);
+00723 <span class="keywordflow">return</span>;
+00724 }
+00725
+00726 <span class="keywordflow">if</span> (map-&gt;<a class="code" href="structmap__root.html#o5">key</a> == NULL)
+00727 <span class="keywordflow">return</span>;
+00728
+00729 <a class="code" href="runtime_8h.html#a0">dbug</a> (<span class="stringliteral">"add_stat %lx\n"</span>, (<span class="keywordtype">long</span>)map-&gt;<a class="code" href="structmap__root.html#o5">key</a>);
+00730 m = (<span class="keyword">struct </span>map_node_stat *)map-&gt;<a class="code" href="structmap__root.html#o5">key</a>;
+00731 m-&gt;<a class="code" href="structmap__node__stat.html#o1">stats</a>.<a class="code" href="structstat.html#o0">count</a>++;
+00732 m-&gt;<a class="code" href="structmap__node__stat.html#o1">stats</a>.<a class="code" href="structstat.html#o1">sum</a> += val;
+00733 <span class="keywordflow">if</span> (val &gt; m-&gt;<a class="code" href="structmap__node__stat.html#o1">stats</a>.<a class="code" href="structstat.html#o3">max</a>)
+00734 m-&gt;<a class="code" href="structmap__node__stat.html#o1">stats</a>.<a class="code" href="structstat.html#o3">max</a> = val;
+00735 <span class="keywordflow">if</span> (val &lt; m-&gt;<a class="code" href="structmap__node__stat.html#o1">stats</a>.<a class="code" href="structstat.html#o2">min</a>)
+00736 m-&gt;<a class="code" href="structmap__node__stat.html#o1">stats</a>.<a class="code" href="structstat.html#o2">min</a> = val;
+00737 <span class="comment">/* histogram */</span>
+00738 }
+00739
+00740 <span class="comment">/********************** List Functions *********************/</span>
+00741
+<a name="l00753"></a><a class="code" href="map_8c.html#a23">00753</a> <a class="code" href="structmap__root.html">MAP</a> <a class="code" href="map_8c.html#a23">_stp_list_new</a>(<span class="keywordtype">unsigned</span> max_entries, <span class="keyword">enum</span> valtype type)
+00754 {
+00755 <a class="code" href="structmap__root.html">MAP</a> map = <a class="code" href="map_8c.html#a3">_stp_map_new</a> (max_entries, type);
+00756 map-&gt;<a class="code" href="structmap__root.html#o2">no_wrap</a> = 1;
+00757 <span class="keywordflow">return</span> map;
+00758 }
+00759
+<a name="l00765"></a><a class="code" href="map_8c.html#a24">00765</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="map_8c.html#a24">_stp_list_clear</a>(<a class="code" href="structmap__root.html">MAP</a> map)
+00766 {
+00767 <span class="keywordflow">if</span> (map == NULL)
+00768 <span class="keywordflow">return</span>;
+00769
+00770 <span class="keywordflow">if</span> (!list_empty(&amp;map-&gt;<a class="code" href="structmap__root.html#o3">head</a>)) {
+00771 <span class="keyword">struct </span><a class="code" href="structmap__node.html">map_node</a> *ptr = (<span class="keyword">struct </span><a class="code" href="structmap__node.html">map_node</a> *)map-&gt;<a class="code" href="structmap__root.html#o3">head</a>.next;
+00772
+00773 <span class="keywordflow">while</span> (ptr &amp;&amp; ptr != (<span class="keyword">struct </span><a class="code" href="structmap__node.html">map_node</a> *)&amp;map-&gt;<a class="code" href="structmap__root.html#o3">head</a>) {
+00774 <span class="keyword">struct </span><a class="code" href="structmap__node.html">map_node</a> *next = (<span class="keyword">struct </span><a class="code" href="structmap__node.html">map_node</a> *)ptr-&gt;<a class="code" href="structmap__node.html#o0">lnode</a>.next;
+00775
+00776 <span class="comment">/* remove node from old hash list */</span>
+00777 hlist_del_init(&amp;ptr-&gt;<a class="code" href="structmap__node.html#o1">hnode</a>);
+00778
+00779 <span class="comment">/* remove from entry list */</span>
+00780 list_del(&amp;ptr-&gt;<a class="code" href="structmap__node.html#o0">lnode</a>);
+00781
+00782 <span class="comment">/* remove any allocated string storage */</span>
+00783 map_free_strings(map, ptr);
+00784
+00785 <span class="keywordflow">if</span> (map-&gt;<a class="code" href="structmap__root.html#o0">maxnum</a>)
+00786 list_add(&amp;ptr-&gt;<a class="code" href="structmap__node.html#o0">lnode</a>, &amp;map-&gt;<a class="code" href="structmap__root.html#o4">pool</a>);
+00787 <span class="keywordflow">else</span>
+00788 <a class="code" href="alloc_8h.html#a5">_stp_free</a>(ptr);
+00789
+00790 map-&gt;<a class="code" href="structmap__root.html#o1">num</a>--;
+00791 ptr = next;
+00792 }
+00793 }
+00794
+00795 <span class="keywordflow">if</span> (map-&gt;<a class="code" href="structmap__root.html#o1">num</a> != 0) {
+00796 <a class="code" href="io_8c.html#a0">dlog</a> (<span class="stringliteral">"ERROR: list is supposed to be empty (has %d)\n"</span>, map-&gt;<a class="code" href="structmap__root.html#o1">num</a>);
+00797 }
+00798 }
+00799
+<a name="l00805"></a><a class="code" href="map_8c.html#a25">00805</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="map_8c.html#a25">_stp_list_add_str</a>(<a class="code" href="structmap__root.html">MAP</a> map, <span class="keywordtype">char</span> *str)
+00806 {
+00807 <a class="code" href="map_8c.html#a14">_stp_map_key_long</a>(map, map-&gt;<a class="code" href="structmap__root.html#o1">num</a>);
+00808 <a class="code" href="map_8c.html#a18">_stp_map_set_str</a>(map, str);
+00809 }
+00810
+<a name="l00816"></a><a class="code" href="map_8c.html#a26">00816</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="map_8c.html#a26">_stp_list_add_int64</a>(<a class="code" href="structmap__root.html">MAP</a> map, int64_t val)
+00817 {
+00818 <a class="code" href="map_8c.html#a14">_stp_map_key_long</a>(map, map-&gt;<a class="code" href="structmap__root.html#o1">num</a>);
+00819 <a class="code" href="map_8c.html#a16">_stp_map_set_int64</a>(map, val);
+00820 }
+00821
+<a name="l00827"></a><a class="code" href="map_8c.html#a27">00827</a> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="map_8c.html#a27">_stp_list_size</a>(<a class="code" href="structmap__root.html">MAP</a> map)
+00828 {
+00829 <span class="keywordflow">return</span> map-&gt;<a class="code" href="structmap__root.html#o1">num</a>;
+00830 }
+</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/map_8c.html b/runtime/docs/html/map_8c.html
new file mode 100644
index 00000000..d4982cac
--- /dev/null
+++ b/runtime/docs/html/map_8c.html
@@ -0,0 +1,1199 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1>map.c File Reference</h1>
+<p>
+<a href="map_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
+<tr><td></td></tr>
+<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structmap__root.html">MAP</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a3">_stp_map_new</a> (unsigned max_entries, enum <a class="el" href="map_8h.html#a19">valtype</a> type)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a new map. <a href="#a3"></a><br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a5">_stp_map_key_del</a> (<a class="el" href="structmap__root.html">MAP</a> map)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Deletes the current element. <a href="#a5"></a><br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structmap__node.html">map_node</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a6">_stp_map_start</a> (<a class="el" href="structmap__root.html">MAP</a> map)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the first element in a map. <a href="#a6"></a><br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structmap__node.html">map_node</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a7">_stp_map_iter</a> (<a class="el" href="structmap__root.html">MAP</a> map, struct <a class="el" href="structmap__node.html">map_node</a> *m)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the next element in a map. <a href="#a7"></a><br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a8">_stp_map_del</a> (<a class="el" href="structmap__root.html">MAP</a> map)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Deletes a map. <a href="#a8"></a><br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a9">_stp_map_key_long_long</a> (<a class="el" href="structmap__root.html">MAP</a> map, long key1, long key2)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the map's key to two longs. <a href="#a9"></a><br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a10">_stp_map_key_str_str</a> (<a class="el" href="structmap__root.html">MAP</a> map, char *key1, char *key2)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the map's key to two strings. <a href="#a10"></a><br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a11">_stp_map_key_str_long</a> (<a class="el" href="structmap__root.html">MAP</a> map, char *key1, long key2)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the map's key to a string and a long. <a href="#a11"></a><br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a12">_stp_map_key_long_str</a> (<a class="el" href="structmap__root.html">MAP</a> map, long key1, char *key2)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the map's key to a long and a string. <a href="#a12"></a><br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a13">_stp_map_key_str</a> (<a class="el" href="structmap__root.html">MAP</a> map, char *key)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the map's key to a string. <a href="#a13"></a><br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a14">_stp_map_key_long</a> (<a class="el" href="structmap__root.html">MAP</a> map, long key)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the map's key to a long. <a href="#a14"></a><br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a16">_stp_map_set_int64</a> (<a class="el" href="structmap__root.html">MAP</a> map, int64_t val)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the current element's value to an int64. <a href="#a16"></a><br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">int64_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a17">_stp_map_get_int64</a> (<a class="el" href="structmap__root.html">MAP</a> map)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the current element's value. <a href="#a17"></a><br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a18">_stp_map_set_str</a> (<a class="el" href="structmap__root.html">MAP</a> map, char *val)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the current element's value to a string. <a href="#a18"></a><br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a19">_stp_map_get_str</a> (<a class="el" href="structmap__root.html">MAP</a> map)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the current element's value. <a href="#a19"></a><br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a20">_stp_map_set_stat</a> (<a class="el" href="structmap__root.html">MAP</a> map, <a class="el" href="structstat.html">stat</a> *stats)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the current element's value to a stat. <a href="#a20"></a><br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structstat.html">stat</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a21">_stp_map_get_stat</a> (<a class="el" href="structmap__root.html">MAP</a> map)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the current element's value. <a href="#a21"></a><br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a22">_stp_map_stat_add</a> (<a class="el" href="structmap__root.html">MAP</a> map, int64_t val)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add to the current element's statistics. <a href="#a22"></a><br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structmap__root.html">MAP</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a23">_stp_list_new</a> (unsigned max_entries, enum <a class="el" href="map_8h.html#a19">valtype</a> type)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a new list. <a href="#a23"></a><br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a24">_stp_list_clear</a> (<a class="el" href="structmap__root.html">MAP</a> map)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Clears a list. <a href="#a24"></a><br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a25">_stp_list_add_str</a> (<a class="el" href="structmap__root.html">MAP</a> map, char *str)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adds a string to a list. <a href="#a25"></a><br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a26">_stp_list_add_int64</a> (<a class="el" href="structmap__root.html">MAP</a> map, int64_t val)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adds an int64 to a list. <a href="#a26"></a><br></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8c.html#a27">_stp_list_size</a> (<a class="el" href="structmap__root.html">MAP</a> map)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the number of elements in a list. <a href="#a27"></a><br></td></tr>
+</table>
+<hr><h2>Function Documentation</h2>
+<a class="anchor" name="a26" doxytag="map.c::_stp_list_add_int64"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">void _stp_list_add_int64 </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="structmap__root.html">MAP</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>map</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>int64_t&nbsp;</td>
+ <td class="mdname" nowrap> <em>val</em></td>
+ </tr>
+ <tr>
+ <td class="md"></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"><code> [inline]</code></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Adds an int64 to a list.
+<p>
+<dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>map</em>&nbsp;</td><td></td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>val</em>&nbsp;</td><td></td></tr>
+ </table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="map_8c-source.html#l00816">816</a> of file <a class="el" href="map_8c-source.html">map.c</a>.
+<p>
+References <a class="el" href="map_8c-source.html#l00415">_stp_map_key_long()</a>, <a class="el" href="map_8c-source.html#l00471">_stp_map_set_int64()</a>, <a class="el" href="map_8h-source.html#l00084">MAP</a>, and <a class="el" href="map_8h-source.html#l00053">map_root::num</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a25" doxytag="map.c::_stp_list_add_str"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">void _stp_list_add_str </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="structmap__root.html">MAP</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>map</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>char *&nbsp;</td>
+ <td class="mdname" nowrap> <em>str</em></td>
+ </tr>
+ <tr>
+ <td class="md"></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"><code> [inline]</code></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Adds a string to a list.
+<p>
+<dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>map</em>&nbsp;</td><td></td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>str</em>&nbsp;</td><td></td></tr>
+ </table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="map_8c-source.html#l00805">805</a> of file <a class="el" href="map_8c-source.html">map.c</a>.
+<p>
+References <a class="el" href="map_8c-source.html#l00415">_stp_map_key_long()</a>, <a class="el" href="map_8c-source.html#l00548">_stp_map_set_str()</a>, <a class="el" href="map_8h-source.html#l00084">MAP</a>, and <a class="el" href="map_8h-source.html#l00053">map_root::num</a>.
+<p>
+Referenced by <a class="el" href="copy_8c-source.html#l00115">_stp_copy_argv_from_user()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a24" doxytag="map.c::_stp_list_clear"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">void _stp_list_clear </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="structmap__root.html">MAP</a>&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>map</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline]</code></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Clears a list.
+<p>
+All elements in the list are deleted. <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>map</em>&nbsp;</td><td></td></tr>
+ </table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="map_8c-source.html#l00765">765</a> of file <a class="el" href="map_8c-source.html">map.c</a>.
+<p>
+References <a class="el" href="alloc_8h-source.html#l00057">_stp_free()</a>, <a class="el" href="io_8c-source.html#l00011">dlog()</a>, <a class="el" href="map_8h-source.html#l00059">map_root::head</a>, <a class="el" href="map_8h-source.html#l00022">map_node::hnode</a>, <a class="el" href="map_8h-source.html#l00021">map_node::lnode</a>, <a class="el" href="map_8h-source.html#l00084">MAP</a>, <a class="el" href="map_8h-source.html#l00050">map_root::maxnum</a>, <a class="el" href="map_8h-source.html#l00053">map_root::num</a>, and <a class="el" href="map_8h-source.html#l00063">map_root::pool</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a23" doxytag="map.c::_stp_list_new"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"><a class="el" href="structmap__root.html">MAP</a> _stp_list_new </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">unsigned&nbsp;</td>
+ <td class="mdname" nowrap> <em>max_entries</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>enum <a class="el" href="map_8h.html#a19">valtype</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>type</em></td>
+ </tr>
+ <tr>
+ <td class="md"></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Create a new list.
+<p>
+A list is a map that internally has an incrementing long key for each member. Lists do not wrap if elements are added to exceed their maximum size. <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>max_entries</em>&nbsp;</td><td>The maximum number of entries allowed. Currently that number will be preallocated. If max_entries is 0, there will be no maximum and entries will be allocated dynamically. </td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>type</em>&nbsp;</td><td>Type of values stored in this list. </td></tr>
+ </table>
+</dl>
+<dl compact><dt><b>Returns:</b></dt><dd>A MAP on success or NULL on failure. </dd></dl>
+<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="map_8h.html#a8">foreach</a> </dd></dl>
+
+<p>
+Definition at line <a class="el" href="map_8c-source.html#l00753">753</a> of file <a class="el" href="map_8c-source.html">map.c</a>.
+<p>
+References <a class="el" href="map_8c-source.html#l00043">_stp_map_new()</a>, <a class="el" href="map_8h-source.html#l00084">MAP</a>, and <a class="el" href="map_8h-source.html#l00056">map_root::no_wrap</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a27" doxytag="map.c::_stp_list_size"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">int _stp_list_size </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="structmap__root.html">MAP</a>&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>map</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline]</code></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Get the number of elements in a list.
+<p>
+<dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>map</em>&nbsp;</td><td></td></tr>
+ </table>
+</dl>
+<dl compact><dt><b>Returns:</b></dt><dd>The number of elements in a list. </dd></dl>
+
+<p>
+Definition at line <a class="el" href="map_8c-source.html#l00827">827</a> of file <a class="el" href="map_8c-source.html">map.c</a>.
+<p>
+References <a class="el" href="map_8h-source.html#l00084">MAP</a>, and <a class="el" href="map_8h-source.html#l00053">map_root::num</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a8" doxytag="map.c::_stp_map_del"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">void _stp_map_del </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="structmap__root.html">MAP</a>&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>map</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Deletes a map.
+<p>
+Deletes a map, freeing all memory in all elements. Normally done only when the module exits. <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>map</em>&nbsp;</td><td></td></tr>
+ </table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="map_8c-source.html#l00190">190</a> of file <a class="el" href="map_8c-source.html">map.c</a>.
+<p>
+References <a class="el" href="alloc_8h-source.html#l00067">_stp_vfree()</a>, <a class="el" href="map_8h-source.html#l00059">map_root::head</a>, <a class="el" href="map_8h-source.html#l00021">map_node::lnode</a>, <a class="el" href="map_8h-source.html#l00084">MAP</a>, and <a class="el" href="map_8h-source.html#l00081">map_root::membuf</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a17" doxytag="map.c::_stp_map_get_int64"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">int64_t _stp_map_get_int64 </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="structmap__root.html">MAP</a>&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>map</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Gets the current element's value.
+<p>
+<dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>map</em>&nbsp;</td><td></td></tr>
+ </table>
+</dl>
+<dl compact><dt><b>Returns:</b></dt><dd>The value. If the current element is not set or doesn't exist, returns 0. </dd></dl>
+
+<p>
+Definition at line <a class="el" href="map_8c-source.html#l00528">528</a> of file <a class="el" href="map_8c-source.html">map.c</a>.
+<p>
+References <a class="el" href="map_8h-source.html#l00070">map_root::create</a>, <a class="el" href="runtime_8h-source.html#l00017">dbug</a>, <a class="el" href="map_8h-source.html#l00066">map_root::key</a>, <a class="el" href="map_8h-source.html#l00084">MAP</a>, and <a class="el" href="map_8h-source.html#l00032">map_node_int64::val</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a21" doxytag="map.c::_stp_map_get_stat"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"><a class="el" href="structstat.html">stat</a>* _stp_map_get_stat </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="structmap__root.html">MAP</a>&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>map</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Gets the current element's value.
+<p>
+<dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>map</em>&nbsp;</td><td></td></tr>
+ </table>
+</dl>
+<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the stats struct. If the current element is not set or doesn't exist, returns NULL. </dd></dl>
+
+<p>
+Definition at line <a class="el" href="map_8c-source.html#l00692">692</a> of file <a class="el" href="map_8c-source.html">map.c</a>.
+<p>
+References <a class="el" href="map_8h-source.html#l00070">map_root::create</a>, <a class="el" href="runtime_8h-source.html#l00017">dbug</a>, <a class="el" href="map_8h-source.html#l00066">map_root::key</a>, <a class="el" href="map_8h-source.html#l00084">MAP</a>, and <a class="el" href="map_8h-source.html#l00042">map_node_stat::stats</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a19" doxytag="map.c::_stp_map_get_str"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">char* _stp_map_get_str </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="structmap__root.html">MAP</a>&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>map</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Gets the current element's value.
+<p>
+<dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>map</em>&nbsp;</td><td></td></tr>
+ </table>
+</dl>
+<dl compact><dt><b>Returns:</b></dt><dd>A string pointer. If the current element is not set or doesn't exist, returns NULL. </dd></dl>
+
+<p>
+Definition at line <a class="el" href="map_8c-source.html#l00609">609</a> of file <a class="el" href="map_8c-source.html">map.c</a>.
+<p>
+References <a class="el" href="map_8h-source.html#l00070">map_root::create</a>, <a class="el" href="runtime_8h-source.html#l00017">dbug</a>, <a class="el" href="map_8h-source.html#l00066">map_root::key</a>, <a class="el" href="map_8h-source.html#l00084">MAP</a>, and <a class="el" href="map_8h-source.html#l00037">map_node_str::str</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a7" doxytag="map.c::_stp_map_iter"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">struct <a class="el" href="structmap__node.html">map_node</a>* _stp_map_iter </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="structmap__root.html">MAP</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>map</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>struct <a class="el" href="structmap__node.html">map_node</a> *&nbsp;</td>
+ <td class="mdname" nowrap> <em>m</em></td>
+ </tr>
+ <tr>
+ <td class="md"></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Get the next element in a map.
+<p>
+<dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>map</em>&nbsp;</td><td></td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>m</em>&nbsp;</td><td>a pointer to the current element, returned from <a class="el" href="map_8c.html#a6">_stp_map_start()</a> or <a class="el" href="map_8c.html#a7">_stp_map_iter()</a>. </td></tr>
+ </table>
+</dl>
+<dl compact><dt><b>Returns:</b></dt><dd>a pointer to the next element. This is typically used with <a class="el" href="map_8c.html#a6">_stp_map_start()</a>. See the <a class="el" href="map_8h.html#a8">foreach()</a> macro for typical usage. It probably does what you want anyway. </dd></dl>
+<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="map_8h.html#a8">foreach</a> </dd></dl>
+
+<p>
+Definition at line <a class="el" href="map_8c-source.html#l00172">172</a> of file <a class="el" href="map_8c-source.html">map.c</a>.
+<p>
+References <a class="el" href="runtime_8h-source.html#l00017">dbug</a>, <a class="el" href="map_8h-source.html#l00059">map_root::head</a>, <a class="el" href="map_8h-source.html#l00021">map_node::lnode</a>, and <a class="el" href="map_8h-source.html#l00084">MAP</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a5" doxytag="map.c::_stp_map_key_del"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">void _stp_map_key_del </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="structmap__root.html">MAP</a>&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>map</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Deletes the current element.
+<p>
+If no current element (key) for this map is set, this function does nothing. <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>map</em>&nbsp;</td><td></td></tr>
+ </table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="map_8c-source.html#l00104">104</a> of file <a class="el" href="map_8c-source.html">map.c</a>.
+<p>
+References <a class="el" href="alloc_8h-source.html#l00057">_stp_free()</a>, <a class="el" href="map_8h-source.html#l00070">map_root::create</a>, <a class="el" href="runtime_8h-source.html#l00017">dbug</a>, <a class="el" href="map_8h-source.html#l00022">map_node::hnode</a>, <a class="el" href="map_8h-source.html#l00066">map_root::key</a>, <a class="el" href="map_8h-source.html#l00021">map_node::lnode</a>, <a class="el" href="map_8h-source.html#l00084">MAP</a>, <a class="el" href="map_8h-source.html#l00050">map_root::maxnum</a>, <a class="el" href="map_8h-source.html#l00053">map_root::num</a>, and <a class="el" href="map_8h-source.html#l00063">map_root::pool</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00471">_stp_map_set_int64()</a>, <a class="el" href="map_8c-source.html#l00633">_stp_map_set_stat()</a>, and <a class="el" href="map_8c-source.html#l00548">_stp_map_set_str()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a14" doxytag="map.c::_stp_map_key_long"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">void _stp_map_key_long </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="structmap__root.html">MAP</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>map</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>long&nbsp;</td>
+ <td class="mdname" nowrap> <em>key</em></td>
+ </tr>
+ <tr>
+ <td class="md"></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Set the map's key to a long.
+<p>
+This sets the current element based on a long key. If the key is not found, a new element will not be created until a <em>_stp_map_set_xxx</em> call. <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>map</em>&nbsp;</td><td></td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>key</em>&nbsp;</td><td></td></tr>
+ </table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="map_8c-source.html#l00415">415</a> of file <a class="el" href="map_8c-source.html">map.c</a>.
+<p>
+References <a class="el" href="map_8c-source.html#l00218">_stp_map_key_long_long()</a>, and <a class="el" href="map_8h-source.html#l00084">MAP</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00816">_stp_list_add_int64()</a>, and <a class="el" href="map_8c-source.html#l00805">_stp_list_add_str()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a9" doxytag="map.c::_stp_map_key_long_long"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">void _stp_map_key_long_long </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="structmap__root.html">MAP</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>map</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>long&nbsp;</td>
+ <td class="mdname" nowrap> <em>key1</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>long&nbsp;</td>
+ <td class="mdname" nowrap> <em>key2</em></td>
+ </tr>
+ <tr>
+ <td class="md"></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Set the map's key to two longs.
+<p>
+This sets the current element based on a key of two strings. If the keys are not found, a new element will not be created until a <em>_stp_map_set_xxx</em> call. <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>map</em>&nbsp;</td><td></td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>key1</em>&nbsp;</td><td>first key </td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>key2</em>&nbsp;</td><td>second key </td></tr>
+ </table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="map_8c-source.html#l00218">218</a> of file <a class="el" href="map_8c-source.html">map.c</a>.
+<p>
+References <a class="el" href="map_8h-source.html#l00074">map_root::c_key1</a>, <a class="el" href="map_8h-source.html#l00075">map_root::c_key2</a>, <a class="el" href="map_8h-source.html#l00073">map_root::c_keyhead</a>, <a class="el" href="map_8h-source.html#l00070">map_root::create</a>, <a class="el" href="runtime_8h-source.html#l00017">dbug</a>, <a class="el" href="map_8h-source.html#l00078">map_root::hashes</a>, <a class="el" href="map_8h-source.html#l00066">map_root::key</a>, <a class="el" href="map_8h-source.html#l00023">map_node::key1</a>, <a class="el" href="map_8h-source.html#l00084">MAP</a>, and <a class="el" href="map_8h-source.html#l00012">key_data::val</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00415">_stp_map_key_long()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a12" doxytag="map.c::_stp_map_key_long_str"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">void _stp_map_key_long_str </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="structmap__root.html">MAP</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>map</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>long&nbsp;</td>
+ <td class="mdname" nowrap> <em>key1</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>char *&nbsp;</td>
+ <td class="mdname" nowrap> <em>key2</em></td>
+ </tr>
+ <tr>
+ <td class="md"></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Set the map's key to a long and a string.
+<p>
+This sets the current element based on a key of a long and a string. If the keys are not found, a new element will not be created until a <em>_stp_map_set_xxx</em> call. <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>map</em>&nbsp;</td><td></td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>key1</em>&nbsp;</td><td>first key </td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>key2</em>&nbsp;</td><td>second key </td></tr>
+ </table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="map_8c-source.html#l00358">358</a> of file <a class="el" href="map_8c-source.html">map.c</a>.
+<p>
+References <a class="el" href="map_8h-source.html#l00074">map_root::c_key1</a>, <a class="el" href="map_8h-source.html#l00075">map_root::c_key2</a>, <a class="el" href="map_8h-source.html#l00073">map_root::c_keyhead</a>, <a class="el" href="map_8h-source.html#l00070">map_root::create</a>, <a class="el" href="runtime_8h-source.html#l00017">dbug</a>, <a class="el" href="map_8h-source.html#l00078">map_root::hashes</a>, <a class="el" href="map_8h-source.html#l00066">map_root::key</a>, <a class="el" href="map_8h-source.html#l00023">map_node::key1</a>, <a class="el" href="map_8h-source.html#l00024">map_node::key2</a>, <a class="el" href="map_8h-source.html#l00084">MAP</a>, <a class="el" href="map_8h-source.html#l00013">key_data::str</a>, and <a class="el" href="map_8h-source.html#l00012">key_data::val</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a13" doxytag="map.c::_stp_map_key_str"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">void _stp_map_key_str </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="structmap__root.html">MAP</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>map</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>char *&nbsp;</td>
+ <td class="mdname" nowrap> <em>key</em></td>
+ </tr>
+ <tr>
+ <td class="md"></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Set the map's key to a string.
+<p>
+This sets the current element based on a string key. If the key is not found, a new element will not be created until a <em>_stp_map_set_xxx</em> call. <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>map</em>&nbsp;</td><td></td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>key</em>&nbsp;</td><td></td></tr>
+ </table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="map_8c-source.html#l00399">399</a> of file <a class="el" href="map_8c-source.html">map.c</a>.
+<p>
+References <a class="el" href="map_8c-source.html#l00261">_stp_map_key_str_str()</a>, and <a class="el" href="map_8h-source.html#l00084">MAP</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a11" doxytag="map.c::_stp_map_key_str_long"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">void _stp_map_key_str_long </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="structmap__root.html">MAP</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>map</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>char *&nbsp;</td>
+ <td class="mdname" nowrap> <em>key1</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>long&nbsp;</td>
+ <td class="mdname" nowrap> <em>key2</em></td>
+ </tr>
+ <tr>
+ <td class="md"></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Set the map's key to a string and a long.
+<p>
+This sets the current element based on a key of a string and a long. If the keys are not found, a new element will not be created until a <em>_stp_map_set_xxx</em> call. <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>map</em>&nbsp;</td><td></td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>key1</em>&nbsp;</td><td>first key </td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>key2</em>&nbsp;</td><td>second key </td></tr>
+ </table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="map_8c-source.html#l00310">310</a> of file <a class="el" href="map_8c-source.html">map.c</a>.
+<p>
+References <a class="el" href="map_8h-source.html#l00074">map_root::c_key1</a>, <a class="el" href="map_8h-source.html#l00075">map_root::c_key2</a>, <a class="el" href="map_8h-source.html#l00073">map_root::c_keyhead</a>, <a class="el" href="map_8h-source.html#l00070">map_root::create</a>, <a class="el" href="runtime_8h-source.html#l00017">dbug</a>, <a class="el" href="map_8h-source.html#l00078">map_root::hashes</a>, <a class="el" href="map_8h-source.html#l00066">map_root::key</a>, <a class="el" href="map_8h-source.html#l00023">map_node::key1</a>, <a class="el" href="map_8h-source.html#l00024">map_node::key2</a>, <a class="el" href="map_8h-source.html#l00084">MAP</a>, <a class="el" href="map_8h-source.html#l00013">key_data::str</a>, and <a class="el" href="map_8h-source.html#l00012">key_data::val</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a10" doxytag="map.c::_stp_map_key_str_str"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">void _stp_map_key_str_str </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="structmap__root.html">MAP</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>map</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>char *&nbsp;</td>
+ <td class="mdname" nowrap> <em>key1</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>char *&nbsp;</td>
+ <td class="mdname" nowrap> <em>key2</em></td>
+ </tr>
+ <tr>
+ <td class="md"></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Set the map's key to two strings.
+<p>
+This sets the current element based on a key of two strings. If the keys are not found, a new element will not be created until a <em>_stp_map_set_xxx</em> call. <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>map</em>&nbsp;</td><td></td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>key1</em>&nbsp;</td><td>first key </td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>key2</em>&nbsp;</td><td>second key </td></tr>
+ </table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="map_8c-source.html#l00261">261</a> of file <a class="el" href="map_8c-source.html">map.c</a>.
+<p>
+References <a class="el" href="map_8h-source.html#l00074">map_root::c_key1</a>, <a class="el" href="map_8h-source.html#l00075">map_root::c_key2</a>, <a class="el" href="map_8h-source.html#l00073">map_root::c_keyhead</a>, <a class="el" href="map_8h-source.html#l00070">map_root::create</a>, <a class="el" href="runtime_8h-source.html#l00017">dbug</a>, <a class="el" href="map_8h-source.html#l00078">map_root::hashes</a>, <a class="el" href="map_8h-source.html#l00066">map_root::key</a>, <a class="el" href="map_8h-source.html#l00023">map_node::key1</a>, <a class="el" href="map_8h-source.html#l00024">map_node::key2</a>, <a class="el" href="map_8h-source.html#l00084">MAP</a>, and <a class="el" href="map_8h-source.html#l00013">key_data::str</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00399">_stp_map_key_str()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a3" doxytag="map.c::_stp_map_new"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"><a class="el" href="structmap__root.html">MAP</a> _stp_map_new </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">unsigned&nbsp;</td>
+ <td class="mdname" nowrap> <em>max_entries</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>enum <a class="el" href="map_8h.html#a19">valtype</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>type</em></td>
+ </tr>
+ <tr>
+ <td class="md"></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Create a new map.
+<p>
+Maps must be created at module initialization time. <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>max_entries</em>&nbsp;</td><td>The maximum number of entries allowed. Currently that number will be preallocated. If more entries are required, the oldest ones will be deleted. This makes it effectively a circular buffer. If max_entries is 0, there will be no maximum and entries will be allocated dynamically. </td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>type</em>&nbsp;</td><td>Type of values stored in this map. </td></tr>
+ </table>
+</dl>
+<dl compact><dt><b>Returns:</b></dt><dd>A MAP on success or NULL on failure. </dd></dl>
+
+<p>
+Definition at line <a class="el" href="map_8c-source.html#l00043">43</a> of file <a class="el" href="map_8c-source.html">map.c</a>.
+<p>
+References <a class="el" href="alloc_8h-source.html#l00043">_stp_valloc()</a>, <a class="el" href="runtime_8h-source.html#l00017">dbug</a>, <a class="el" href="map_8h-source.html#l00059">map_root::head</a>, <a class="el" href="map_8h-source.html#l00084">MAP</a>, <a class="el" href="map_8h-source.html#l00050">map_root::maxnum</a>, <a class="el" href="map_8h-source.html#l00081">map_root::membuf</a>, and <a class="el" href="map_8h-source.html#l00063">map_root::pool</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00753">_stp_list_new()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a16" doxytag="map.c::_stp_map_set_int64"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">void _stp_map_set_int64 </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="structmap__root.html">MAP</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>map</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>int64_t&nbsp;</td>
+ <td class="mdname" nowrap> <em>val</em></td>
+ </tr>
+ <tr>
+ <td class="md"></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Set the current element's value to an int64.
+<p>
+This sets the current element's value to an int64. The map must have been created to hold int64s using <a class="el" href="map_8c.html#a3">_stp_map_new()</a><p>
+If the element doesn't exist, it is created. If no current element (key) is set for the map, this function does nothing. <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>map</em>&nbsp;</td><td></td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>val</em>&nbsp;</td><td>new value </td></tr>
+ </table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="map_8c-source.html#l00471">471</a> of file <a class="el" href="map_8c-source.html">map.c</a>.
+<p>
+References <a class="el" href="alloc_8h-source.html#l00028">_stp_calloc()</a>, <a class="el" href="map_8c-source.html#l00104">_stp_map_key_del()</a>, <a class="el" href="map_8h-source.html#l00070">map_root::create</a>, <a class="el" href="runtime_8h-source.html#l00017">dbug</a>, <a class="el" href="map_8h-source.html#l00059">map_root::head</a>, <a class="el" href="map_8h-source.html#l00022">map_node::hnode</a>, <a class="el" href="map_8h-source.html#l00066">map_root::key</a>, <a class="el" href="map_8h-source.html#l00021">map_node::lnode</a>, <a class="el" href="map_8h-source.html#l00084">MAP</a>, <a class="el" href="map_8h-source.html#l00050">map_root::maxnum</a>, <a class="el" href="map_8h-source.html#l00031">map_node_int64::n</a>, <a class="el" href="map_8h-source.html#l00056">map_root::no_wrap</a>, <a class="el" href="map_8h-source.html#l00063">map_root::pool</a>, and <a class="el" href="map_8h-source.html#l00032">map_node_int64::val</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00816">_stp_list_add_int64()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a20" doxytag="map.c::_stp_map_set_stat"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">void _stp_map_set_stat </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="structmap__root.html">MAP</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>map</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap><a class="el" href="structstat.html">stat</a> *&nbsp;</td>
+ <td class="mdname" nowrap> <em>stats</em></td>
+ </tr>
+ <tr>
+ <td class="md"></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Set the current element's value to a stat.
+<p>
+This sets the current element's value to an stat struct. The map must have been created to hold stats using <em>_stp_map_new(xxx, STAT)</em>. This function would only be used if we wanted to set stats to something other than the normal initial values (count = 0, sum = 0, etc). It may be deleted if it doesn't turn out to be useful. <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="map_8c.html#a22">_stp_map_stat_add</a></dd></dl>
+If the element doesn't exist, it is created. If no current element (key) is set for the map, this function does nothing. <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>map</em>&nbsp;</td><td></td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>stats</em>&nbsp;</td><td>pointer to stats struct. </td></tr>
+ </table>
+</dl>
+<dl compact><dt><b><a class="el" href="todo.html#_todo000002">Todo:</a></b></dt><dd>Histograms don't work yet. </dd></dl>
+
+<p>
+Definition at line <a class="el" href="map_8c-source.html#l00633">633</a> of file <a class="el" href="map_8c-source.html">map.c</a>.
+<p>
+References <a class="el" href="alloc_8h-source.html#l00028">_stp_calloc()</a>, <a class="el" href="map_8c-source.html#l00104">_stp_map_key_del()</a>, <a class="el" href="map_8h-source.html#l00070">map_root::create</a>, <a class="el" href="runtime_8h-source.html#l00017">dbug</a>, <a class="el" href="map_8h-source.html#l00059">map_root::head</a>, <a class="el" href="map_8h-source.html#l00022">map_node::hnode</a>, <a class="el" href="map_8h-source.html#l00066">map_root::key</a>, <a class="el" href="map_8h-source.html#l00021">map_node::lnode</a>, <a class="el" href="map_8h-source.html#l00084">MAP</a>, <a class="el" href="map_8h-source.html#l00050">map_root::maxnum</a>, <a class="el" href="map_8h-source.html#l00041">map_node_stat::n</a>, <a class="el" href="map_8h-source.html#l00056">map_root::no_wrap</a>, <a class="el" href="map_8h-source.html#l00063">map_root::pool</a>, and <a class="el" href="map_8h-source.html#l00042">map_node_stat::stats</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00713">_stp_map_stat_add()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a18" doxytag="map.c::_stp_map_set_str"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">void _stp_map_set_str </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="structmap__root.html">MAP</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>map</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>char *&nbsp;</td>
+ <td class="mdname" nowrap> <em>val</em></td>
+ </tr>
+ <tr>
+ <td class="md"></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Set the current element's value to a string.
+<p>
+This sets the current element's value to an string. The map must have been created to hold int64s using <em>_stp_map_new(xxx, STRING)</em><p>
+If the element doesn't exist, it is created. If no current element (key) is set for the map, this function does nothing. <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>map</em>&nbsp;</td><td></td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>val</em>&nbsp;</td><td>new string </td></tr>
+ </table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="map_8c-source.html#l00548">548</a> of file <a class="el" href="map_8c-source.html">map.c</a>.
+<p>
+References <a class="el" href="alloc_8h-source.html#l00012">_stp_alloc()</a>, <a class="el" href="alloc_8h-source.html#l00028">_stp_calloc()</a>, <a class="el" href="alloc_8h-source.html#l00057">_stp_free()</a>, <a class="el" href="map_8c-source.html#l00104">_stp_map_key_del()</a>, <a class="el" href="map_8h-source.html#l00070">map_root::create</a>, <a class="el" href="runtime_8h-source.html#l00017">dbug</a>, <a class="el" href="map_8h-source.html#l00059">map_root::head</a>, <a class="el" href="map_8h-source.html#l00022">map_node::hnode</a>, <a class="el" href="map_8h-source.html#l00066">map_root::key</a>, <a class="el" href="map_8h-source.html#l00021">map_node::lnode</a>, <a class="el" href="map_8h-source.html#l00084">MAP</a>, <a class="el" href="map_8h-source.html#l00050">map_root::maxnum</a>, <a class="el" href="map_8h-source.html#l00036">map_node_str::n</a>, <a class="el" href="map_8h-source.html#l00056">map_root::no_wrap</a>, <a class="el" href="map_8h-source.html#l00063">map_root::pool</a>, and <a class="el" href="map_8h-source.html#l00037">map_node_str::str</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00805">_stp_list_add_str()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a6" doxytag="map.c::_stp_map_start"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">struct <a class="el" href="structmap__node.html">map_node</a>* _stp_map_start </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="structmap__root.html">MAP</a>&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>map</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Get the first element in a map.
+<p>
+<dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>map</em>&nbsp;</td><td></td></tr>
+ </table>
+</dl>
+<dl compact><dt><b>Returns:</b></dt><dd>a pointer to the first element. This is typically used with <a class="el" href="map_8c.html#a7">_stp_map_iter()</a>. See the <a class="el" href="map_8h.html#a8">foreach()</a> macro for typical usage. It probably does what you want anyway. </dd></dl>
+<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="map_8h.html#a8">foreach</a> </dd></dl>
+
+<p>
+Definition at line <a class="el" href="map_8c-source.html#l00149">149</a> of file <a class="el" href="map_8c-source.html">map.c</a>.
+<p>
+References <a class="el" href="runtime_8h-source.html#l00017">dbug</a>, <a class="el" href="map_8h-source.html#l00059">map_root::head</a>, and <a class="el" href="map_8h-source.html#l00084">MAP</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a22" doxytag="map.c::_stp_map_stat_add"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">void _stp_map_stat_add </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="structmap__root.html">MAP</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>map</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>int64_t&nbsp;</td>
+ <td class="mdname" nowrap> <em>val</em></td>
+ </tr>
+ <tr>
+ <td class="md"></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Add to the current element's statistics.
+<p>
+Increments the statistics counter by one and the sum by <em>val</em>. Adjusts minimum, maximum, and histogram.<p>
+If the element doesn't exist, it is created. If no current element (key) is set for the map, this function does nothing. <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>map</em>&nbsp;</td><td></td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>val</em>&nbsp;</td><td>value to add to the statistics </td></tr>
+ </table>
+</dl>
+<dl compact><dt><b><a class="el" href="todo.html#_todo000003">Todo:</a></b></dt><dd>Histograms don't work yet. </dd></dl>
+
+<p>
+Definition at line <a class="el" href="map_8c-source.html#l00713">713</a> of file <a class="el" href="map_8c-source.html">map.c</a>.
+<p>
+References <a class="el" href="map_8c-source.html#l00633">_stp_map_set_stat()</a>, <a class="el" href="map_8h-source.html#l00005">stat::count</a>, <a class="el" href="map_8h-source.html#l00070">map_root::create</a>, <a class="el" href="runtime_8h-source.html#l00017">dbug</a>, <a class="el" href="map_8h-source.html#l00066">map_root::key</a>, <a class="el" href="map_8h-source.html#l00084">MAP</a>, <a class="el" href="map_8h-source.html#l00007">stat::max</a>, <a class="el" href="map_8h-source.html#l00007">stat::min</a>, <a class="el" href="map_8h-source.html#l00042">map_node_stat::stats</a>, and <a class="el" href="map_8h-source.html#l00006">stat::sum</a>. </td>
+ </tr>
+</table>
+<hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/map_8h-source.html b/runtime/docs/html/map_8h-source.html
new file mode 100644
index 00000000..9a49236c
--- /dev/null
+++ b/runtime/docs/html/map_8h-source.html
@@ -0,0 +1,146 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1>map.h</h1><a href="map_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="comment">/* -*- linux-c -*- */</span>
+00002 <span class="preprocessor">#include &lt;linux/types.h&gt;</span>
+00003
+<a name="l00004"></a><a class="code" href="structstat.html">00004</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
+<a name="l00005"></a><a class="code" href="structstat.html#o0">00005</a> int64_t count;
+<a name="l00006"></a><a class="code" href="structstat.html#o1">00006</a> int64_t sum;
+<a name="l00007"></a><a class="code" href="structstat.html#o2">00007</a> int64_t min, max;
+<a name="l00008"></a><a class="code" href="structstat.html#o4">00008</a> int64_t histogram[BUCKETS];
+00009 } <a class="code" href="structstat.html">stat</a>;
+00010
+<a name="l00011"></a><a class="code" href="unionkey__data.html">00011</a> <span class="keyword">union </span><a class="code" href="unionkey__data.html">key_data</a> {
+<a name="l00012"></a><a class="code" href="unionkey__data.html#o0">00012</a> <span class="keywordtype">long</span> val;
+<a name="l00013"></a><a class="code" href="unionkey__data.html#o1">00013</a> <span class="keywordtype">char</span> *str;
+00014 };
+00015
+<a name="l00016"></a><a class="code" href="map_8h.html#a18">00016</a> <span class="keyword">enum</span> <a class="code" href="map_8h.html#a18">keytype</a> { NONE, LONG, <a class="code" href="map_8h.html#a18a13">STR</a> } __attribute__ ((packed));
+<a name="l00017"></a><a class="code" href="map_8h.html#a19">00017</a> <span class="keyword">enum</span> <a class="code" href="map_8h.html#a19">valtype</a> { INT64, STAT, STRING, <a class="code" href="map_8h.html#a19a17">END</a> };
+00018
+00019 <span class="comment">/* all map nodes have the following structure */</span>
+<a name="l00020"></a><a class="code" href="structmap__node.html">00020</a> <span class="keyword">struct </span><a class="code" href="structmap__node.html">map_node</a> {
+<a name="l00021"></a><a class="code" href="structmap__node.html#o0">00021</a> <span class="keyword">struct </span>list_head lnode;
+<a name="l00022"></a><a class="code" href="structmap__node.html#o1">00022</a> <span class="keyword">struct </span>hlist_node hnode;
+<a name="l00023"></a><a class="code" href="structmap__node.html#o2">00023</a> <span class="keyword">union </span><a class="code" href="unionkey__data.html">key_data</a> key1;
+<a name="l00024"></a><a class="code" href="structmap__node.html#o3">00024</a> <span class="keyword">union </span><a class="code" href="unionkey__data.html">key_data</a> key2;
+00025 <span class="keyword">enum</span> <a class="code" href="map_8h.html#a18">keytype</a> key1type;
+00026 <span class="keyword">enum</span> <a class="code" href="map_8h.html#a18">keytype</a> key2type;
+00027 };
+00028
+00029 <span class="comment">/* specific map nodes with data attached */</span>
+<a name="l00030"></a><a class="code" href="structmap__node__int64.html">00030</a> <span class="keyword">struct </span><a class="code" href="structmap__node__int64.html">map_node_int64</a> {
+<a name="l00031"></a><a class="code" href="structmap__node__int64.html#o0">00031</a> <span class="keyword">struct </span><a class="code" href="structmap__node.html">map_node</a> n;
+<a name="l00032"></a><a class="code" href="structmap__node__int64.html#o1">00032</a> int64_t val;
+00033 };
+00034
+<a name="l00035"></a><a class="code" href="structmap__node__str.html">00035</a> <span class="keyword">struct </span><a class="code" href="structmap__node__str.html">map_node_str</a> {
+<a name="l00036"></a><a class="code" href="structmap__node__str.html#o0">00036</a> <span class="keyword">struct </span><a class="code" href="structmap__node.html">map_node</a> n;
+<a name="l00037"></a><a class="code" href="structmap__node__str.html#o1">00037</a> <span class="keywordtype">char</span> *str;
+00038 };
+00039
+<a name="l00040"></a><a class="code" href="structmap__node__stat.html">00040</a> <span class="keyword">struct </span><a class="code" href="structmap__node__stat.html">map_node_stat</a> {
+<a name="l00041"></a><a class="code" href="structmap__node__stat.html#o0">00041</a> <span class="keyword">struct </span><a class="code" href="structmap__node.html">map_node</a> n;
+<a name="l00042"></a><a class="code" href="structmap__node__stat.html#o1">00042</a> <a class="code" href="structstat.html">stat</a> stats;
+00043 };
+00044
+<a name="l00045"></a><a class="code" href="structmap__root.html">00045</a> <span class="keyword">struct </span><a class="code" href="structmap__root.html">map_root</a> {
+00046 <span class="comment">/* type of the values stored in the array */</span>
+00047 <span class="keyword">enum</span> <a class="code" href="map_8h.html#a19">valtype</a> type;
+00048
+00049 <span class="comment">/* maximum number of elements allowed in the array. */</span>
+<a name="l00050"></a><a class="code" href="structmap__root.html#o0">00050</a> <span class="keywordtype">int</span> maxnum;
+00051
+00052 <span class="comment">/* current number of elements */</span>
+<a name="l00053"></a><a class="code" href="structmap__root.html#o1">00053</a> <span class="keywordtype">int</span> num;
+00054
+00055 <span class="comment">/* when more than maxnum elements, wrap or discard */</span>
+<a name="l00056"></a><a class="code" href="structmap__root.html#o2">00056</a> <span class="keywordtype">int</span> no_wrap;
+00057
+00058 <span class="comment">/* linked list of current entries */</span>
+<a name="l00059"></a><a class="code" href="structmap__root.html#o3">00059</a> <span class="keyword">struct </span>list_head head;
+00060
+00061 <span class="comment">/* pool of unused entries. Used only when entries are statically allocated */</span>
+00062 <span class="comment">/* at startup. */</span>
+<a name="l00063"></a><a class="code" href="structmap__root.html#o4">00063</a> <span class="keyword">struct </span>list_head pool;
+00064
+00065 <span class="comment">/* saved key entry for lookups */</span>
+<a name="l00066"></a><a class="code" href="structmap__root.html#o5">00066</a> <span class="keyword">struct </span><a class="code" href="structmap__node.html">map_node</a> *key;
+00067
+00068 <span class="comment">/* this is the creation data saved between the key functions and the */</span>
+00069 <span class="comment">/* set/get functions */</span>
+<a name="l00070"></a><a class="code" href="structmap__root.html#o6">00070</a> u_int8_t create;
+00071 <span class="keyword">enum</span> <a class="code" href="map_8h.html#a18">keytype</a> c_key1type;
+00072 <span class="keyword">enum</span> <a class="code" href="map_8h.html#a18">keytype</a> c_key2type;
+<a name="l00073"></a><a class="code" href="structmap__root.html#o7">00073</a> <span class="keyword">struct </span>hlist_head *c_keyhead;
+<a name="l00074"></a><a class="code" href="structmap__root.html#o8">00074</a> <span class="keyword">union </span><a class="code" href="unionkey__data.html">key_data</a> c_key1;
+<a name="l00075"></a><a class="code" href="structmap__root.html#o9">00075</a> <span class="keyword">union </span><a class="code" href="unionkey__data.html">key_data</a> c_key2;
+00076
+00077 <span class="comment">/* the hash table for this array */</span>
+<a name="l00078"></a><a class="code" href="structmap__root.html#o10">00078</a> <span class="keyword">struct </span>hlist_head hashes[HASH_TABLE_SIZE];
+00079
+00080 <span class="comment">/* pointer to allocated memory space */</span>
+<a name="l00081"></a><a class="code" href="structmap__root.html#o11">00081</a> <span class="keywordtype">void</span> *membuf;
+00082 };
+00083
+<a name="l00084"></a><a class="code" href="map_8h.html#a10">00084</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structmap__root.html">map_root</a> *<a class="code" href="structmap__root.html">MAP</a>;
+00085
+<a name="l00086"></a><a class="code" href="map_8h.html#a0">00086</a> <span class="preprocessor">#define key1str(ptr) (ptr-&gt;n.key1.str)</span>
+<a name="l00087"></a><a class="code" href="map_8h.html#a1">00087</a> <span class="preprocessor"></span><span class="preprocessor">#define key2str(ptr) (ptr-&gt;n.key2.str)</span>
+<a name="l00088"></a><a class="code" href="map_8h.html#a2">00088</a> <span class="preprocessor"></span><span class="preprocessor">#define key1int(ptr) (ptr-&gt;n.key1.val)</span>
+<a name="l00089"></a><a class="code" href="map_8h.html#a3">00089</a> <span class="preprocessor"></span><span class="preprocessor">#define key2int(ptr) (ptr-&gt;n.key2.val)</span>
+00090 <span class="preprocessor"></span>
+<a name="l00091"></a><a class="code" href="map_8h.html#a4">00091</a> <span class="preprocessor">#define _stp_map_key2(map, key1, key2) \</span>
+00092 <span class="preprocessor"> ({ \</span>
+00093 <span class="preprocessor"> if (__builtin_types_compatible_p (typeof (key1), char[])) \</span>
+00094 <span class="preprocessor"> if (__builtin_types_compatible_p (typeof (key2), char[])) \</span>
+00095 <span class="preprocessor"> _stp_map_key_str_str (map, (char *)(key1), (char *)(key2)); \</span>
+00096 <span class="preprocessor"> else \</span>
+00097 <span class="preprocessor"> _stp_map_key_str_long (map, (char *)(key1), (long)(key2)); \</span>
+00098 <span class="preprocessor"> else \</span>
+00099 <span class="preprocessor"> if (__builtin_types_compatible_p (typeof (key2), char[])) \</span>
+00100 <span class="preprocessor"> _stp_map_key_long_str (map, (long)(key1), (char *)(key2)); \</span>
+00101 <span class="preprocessor"> else \</span>
+00102 <span class="preprocessor"> _stp_map_key_long_long (map, (long)(key1), (long)(key2)); \</span>
+00103 <span class="preprocessor"> })</span>
+00104 <span class="preprocessor"></span>
+<a name="l00105"></a><a class="code" href="map_8h.html#a5">00105</a> <span class="preprocessor">#define _stp_map_key(map, key) \</span>
+00106 <span class="preprocessor"> ({ \</span>
+00107 <span class="preprocessor"> if (__builtin_types_compatible_p (typeof (key), char[])) \</span>
+00108 <span class="preprocessor"> _stp_map_key_str (map, (char *)(key)); \</span>
+00109 <span class="preprocessor"> else \</span>
+00110 <span class="preprocessor"> _stp_map_key_long (map, (long)(key)); \</span>
+00111 <span class="preprocessor"> })</span>
+00112 <span class="preprocessor"></span>
+<a name="l00113"></a><a class="code" href="map_8h.html#a6">00113</a> <span class="preprocessor">#define _stp_map_set(map, val) \</span>
+00114 <span class="preprocessor"> ({ \</span>
+00115 <span class="preprocessor"> if (__builtin_types_compatible_p (typeof (val), char[])) \</span>
+00116 <span class="preprocessor"> _stp_map_set_str (map, (char *)(val)); \</span>
+00117 <span class="preprocessor"> else \</span>
+00118 <span class="preprocessor"> _stp_map_set_int64 (map, (int64_t)(val)); \</span>
+00119 <span class="preprocessor"> })</span>
+00120 <span class="preprocessor"></span>
+<a name="l00121"></a><a class="code" href="map_8h.html#a7">00121</a> <span class="preprocessor">#define _stp_list_add(map, val) \</span>
+00122 <span class="preprocessor"> ({ \</span>
+00123 <span class="preprocessor"> if (__builtin_types_compatible_p (typeof (val), char[])) \</span>
+00124 <span class="preprocessor"> _stp_list_add_str (map, (char *)(val)); \</span>
+00125 <span class="preprocessor"> else \</span>
+00126 <span class="preprocessor"> _stp_list_add_int64 (map, (int64_t)(val)); \</span>
+00127 <span class="preprocessor"> })</span>
+00128 <span class="preprocessor"></span>
+00129
+<a name="l00138"></a><a class="code" href="map_8h.html#a8">00138</a> <span class="preprocessor">#define foreach(map, ptr) \</span>
+00139 <span class="preprocessor"> for (ptr = (typeof(ptr))_stp_map_start(map); ptr; \</span>
+00140 <span class="preprocessor"> ptr = (typeof(ptr))_stp_map_iter (map, (struct map_node *)ptr))</span>
+00141 <span class="preprocessor"></span>
+</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/map_8h.html b/runtime/docs/html/map_8h.html
new file mode 100644
index 00000000..def7be23
--- /dev/null
+++ b/runtime/docs/html/map_8h.html
@@ -0,0 +1,535 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1>map.h File Reference</h1><code>#include &lt;linux/types.h&gt;</code><br>
+
+<p>
+<a href="map_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
+<tr><td></td></tr>
+<tr><td colspan="2"><br><h2>Data Structures</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structstat.html">stat</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top">union &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="unionkey__data.html">key_data</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmap__node.html">map_node</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmap__node__int64.html">map_node_int64</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmap__node__str.html">map_node_str</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmap__node__stat.html">map_node_stat</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmap__root.html">map_root</a></td></tr>
+
+<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8h.html#a0">key1str</a>(ptr)&nbsp;&nbsp;&nbsp;(ptr-&gt;n.key1.str)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8h.html#a1">key2str</a>(ptr)&nbsp;&nbsp;&nbsp;(ptr-&gt;n.key2.str)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8h.html#a2">key1int</a>(ptr)&nbsp;&nbsp;&nbsp;(ptr-&gt;n.key1.val)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8h.html#a3">key2int</a>(ptr)&nbsp;&nbsp;&nbsp;(ptr-&gt;n.key2.val)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8h.html#a4">_stp_map_key2</a>(map, key1, key2)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8h.html#a5">_stp_map_key</a>(map, key)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8h.html#a6">_stp_map_set</a>(map, val)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8h.html#a7">_stp_list_add</a>(map, val)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8h.html#a8">foreach</a>(map, ptr)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Loop through all elements of a map. <a href="#a8"></a><br></td></tr>
+<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <a class="el" href="structmap__root.html">map_root</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8h.html#a10">MAP</a></td></tr>
+
+<tr><td colspan="2"><br><h2>Enumerations</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8h.html#a18">keytype</a> { <a class="el" href="map_8h.html#a18a11">NONE</a>,
+<a class="el" href="map_8h.html#a18a12">LONG</a>,
+<a class="el" href="map_8h.html#a18a13">STR</a>
+ }</td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8h.html#a19">valtype</a> { <a class="el" href="map_8h.html#a19a14">INT64</a>,
+<a class="el" href="map_8h.html#a19a15">STAT</a>,
+<a class="el" href="map_8h.html#a19a16">STRING</a>,
+<a class="el" href="map_8h.html#a19a17">END</a>
+ }</td></tr>
+
+<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">enum <a class="el" href="map_8h.html#a18">keytype</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="map_8h.html#a9">packed</a></td></tr>
+
+</table>
+<hr><h2>Define Documentation</h2>
+<a class="anchor" name="a7" doxytag="map.h::_stp_list_add"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">#define _stp_list_add </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">map, <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>val&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+<b>Value:</b><div class="fragment"><pre class="fragment">({ \
+ <span class="keywordflow">if</span> (__builtin_types_compatible_p (typeof (val), <span class="keywordtype">char</span>[])) \
+ <a class="code" href="map_8c.html#a25">_stp_list_add_str</a> (map, (<span class="keywordtype">char</span> *)(val)); \
+ <span class="keywordflow">else</span> \
+ <a class="code" href="map_8c.html#a26">_stp_list_add_int64</a> (map, (int64_t)(val)); \
+ })
+</pre></div>
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00121">121</a> of file <a class="el" href="map_8h-source.html">map.h</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a5" doxytag="map.h::_stp_map_key"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">#define _stp_map_key </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">map, <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>key&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+<b>Value:</b><div class="fragment"><pre class="fragment">({ \
+ <span class="keywordflow">if</span> (__builtin_types_compatible_p (typeof (key), <span class="keywordtype">char</span>[])) \
+ <a class="code" href="map_8c.html#a13">_stp_map_key_str</a> (map, (<span class="keywordtype">char</span> *)(key)); \
+ <span class="keywordflow">else</span> \
+ <a class="code" href="map_8c.html#a14">_stp_map_key_long</a> (map, (<span class="keywordtype">long</span>)(key)); \
+ })
+</pre></div>
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00105">105</a> of file <a class="el" href="map_8h-source.html">map.h</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a4" doxytag="map.h::_stp_map_key2"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">#define _stp_map_key2 </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">map, <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>key1, <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>key2&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+<b>Value:</b><div class="fragment"><pre class="fragment">({ \
+ <span class="keywordflow">if</span> (__builtin_types_compatible_p (typeof (key1), <span class="keywordtype">char</span>[])) \
+ <span class="keywordflow">if</span> (__builtin_types_compatible_p (typeof (key2), <span class="keywordtype">char</span>[])) \
+ <a class="code" href="map_8c.html#a10">_stp_map_key_str_str</a> (map, (<span class="keywordtype">char</span> *)(key1), (<span class="keywordtype">char</span> *)(key2)); \
+ <span class="keywordflow">else</span> \
+ <a class="code" href="map_8c.html#a11">_stp_map_key_str_long</a> (map, (<span class="keywordtype">char</span> *)(key1), (<span class="keywordtype">long</span>)(key2)); \
+ <span class="keywordflow">else</span> \
+ <span class="keywordflow">if</span> (__builtin_types_compatible_p (typeof (key2), <span class="keywordtype">char</span>[])) \
+ <a class="code" href="map_8c.html#a12">_stp_map_key_long_str</a> (map, (<span class="keywordtype">long</span>)(key1), (<span class="keywordtype">char</span> *)(key2)); \
+ <span class="keywordflow">else</span> \
+ <a class="code" href="map_8c.html#a9">_stp_map_key_long_long</a> (map, (<span class="keywordtype">long</span>)(key1), (<span class="keywordtype">long</span>)(key2)); \
+ })
+</pre></div>
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00091">91</a> of file <a class="el" href="map_8h-source.html">map.h</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a6" doxytag="map.h::_stp_map_set"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">#define _stp_map_set </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">map, <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>val&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+<b>Value:</b><div class="fragment"><pre class="fragment">({ \
+ <span class="keywordflow">if</span> (__builtin_types_compatible_p (typeof (val), <span class="keywordtype">char</span>[])) \
+ <a class="code" href="map_8c.html#a18">_stp_map_set_str</a> (map, (<span class="keywordtype">char</span> *)(val)); \
+ <span class="keywordflow">else</span> \
+ <a class="code" href="map_8c.html#a16">_stp_map_set_int64</a> (map, (int64_t)(val)); \
+ })
+</pre></div>
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00113">113</a> of file <a class="el" href="map_8h-source.html">map.h</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a8" doxytag="map.h::foreach"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">#define foreach </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">map, <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>ptr&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+<b>Value:</b><div class="fragment"><pre class="fragment"><span class="keywordflow">for</span> (ptr = (typeof(ptr))<a class="code" href="map_8c.html#a6">_stp_map_start</a>(map); ptr; \
+ ptr = (typeof(ptr))<a class="code" href="map_8c.html#a7">_stp_map_iter</a> (map, (<span class="keyword">struct</span> <a class="code" href="structmap__node.html">map_node</a> *)ptr))
+</pre></div>Loop through all elements of a map.
+<p>
+<dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>map</em>&nbsp;</td><td></td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>ptr</em>&nbsp;</td><td>pointer to a <a class="el" href="structmap__node__stat.html">map_node_stat</a>, <a class="el" href="structmap__node__int64.html">map_node_int64</a> or <a class="el" href="structmap__node__str.html">map_node_str</a></td></tr>
+ </table>
+</dl>
+<b>Example:</b> <div class="fragment"><pre class="fragment"><span class="comment">/* example showing how to print all the stats in a map using foreach() */</span>
+
+<span class="keyword">struct </span><a class="code" href="structmap__node__stat.html">map_node_stat</a> *ptr;
+
+<a class="code" href="map_8h.html#a8">foreach</a> (map, ptr)
+ printf ("map[%s,%ld] = [c=%lld s=%lld min=%lld max=%lld]\n", key1str(ptr),
+ key2int(ptr), ptr-&gt;stats.count, ptr-&gt;stats.sum, ptr-&gt;stats.min,
+ ptr-&gt;stats.max);
+
+</pre></div>
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00138">138</a> of file <a class="el" href="map_8h-source.html">map.h</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a2" doxytag="map.h::key1int"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">#define key1int </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">ptr&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap>&nbsp;&nbsp;&nbsp;(ptr-&gt;n.key1.val)</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00088">88</a> of file <a class="el" href="map_8h-source.html">map.h</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a0" doxytag="map.h::key1str"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">#define key1str </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">ptr&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap>&nbsp;&nbsp;&nbsp;(ptr-&gt;n.key1.str)</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00086">86</a> of file <a class="el" href="map_8h-source.html">map.h</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a3" doxytag="map.h::key2int"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">#define key2int </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">ptr&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap>&nbsp;&nbsp;&nbsp;(ptr-&gt;n.key2.val)</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00089">89</a> of file <a class="el" href="map_8h-source.html">map.h</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a1" doxytag="map.h::key2str"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">#define key2str </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">ptr&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap>&nbsp;&nbsp;&nbsp;(ptr-&gt;n.key2.str)</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00087">87</a> of file <a class="el" href="map_8h-source.html">map.h</a>. </td>
+ </tr>
+</table>
+<hr><h2>Typedef Documentation</h2>
+<a class="anchor" name="a10" doxytag="map.h::MAP"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">typedef struct <a class="el" href="structmap__root.html">map_root</a>* <a class="el" href="structmap__root.html">MAP</a> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00084">84</a> of file <a class="el" href="map_8h-source.html">map.h</a>.
+<p>
+Referenced by <a class="el" href="copy_8c-source.html#l00115">_stp_copy_argv_from_user()</a>, <a class="el" href="map_8c-source.html#l00816">_stp_list_add_int64()</a>, <a class="el" href="map_8c-source.html#l00805">_stp_list_add_str()</a>, <a class="el" href="map_8c-source.html#l00765">_stp_list_clear()</a>, <a class="el" href="map_8c-source.html#l00753">_stp_list_new()</a>, <a class="el" href="map_8c-source.html#l00827">_stp_list_size()</a>, <a class="el" href="map_8c-source.html#l00190">_stp_map_del()</a>, <a class="el" href="map_8c-source.html#l00528">_stp_map_get_int64()</a>, <a class="el" href="map_8c-source.html#l00692">_stp_map_get_stat()</a>, <a class="el" href="map_8c-source.html#l00609">_stp_map_get_str()</a>, <a class="el" href="map_8c-source.html#l00172">_stp_map_iter()</a>, <a class="el" href="map_8c-source.html#l00104">_stp_map_key_del()</a>, <a class="el" href="map_8c-source.html#l00415">_stp_map_key_long()</a>, <a class="el" href="map_8c-source.html#l00218">_stp_map_key_long_long()</a>, <a class="el" href="map_8c-source.html#l00358">_stp_map_key_long_str()</a>, <a class="el" href="map_8c-source.html#l00399">_stp_map_key_str()</a>, <a class="el" href="map_8c-source.html#l00310">_stp_map_key_str_long()</a>, <a class="el" href="map_8c-source.html#l00261">_stp_map_key_str_str()</a>, <a class="el" href="map_8c-source.html#l00043">_stp_map_new()</a>, <a class="el" href="map_8c-source.html#l00471">_stp_map_set_int64()</a>, <a class="el" href="map_8c-source.html#l00633">_stp_map_set_stat()</a>, <a class="el" href="map_8c-source.html#l00548">_stp_map_set_str()</a>, <a class="el" href="map_8c-source.html#l00149">_stp_map_start()</a>, and <a class="el" href="map_8c-source.html#l00713">_stp_map_stat_add()</a>. </td>
+ </tr>
+</table>
+<hr><h2>Enumeration Type Documentation</h2>
+<a class="anchor" name="a18" doxytag="map.h::keytype"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">enum <a class="el" href="map_8h.html#a18">keytype</a> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+<dl compact><dt><b>Enumeration values: </b></dt><dd>
+<table border="0" cellspacing="2" cellpadding="0">
+<tr><td valign="top"><em><a class="anchor" name="a18a11" doxytag="NONE"></a>NONE</em>&nbsp;</td><td>
+</td></tr>
+<tr><td valign="top"><em><a class="anchor" name="a18a12" doxytag="LONG"></a>LONG</em>&nbsp;</td><td>
+</td></tr>
+<tr><td valign="top"><em><a class="anchor" name="a18a13" doxytag="STR"></a>STR</em>&nbsp;</td><td>
+</td></tr>
+</table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00016">16</a> of file <a class="el" href="map_8h-source.html">map.h</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="a19" doxytag="map.h::valtype"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">enum <a class="el" href="map_8h.html#a19">valtype</a> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+<dl compact><dt><b>Enumeration values: </b></dt><dd>
+<table border="0" cellspacing="2" cellpadding="0">
+<tr><td valign="top"><em><a class="anchor" name="a19a14" doxytag="INT64"></a>INT64</em>&nbsp;</td><td>
+</td></tr>
+<tr><td valign="top"><em><a class="anchor" name="a19a15" doxytag="STAT"></a>STAT</em>&nbsp;</td><td>
+</td></tr>
+<tr><td valign="top"><em><a class="anchor" name="a19a16" doxytag="STRING"></a>STRING</em>&nbsp;</td><td>
+</td></tr>
+<tr><td valign="top"><em><a class="anchor" name="a19a17" doxytag="END"></a>END</em>&nbsp;</td><td>
+</td></tr>
+</table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00017">17</a> of file <a class="el" href="map_8h-source.html">map.h</a>. </td>
+ </tr>
+</table>
+<hr><h2>Variable Documentation</h2>
+<a class="anchor" name="a9" doxytag="map.h::packed"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">enum <a class="el" href="map_8h.html#a18">keytype</a> <a class="el" href="map_8h.html#a9">packed</a> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+ </td>
+ </tr>
+</table>
+<hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/pages.html b/runtime/docs/html/pages.html
new file mode 100644
index 00000000..10838534
--- /dev/null
+++ b/runtime/docs/html/pages.html
@@ -0,0 +1,19 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1>SystemTap Related Pages</h1>Here is a list of all related documentation pages:<ul>
+<li><a class="el" href="todo.html">Todo List</a>
+
+<li><a class="el" href="bug.html">Bug List</a>
+
+</ul>
+<hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/runtime_8h-source.html b/runtime/docs/html/runtime_8h-source.html
new file mode 100644
index 00000000..b688d351
--- /dev/null
+++ b/runtime/docs/html/runtime_8h-source.html
@@ -0,0 +1,31 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1>runtime.h</h1><a href="runtime_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001
+00002 <span class="preprocessor">#include &lt;linux/module.h&gt;</span>
+00003 <span class="preprocessor">#include &lt;linux/miscdevice.h&gt;</span>
+00004 <span class="preprocessor">#include &lt;linux/init.h&gt;</span>
+00005 <span class="preprocessor">#include &lt;linux/hash.h&gt;</span>
+00006 <span class="preprocessor">#include &lt;linux/string.h&gt;</span>
+00007 <span class="preprocessor">#include &lt;linux/kprobes.h&gt;</span>
+00008 <span class="preprocessor">#include &lt;linux/proc_fs.h&gt;</span>
+00009 <span class="preprocessor">#include &lt;linux/vmalloc.h&gt;</span>
+00010 <span class="preprocessor">#include &lt;linux/time.h&gt;</span>
+00011 <span class="preprocessor">#include &lt;linux/spinlock.h&gt;</span>
+00012 <span class="preprocessor">#include &lt;asm/uaccess.h&gt;</span>
+00013
+00014 <span class="preprocessor">#include "<a class="code" href="alloc_8h.html">alloc.h</a>"</span>
+00015 <span class="preprocessor">#include "<a class="code" href="map_8h.html">map.h</a>"</span>
+00016
+<a name="l00017"></a><a class="code" href="runtime_8h.html#a0">00017</a> <span class="preprocessor">#define dbug(args...) ;</span>
+00018 <span class="preprocessor"></span>
+</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/runtime_8h.html b/runtime/docs/html/runtime_8h.html
new file mode 100644
index 00000000..89b24097
--- /dev/null
+++ b/runtime/docs/html/runtime_8h.html
@@ -0,0 +1,67 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1>runtime.h File Reference</h1><code>#include &lt;linux/module.h&gt;</code><br>
+<code>#include &lt;linux/miscdevice.h&gt;</code><br>
+<code>#include &lt;linux/init.h&gt;</code><br>
+<code>#include &lt;linux/hash.h&gt;</code><br>
+<code>#include &lt;linux/string.h&gt;</code><br>
+<code>#include &lt;linux/kprobes.h&gt;</code><br>
+<code>#include &lt;linux/proc_fs.h&gt;</code><br>
+<code>#include &lt;linux/vmalloc.h&gt;</code><br>
+<code>#include &lt;linux/time.h&gt;</code><br>
+<code>#include &lt;linux/spinlock.h&gt;</code><br>
+<code>#include &lt;asm/uaccess.h&gt;</code><br>
+<code>#include "<a class="el" href="alloc_8h-source.html">alloc.h</a>"</code><br>
+<code>#include "<a class="el" href="map_8h-source.html">map.h</a>"</code><br>
+
+<p>
+<a href="runtime_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
+<tr><td></td></tr>
+<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="runtime_8h.html#a0">dbug</a>(args...)&nbsp;&nbsp;&nbsp;;</td></tr>
+
+</table>
+<hr><h2>Define Documentation</h2>
+<a class="anchor" name="a0" doxytag="runtime.h::dbug"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">#define dbug </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">args...&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap>&nbsp;&nbsp;&nbsp;;</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="runtime_8h-source.html#l00017">17</a> of file <a class="el" href="runtime_8h-source.html">runtime.h</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00528">_stp_map_get_int64()</a>, <a class="el" href="map_8c-source.html#l00692">_stp_map_get_stat()</a>, <a class="el" href="map_8c-source.html#l00609">_stp_map_get_str()</a>, <a class="el" href="map_8c-source.html#l00172">_stp_map_iter()</a>, <a class="el" href="map_8c-source.html#l00104">_stp_map_key_del()</a>, <a class="el" href="map_8c-source.html#l00218">_stp_map_key_long_long()</a>, <a class="el" href="map_8c-source.html#l00358">_stp_map_key_long_str()</a>, <a class="el" href="map_8c-source.html#l00310">_stp_map_key_str_long()</a>, <a class="el" href="map_8c-source.html#l00261">_stp_map_key_str_str()</a>, <a class="el" href="map_8c-source.html#l00043">_stp_map_new()</a>, <a class="el" href="map_8c-source.html#l00471">_stp_map_set_int64()</a>, <a class="el" href="map_8c-source.html#l00633">_stp_map_set_stat()</a>, <a class="el" href="map_8c-source.html#l00548">_stp_map_set_str()</a>, <a class="el" href="map_8c-source.html#l00149">_stp_map_start()</a>, and <a class="el" href="map_8c-source.html#l00713">_stp_map_stat_add()</a>. </td>
+ </tr>
+</table>
+<hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/structmap__node.html b/runtime/docs/html/structmap__node.html
new file mode 100644
index 00000000..0f1dbc42
--- /dev/null
+++ b/runtime/docs/html/structmap__node.html
@@ -0,0 +1,138 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1>map_node Struct Reference</h1><code>#include &lt;<a class="el" href="map_8h-source.html">map.h</a>&gt;</code>
+<p>
+<table border="0" cellpadding="0" cellspacing="0">
+<tr><td></td></tr>
+<tr><td colspan="2"><br><h2>Data Fields</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">list_head&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmap__node.html#o0">lnode</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top">hlist_node&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmap__node.html#o1">hnode</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="unionkey__data.html">key_data</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmap__node.html#o2">key1</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="unionkey__data.html">key_data</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmap__node.html#o3">key2</a></td></tr>
+
+</table>
+<hr><h2>Field Documentation</h2>
+<a class="anchor" name="o1" doxytag="map_node::hnode"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">struct hlist_node <a class="el" href="structmap__node.html#o1">map_node::hnode</a> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00022">22</a> of file <a class="el" href="map_8h-source.html">map.h</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00765">_stp_list_clear()</a>, <a class="el" href="map_8c-source.html#l00104">_stp_map_key_del()</a>, <a class="el" href="map_8c-source.html#l00471">_stp_map_set_int64()</a>, <a class="el" href="map_8c-source.html#l00633">_stp_map_set_stat()</a>, and <a class="el" href="map_8c-source.html#l00548">_stp_map_set_str()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="o2" doxytag="map_node::key1"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">union <a class="el" href="unionkey__data.html">key_data</a> <a class="el" href="structmap__node.html#o2">map_node::key1</a> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00023">23</a> of file <a class="el" href="map_8h-source.html">map.h</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00218">_stp_map_key_long_long()</a>, <a class="el" href="map_8c-source.html#l00358">_stp_map_key_long_str()</a>, <a class="el" href="map_8c-source.html#l00310">_stp_map_key_str_long()</a>, and <a class="el" href="map_8c-source.html#l00261">_stp_map_key_str_str()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="o3" doxytag="map_node::key2"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">union <a class="el" href="unionkey__data.html">key_data</a> <a class="el" href="structmap__node.html#o3">map_node::key2</a> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00024">24</a> of file <a class="el" href="map_8h-source.html">map.h</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00358">_stp_map_key_long_str()</a>, <a class="el" href="map_8c-source.html#l00310">_stp_map_key_str_long()</a>, and <a class="el" href="map_8c-source.html#l00261">_stp_map_key_str_str()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="o0" doxytag="map_node::lnode"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">struct list_head <a class="el" href="structmap__node.html#o0">map_node::lnode</a> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00021">21</a> of file <a class="el" href="map_8h-source.html">map.h</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00765">_stp_list_clear()</a>, <a class="el" href="map_8c-source.html#l00190">_stp_map_del()</a>, <a class="el" href="map_8c-source.html#l00172">_stp_map_iter()</a>, <a class="el" href="map_8c-source.html#l00104">_stp_map_key_del()</a>, <a class="el" href="map_8c-source.html#l00471">_stp_map_set_int64()</a>, <a class="el" href="map_8c-source.html#l00633">_stp_map_set_stat()</a>, and <a class="el" href="map_8c-source.html#l00548">_stp_map_set_str()</a>. </td>
+ </tr>
+</table>
+<hr>The documentation for this struct was generated from the following file:<ul>
+<li><a class="el" href="map_8h-source.html">map.h</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/structmap__node__int64.html b/runtime/docs/html/structmap__node__int64.html
new file mode 100644
index 00000000..d2ec7317
--- /dev/null
+++ b/runtime/docs/html/structmap__node__int64.html
@@ -0,0 +1,80 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1>map_node_int64 Struct Reference</h1><code>#include &lt;<a class="el" href="map_8h-source.html">map.h</a>&gt;</code>
+<p>
+<table border="0" cellpadding="0" cellspacing="0">
+<tr><td></td></tr>
+<tr><td colspan="2"><br><h2>Data Fields</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structmap__node.html">map_node</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmap__node__int64.html#o0">n</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top">int64_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmap__node__int64.html#o1">val</a></td></tr>
+
+</table>
+<hr><h2>Field Documentation</h2>
+<a class="anchor" name="o0" doxytag="map_node_int64::n"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">struct <a class="el" href="structmap__node.html">map_node</a> <a class="el" href="structmap__node__int64.html#o0">map_node_int64::n</a> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00031">31</a> of file <a class="el" href="map_8h-source.html">map.h</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00471">_stp_map_set_int64()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="o1" doxytag="map_node_int64::val"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">int64_t <a class="el" href="structmap__node__int64.html#o1">map_node_int64::val</a> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00032">32</a> of file <a class="el" href="map_8h-source.html">map.h</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00528">_stp_map_get_int64()</a>, and <a class="el" href="map_8c-source.html#l00471">_stp_map_set_int64()</a>. </td>
+ </tr>
+</table>
+<hr>The documentation for this struct was generated from the following file:<ul>
+<li><a class="el" href="map_8h-source.html">map.h</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/structmap__node__stat.html b/runtime/docs/html/structmap__node__stat.html
new file mode 100644
index 00000000..0d8fdb95
--- /dev/null
+++ b/runtime/docs/html/structmap__node__stat.html
@@ -0,0 +1,80 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1>map_node_stat Struct Reference</h1><code>#include &lt;<a class="el" href="map_8h-source.html">map.h</a>&gt;</code>
+<p>
+<table border="0" cellpadding="0" cellspacing="0">
+<tr><td></td></tr>
+<tr><td colspan="2"><br><h2>Data Fields</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structmap__node.html">map_node</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmap__node__stat.html#o0">n</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structstat.html">stat</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmap__node__stat.html#o1">stats</a></td></tr>
+
+</table>
+<hr><h2>Field Documentation</h2>
+<a class="anchor" name="o0" doxytag="map_node_stat::n"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">struct <a class="el" href="structmap__node.html">map_node</a> <a class="el" href="structmap__node__stat.html#o0">map_node_stat::n</a> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00041">41</a> of file <a class="el" href="map_8h-source.html">map.h</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00633">_stp_map_set_stat()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="o1" doxytag="map_node_stat::stats"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"><a class="el" href="structstat.html">stat</a> <a class="el" href="structmap__node__stat.html#o1">map_node_stat::stats</a> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00042">42</a> of file <a class="el" href="map_8h-source.html">map.h</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00692">_stp_map_get_stat()</a>, <a class="el" href="map_8c-source.html#l00633">_stp_map_set_stat()</a>, and <a class="el" href="map_8c-source.html#l00713">_stp_map_stat_add()</a>. </td>
+ </tr>
+</table>
+<hr>The documentation for this struct was generated from the following file:<ul>
+<li><a class="el" href="map_8h-source.html">map.h</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/structmap__node__str.html b/runtime/docs/html/structmap__node__str.html
new file mode 100644
index 00000000..a7d78bed
--- /dev/null
+++ b/runtime/docs/html/structmap__node__str.html
@@ -0,0 +1,80 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1>map_node_str Struct Reference</h1><code>#include &lt;<a class="el" href="map_8h-source.html">map.h</a>&gt;</code>
+<p>
+<table border="0" cellpadding="0" cellspacing="0">
+<tr><td></td></tr>
+<tr><td colspan="2"><br><h2>Data Fields</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structmap__node.html">map_node</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmap__node__str.html#o0">n</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top">char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmap__node__str.html#o1">str</a></td></tr>
+
+</table>
+<hr><h2>Field Documentation</h2>
+<a class="anchor" name="o0" doxytag="map_node_str::n"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">struct <a class="el" href="structmap__node.html">map_node</a> <a class="el" href="structmap__node__str.html#o0">map_node_str::n</a> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00036">36</a> of file <a class="el" href="map_8h-source.html">map.h</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00548">_stp_map_set_str()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="o1" doxytag="map_node_str::str"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">char* <a class="el" href="structmap__node__str.html#o1">map_node_str::str</a> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00037">37</a> of file <a class="el" href="map_8h-source.html">map.h</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00609">_stp_map_get_str()</a>, and <a class="el" href="map_8c-source.html#l00548">_stp_map_set_str()</a>. </td>
+ </tr>
+</table>
+<hr>The documentation for this struct was generated from the following file:<ul>
+<li><a class="el" href="map_8h-source.html">map.h</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/structmap__root.html b/runtime/docs/html/structmap__root.html
new file mode 100644
index 00000000..d6a7418a
--- /dev/null
+++ b/runtime/docs/html/structmap__root.html
@@ -0,0 +1,370 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1>map_root Struct Reference</h1><code>#include &lt;<a class="el" href="map_8h-source.html">map.h</a>&gt;</code>
+<p>
+<table border="0" cellpadding="0" cellspacing="0">
+<tr><td></td></tr>
+<tr><td colspan="2"><br><h2>Data Fields</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmap__root.html#o0">maxnum</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmap__root.html#o1">num</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmap__root.html#o2">no_wrap</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top">list_head&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmap__root.html#o3">head</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top">list_head&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmap__root.html#o4">pool</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structmap__node.html">map_node</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmap__root.html#o5">key</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top">u_int8_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmap__root.html#o6">create</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top">hlist_head *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmap__root.html#o7">c_keyhead</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="unionkey__data.html">key_data</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmap__root.html#o8">c_key1</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="unionkey__data.html">key_data</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmap__root.html#o9">c_key2</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top">hlist_head&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmap__root.html#o10">hashes</a> [HASH_TABLE_SIZE]</td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top">void *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmap__root.html#o11">membuf</a></td></tr>
+
+</table>
+<hr><h2>Field Documentation</h2>
+<a class="anchor" name="o8" doxytag="map_root::c_key1"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">union <a class="el" href="unionkey__data.html">key_data</a> <a class="el" href="structmap__root.html#o8">map_root::c_key1</a> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00074">74</a> of file <a class="el" href="map_8h-source.html">map.h</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00218">_stp_map_key_long_long()</a>, <a class="el" href="map_8c-source.html#l00358">_stp_map_key_long_str()</a>, <a class="el" href="map_8c-source.html#l00310">_stp_map_key_str_long()</a>, and <a class="el" href="map_8c-source.html#l00261">_stp_map_key_str_str()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="o9" doxytag="map_root::c_key2"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">union <a class="el" href="unionkey__data.html">key_data</a> <a class="el" href="structmap__root.html#o9">map_root::c_key2</a> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00075">75</a> of file <a class="el" href="map_8h-source.html">map.h</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00218">_stp_map_key_long_long()</a>, <a class="el" href="map_8c-source.html#l00358">_stp_map_key_long_str()</a>, <a class="el" href="map_8c-source.html#l00310">_stp_map_key_str_long()</a>, and <a class="el" href="map_8c-source.html#l00261">_stp_map_key_str_str()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="o7" doxytag="map_root::c_keyhead"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">struct hlist_head* <a class="el" href="structmap__root.html#o7">map_root::c_keyhead</a> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00073">73</a> of file <a class="el" href="map_8h-source.html">map.h</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00218">_stp_map_key_long_long()</a>, <a class="el" href="map_8c-source.html#l00358">_stp_map_key_long_str()</a>, <a class="el" href="map_8c-source.html#l00310">_stp_map_key_str_long()</a>, and <a class="el" href="map_8c-source.html#l00261">_stp_map_key_str_str()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="o6" doxytag="map_root::create"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">u_int8_t <a class="el" href="structmap__root.html#o6">map_root::create</a> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00070">70</a> of file <a class="el" href="map_8h-source.html">map.h</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00528">_stp_map_get_int64()</a>, <a class="el" href="map_8c-source.html#l00692">_stp_map_get_stat()</a>, <a class="el" href="map_8c-source.html#l00609">_stp_map_get_str()</a>, <a class="el" href="map_8c-source.html#l00104">_stp_map_key_del()</a>, <a class="el" href="map_8c-source.html#l00218">_stp_map_key_long_long()</a>, <a class="el" href="map_8c-source.html#l00358">_stp_map_key_long_str()</a>, <a class="el" href="map_8c-source.html#l00310">_stp_map_key_str_long()</a>, <a class="el" href="map_8c-source.html#l00261">_stp_map_key_str_str()</a>, <a class="el" href="map_8c-source.html#l00471">_stp_map_set_int64()</a>, <a class="el" href="map_8c-source.html#l00633">_stp_map_set_stat()</a>, <a class="el" href="map_8c-source.html#l00548">_stp_map_set_str()</a>, and <a class="el" href="map_8c-source.html#l00713">_stp_map_stat_add()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="o10" doxytag="map_root::hashes"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">struct hlist_head <a class="el" href="structmap__root.html#o10">map_root::hashes</a>[HASH_TABLE_SIZE] </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00078">78</a> of file <a class="el" href="map_8h-source.html">map.h</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00218">_stp_map_key_long_long()</a>, <a class="el" href="map_8c-source.html#l00358">_stp_map_key_long_str()</a>, <a class="el" href="map_8c-source.html#l00310">_stp_map_key_str_long()</a>, and <a class="el" href="map_8c-source.html#l00261">_stp_map_key_str_str()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="o3" doxytag="map_root::head"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">struct list_head <a class="el" href="structmap__root.html#o3">map_root::head</a> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00059">59</a> of file <a class="el" href="map_8h-source.html">map.h</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00765">_stp_list_clear()</a>, <a class="el" href="map_8c-source.html#l00190">_stp_map_del()</a>, <a class="el" href="map_8c-source.html#l00172">_stp_map_iter()</a>, <a class="el" href="map_8c-source.html#l00043">_stp_map_new()</a>, <a class="el" href="map_8c-source.html#l00471">_stp_map_set_int64()</a>, <a class="el" href="map_8c-source.html#l00633">_stp_map_set_stat()</a>, <a class="el" href="map_8c-source.html#l00548">_stp_map_set_str()</a>, and <a class="el" href="map_8c-source.html#l00149">_stp_map_start()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="o5" doxytag="map_root::key"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">struct <a class="el" href="structmap__node.html">map_node</a>* <a class="el" href="structmap__root.html#o5">map_root::key</a> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00066">66</a> of file <a class="el" href="map_8h-source.html">map.h</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00528">_stp_map_get_int64()</a>, <a class="el" href="map_8c-source.html#l00692">_stp_map_get_stat()</a>, <a class="el" href="map_8c-source.html#l00609">_stp_map_get_str()</a>, <a class="el" href="map_8c-source.html#l00104">_stp_map_key_del()</a>, <a class="el" href="map_8c-source.html#l00218">_stp_map_key_long_long()</a>, <a class="el" href="map_8c-source.html#l00358">_stp_map_key_long_str()</a>, <a class="el" href="map_8c-source.html#l00310">_stp_map_key_str_long()</a>, <a class="el" href="map_8c-source.html#l00261">_stp_map_key_str_str()</a>, <a class="el" href="map_8c-source.html#l00471">_stp_map_set_int64()</a>, <a class="el" href="map_8c-source.html#l00633">_stp_map_set_stat()</a>, <a class="el" href="map_8c-source.html#l00548">_stp_map_set_str()</a>, and <a class="el" href="map_8c-source.html#l00713">_stp_map_stat_add()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="o0" doxytag="map_root::maxnum"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">int <a class="el" href="structmap__root.html#o0">map_root::maxnum</a> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00050">50</a> of file <a class="el" href="map_8h-source.html">map.h</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00765">_stp_list_clear()</a>, <a class="el" href="map_8c-source.html#l00104">_stp_map_key_del()</a>, <a class="el" href="map_8c-source.html#l00043">_stp_map_new()</a>, <a class="el" href="map_8c-source.html#l00471">_stp_map_set_int64()</a>, <a class="el" href="map_8c-source.html#l00633">_stp_map_set_stat()</a>, and <a class="el" href="map_8c-source.html#l00548">_stp_map_set_str()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="o11" doxytag="map_root::membuf"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">void* <a class="el" href="structmap__root.html#o11">map_root::membuf</a> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00081">81</a> of file <a class="el" href="map_8h-source.html">map.h</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00190">_stp_map_del()</a>, and <a class="el" href="map_8c-source.html#l00043">_stp_map_new()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="o2" doxytag="map_root::no_wrap"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">int <a class="el" href="structmap__root.html#o2">map_root::no_wrap</a> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00056">56</a> of file <a class="el" href="map_8h-source.html">map.h</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00753">_stp_list_new()</a>, <a class="el" href="map_8c-source.html#l00471">_stp_map_set_int64()</a>, <a class="el" href="map_8c-source.html#l00633">_stp_map_set_stat()</a>, and <a class="el" href="map_8c-source.html#l00548">_stp_map_set_str()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="o1" doxytag="map_root::num"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">int <a class="el" href="structmap__root.html#o1">map_root::num</a> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00053">53</a> of file <a class="el" href="map_8h-source.html">map.h</a>.
+<p>
+Referenced by <a class="el" href="copy_8c-source.html#l00115">_stp_copy_argv_from_user()</a>, <a class="el" href="map_8c-source.html#l00816">_stp_list_add_int64()</a>, <a class="el" href="map_8c-source.html#l00805">_stp_list_add_str()</a>, <a class="el" href="map_8c-source.html#l00765">_stp_list_clear()</a>, <a class="el" href="map_8c-source.html#l00827">_stp_list_size()</a>, and <a class="el" href="map_8c-source.html#l00104">_stp_map_key_del()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="o4" doxytag="map_root::pool"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">struct list_head <a class="el" href="structmap__root.html#o4">map_root::pool</a> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00063">63</a> of file <a class="el" href="map_8h-source.html">map.h</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00765">_stp_list_clear()</a>, <a class="el" href="map_8c-source.html#l00104">_stp_map_key_del()</a>, <a class="el" href="map_8c-source.html#l00043">_stp_map_new()</a>, <a class="el" href="map_8c-source.html#l00471">_stp_map_set_int64()</a>, <a class="el" href="map_8c-source.html#l00633">_stp_map_set_stat()</a>, and <a class="el" href="map_8c-source.html#l00548">_stp_map_set_str()</a>. </td>
+ </tr>
+</table>
+<hr>The documentation for this struct was generated from the following file:<ul>
+<li><a class="el" href="map_8h-source.html">map.h</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/structstat.html b/runtime/docs/html/structstat.html
new file mode 100644
index 00000000..47627657
--- /dev/null
+++ b/runtime/docs/html/structstat.html
@@ -0,0 +1,165 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1>stat Struct Reference</h1><code>#include &lt;<a class="el" href="map_8h-source.html">map.h</a>&gt;</code>
+<p>
+<table border="0" cellpadding="0" cellspacing="0">
+<tr><td></td></tr>
+<tr><td colspan="2"><br><h2>Data Fields</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">int64_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structstat.html#o0">count</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top">int64_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structstat.html#o1">sum</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top">int64_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structstat.html#o2">min</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top">int64_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structstat.html#o3">max</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top">int64_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structstat.html#o4">histogram</a> [BUCKETS]</td></tr>
+
+</table>
+<hr><h2>Field Documentation</h2>
+<a class="anchor" name="o0" doxytag="stat::count"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">int64_t <a class="el" href="structstat.html#o0">stat::count</a> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00005">5</a> of file <a class="el" href="map_8h-source.html">map.h</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00713">_stp_map_stat_add()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="o4" doxytag="stat::histogram"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">int64_t <a class="el" href="structstat.html#o4">stat::histogram</a>[BUCKETS] </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00008">8</a> of file <a class="el" href="map_8h-source.html">map.h</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="o3" doxytag="stat::max"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">int64_t <a class="el" href="structstat.html#o3">stat::max</a> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00007">7</a> of file <a class="el" href="map_8h-source.html">map.h</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00713">_stp_map_stat_add()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="o2" doxytag="stat::min"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">int64_t <a class="el" href="structstat.html#o2">stat::min</a> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00007">7</a> of file <a class="el" href="map_8h-source.html">map.h</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00713">_stp_map_stat_add()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="o1" doxytag="stat::sum"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">int64_t <a class="el" href="structstat.html#o1">stat::sum</a> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00006">6</a> of file <a class="el" href="map_8h-source.html">map.h</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00713">_stp_map_stat_add()</a>. </td>
+ </tr>
+</table>
+<hr>The documentation for this struct was generated from the following file:<ul>
+<li><a class="el" href="map_8h-source.html">map.h</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/todo.html b/runtime/docs/html/todo.html
new file mode 100644
index 00000000..d4f0d051
--- /dev/null
+++ b/runtime/docs/html/todo.html
@@ -0,0 +1,32 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1><a class="anchor" name="todo">Todo List</a></h1><a class="anchor" name="_todo000004"></a> <dl>
+<dt>page <a class="el" href="index.html">SystemTap Runtime Library</a> </dt>
+<dd>The Runtime Library is not actually a library yet. It is just a collection of functions included in the probe boilerplate. </dd>
+</dl>
+<p>
+<a class="anchor" name="_todo000001"></a> <dl>
+<dt>Global <a class="el" href="io_8c.html#a0">dlog</a> (const char *fmt,...) </dt>
+<dd>Needs replaced with something much faster that does not use the system log. </dd>
+</dl>
+<p>
+<a class="anchor" name="_todo000002"></a> <dl>
+<dt>Global <a class="el" href="map_8c.html#a20">_stp_map_set_stat</a> (MAP map, stat *stats) </dt>
+<dd>Histograms don't work yet. </dd>
+</dl>
+<p>
+<a class="anchor" name="_todo000003"></a> <dl>
+<dt>Global <a class="el" href="map_8c.html#a22">_stp_map_stat_add</a> (MAP map, int64_t val) </dt>
+<dd>Histograms don't work yet. </dd>
+</dl>
+<hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/docs/html/tree.html b/runtime/docs/html/tree.html
new file mode 100644
index 00000000..1d3f49b0
--- /dev/null
+++ b/runtime/docs/html/tree.html
@@ -0,0 +1,139 @@
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <head>
+ <meta http-equiv="Content-Type" content="text/xhtml;charset="iso-8859-1" />
+ <meta http-equiv="Content-Style-Type" content="text/css" />
+ <meta http-equiv="Content-Language" content="en" />
+ <link rel="stylesheet" href="doxygen.css">
+ <title>TreeView</title>
+ <style type="text/css">
+ <!--
+ .directory { font-size: 10pt; font-weight: bold; }
+ .directory h3 { margin: 0px; margin-top: 1em; font-size: 11pt; }
+ .directory p { margin: 0px; white-space: nowrap; }
+ .directory div { display: none; margin: 0px; }
+ .directory img { vertical-align: middle; }
+ -->
+ </style>
+ <script type="text/javascript">
+ <!-- // Hide script from old browsers
+
+ function findChildNode(node, name)
+ {
+ var temp;
+ if (node == null)
+ {
+ return null;
+ }
+ node = node.firstChild;
+ while (node != null)
+ {
+ if (node.nodeName == name)
+ {
+ return node;
+ }
+ temp = findChildNode(node, name);
+ if (temp != null)
+ {
+ return temp;
+ }
+ node = node.nextSibling;
+ }
+ return null;
+ }
+
+ function toggleFolder(id, imageNode)
+ {
+ var folder = document.getElementById(id);
+ var l = 0;
+ var vl = "ftv2vertline.png";
+ if (imageNode != null && imageNode.nodeName != "IMG")
+ {
+ imageNode = findChildNode(imageNode, "IMG");
+ if (imageNode!=null) l = imageNode.src.length;
+ }
+ if (folder == null)
+ {
+ }
+ else if (folder.style.display == "block")
+ {
+ while (imageNode != null &&
+ imageNode.src.substring(l-vl.length,l) == vl)
+ {
+ imageNode = imageNode.nextSibling;
+ l = imageNode.src.length;
+ }
+ if (imageNode != null)
+ {
+ l = imageNode.src.length;
+ imageNode.nextSibling.src = "ftv2folderclosed.png";
+ if (imageNode.src.substring(l-13,l) == "ftv2mnode.png")
+ {
+ imageNode.src = "ftv2pnode.png";
+ }
+ else if (imageNode.src.substring(l-17,l) == "ftv2mlastnode.png")
+ {
+ imageNode.src = "ftv2plastnode.png";
+ }
+ }
+ folder.style.display = "none";
+ }
+ else
+ {
+ while (imageNode != null &&
+ imageNode.src.substring(l-vl.length,l) == vl)
+ {
+ imageNode = imageNode.nextSibling;
+ l = imageNode.src.length;
+ }
+ if (imageNode != null)
+ {
+ l = imageNode.src.length;
+ imageNode.nextSibling.src = "ftv2folderopen.png";
+ if (imageNode.src.substring(l-13,l) == "ftv2pnode.png")
+ {
+ imageNode.src = "ftv2mnode.png";
+ }
+ else if (imageNode.src.substring(l-17,l) == "ftv2plastnode.png")
+ {
+ imageNode.src = "ftv2mlastnode.png";
+ }
+ }
+ folder.style.display = "block";
+ }
+ }
+
+ // End script hiding -->
+ </script>
+ </head>
+
+ <body>
+ <div class="directory">
+ <h3>SystemTap</h3>
+ <div style="display: block;">
+ <p><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="main.html" target="basefrm">SystemTap Runtime Library</a></p>
+ <p><img src="ftv2pnode.png" alt="o" width=16 height=22 onclick="toggleFolder('folder1', this)"/><img src="ftv2folderclosed.png" alt="+" width=24 height=22 onclick="toggleFolder('folder1', this)"/><a class="el" href="files.html" target="basefrm">File List</a></p>
+ <div id="folder1">
+ <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="alloc_8h.html" target="basefrm">alloc.h</a></p>
+ <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="copy_8c.html" target="basefrm">copy.c</a></p>
+ <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="io_8c.html" target="basefrm">io.c</a></p>
+ <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="map_8c.html" target="basefrm">map.c</a></p>
+ <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="map_8h.html" target="basefrm">map.h</a></p>
+ <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="README.html" target="basefrm">README</a></p>
+ <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2lastnode.png" alt="\" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="runtime_8h.html" target="basefrm">runtime.h</a></p>
+ </div>
+ <p><img src="ftv2pnode.png" alt="o" width=16 height=22 onclick="toggleFolder('folder2', this)"/><img src="ftv2folderclosed.png" alt="+" width=24 height=22 onclick="toggleFolder('folder2', this)"/><a class="el" href="annotated.html" target="basefrm">Data Structures</a></p>
+ <div id="folder2">
+ <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="unionkey__data.html" target="basefrm">key_data</a></p>
+ <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="structmap__node.html" target="basefrm">map_node</a></p>
+ <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="structmap__node__int64.html" target="basefrm">map_node_int64</a></p>
+ <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="structmap__node__stat.html" target="basefrm">map_node_stat</a></p>
+ <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="structmap__node__str.html" target="basefrm">map_node_str</a></p>
+ <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="structmap__root.html" target="basefrm">map_root</a></p>
+ <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2lastnode.png" alt="\" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="structstat.html" target="basefrm">stat</a></p>
+ </div>
+ <p><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="functions.html" target="basefrm">Data Fields</a></p>
+ <p><img src="ftv2lastnode.png" alt="\" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="globals.html" target="basefrm">Globals</a></p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/runtime/docs/html/unionkey__data.html b/runtime/docs/html/unionkey__data.html
new file mode 100644
index 00000000..e2f2a66e
--- /dev/null
+++ b/runtime/docs/html/unionkey__data.html
@@ -0,0 +1,80 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>SystemTap: SystemTap Runtime Library</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<div class="qindex"><a class="qindex" href="index.html">Intro</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_defs.html">Defines</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumeration Values</a></div>
+
+<!-- Generated by Doxygen 1.3.9.1 -->
+<h1>key_data Union Reference</h1><code>#include &lt;<a class="el" href="map_8h-source.html">map.h</a>&gt;</code>
+<p>
+<table border="0" cellpadding="0" cellspacing="0">
+<tr><td></td></tr>
+<tr><td colspan="2"><br><h2>Data Fields</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="unionkey__data.html#o0">val</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align="right" valign="top">char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="unionkey__data.html#o1">str</a></td></tr>
+
+</table>
+<hr><h2>Field Documentation</h2>
+<a class="anchor" name="o1" doxytag="key_data::str"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">char* <a class="el" href="unionkey__data.html#o1">key_data::str</a> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00013">13</a> of file <a class="el" href="map_8h-source.html">map.h</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00358">_stp_map_key_long_str()</a>, <a class="el" href="map_8c-source.html#l00310">_stp_map_key_str_long()</a>, and <a class="el" href="map_8c-source.html#l00261">_stp_map_key_str_str()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="o0" doxytag="key_data::val"></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top">long <a class="el" href="unionkey__data.html#o0">key_data::val</a> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing="5" cellpadding="0" border="0">
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="map_8h-source.html#l00012">12</a> of file <a class="el" href="map_8h-source.html">map.h</a>.
+<p>
+Referenced by <a class="el" href="map_8c-source.html#l00218">_stp_map_key_long_long()</a>, <a class="el" href="map_8c-source.html#l00358">_stp_map_key_long_str()</a>, and <a class="el" href="map_8c-source.html#l00310">_stp_map_key_str_long()</a>. </td>
+ </tr>
+</table>
+<hr>The documentation for this union was generated from the following file:<ul>
+<li><a class="el" href="map_8h-source.html">map.h</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Wed Mar 9 13:21:28 2005 for SystemTap by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
+</body>
+</html>
diff --git a/runtime/io.c b/runtime/io.c
new file mode 100644
index 00000000..3371df16
--- /dev/null
+++ b/runtime/io.c
@@ -0,0 +1,19 @@
+/** Logs data.
+ * This function is compatible with printk. In fact it currently
+ * sends all output to vprintk, after sending "STP: ". This allows
+ * us to easily detect SystemTap output in the log file.
+ *
+ * @param fmt A variable number of args.
+ * @bug Lines are limited in length by printk buffer.
+ * @todo Needs replaced with something much faster that does not
+ * use the system log.
+ */
+void dlog (const char *fmt, ...)
+{
+ va_list args;
+ printk("STP: ");
+ va_start(args, fmt);
+ vprintk(fmt, args);
+ va_end(args);
+}
+
diff --git a/runtime/map.c b/runtime/map.c
new file mode 100644
index 00000000..9b264c3a
--- /dev/null
+++ b/runtime/map.c
@@ -0,0 +1,830 @@
+/* -*- linux-c -*- */
+
+static int map_sizes[] = {
+ sizeof(struct map_node_int64),
+ sizeof(struct map_node_stat),
+ sizeof(struct map_node_str),
+ 0
+};
+
+static inline unsigned string_hash(const char *key1, const char *key2)
+{
+ int hash = 0, count = 0;
+ char *v1 = (char *)key1;
+ char *v2 = (char *)key2;
+ while (*v1 && count++ < 5) {
+ hash += *v1++;
+ }
+ while (v2 && *v2 && count++ < 5) {
+ hash += *v2++;
+ }
+ return hash_long((unsigned long)hash, HASH_TABLE_BITS);
+}
+
+static inline unsigned mixed_hash(const char *key1, long key2)
+{
+ int hash = 0, count = 0;
+ char *v = (char *)key1;
+ while (v && *v && count++ < 5)
+ hash += *v++;
+ return hash_long((unsigned long)(hash ^ key2), HASH_TABLE_BITS);
+}
+
+/** Create a new map.
+ * Maps must be created at module initialization time.
+ * @param max_entries The maximum number of entries allowed. Currently that number will
+ * be preallocated. If more entries are required, the oldest ones will be deleted. This makes
+ * it effectively a circular buffer. If max_entries is 0, there will be no maximum and entries
+ * will be allocated dynamically.
+ * @param type Type of values stored in this map.
+ * @return A MAP on success or NULL on failure.
+ */
+
+MAP _stp_map_new(unsigned max_entries, enum valtype type)
+{
+ size_t size;
+ MAP m = (MAP) _stp_valloc(sizeof(struct map_root));
+ if (m == NULL)
+ return NULL;
+
+ INIT_LIST_HEAD(&m->head);
+
+ m->maxnum = max_entries;
+ m->type = type;
+ if (type >= END) {
+ dbug ("map_new: unknown type %d\n", type);
+ return NULL;
+ }
+
+ if (max_entries) {
+ void *tmp;
+ int i;
+ struct list_head *e;
+
+ INIT_LIST_HEAD(&m->pool);
+ size = map_sizes[type];
+ tmp = _stp_valloc(max_entries * size);
+
+ for (i = max_entries - 1; i >= 0; i--) {
+ e = i * size + tmp;
+ dbug ("e=%lx\n", (long)e);
+ list_add(e, &m->pool);
+ }
+ m->membuf = tmp;
+ }
+ return m;
+}
+
+static void map_free_strings(MAP map, struct map_node *n)
+{
+ struct map_node_str *m = (struct map_node_str *)n;
+ dbug ("n = %lx\n", (long)n);
+ if (map->type == STRING) {
+ dbug ("val STRING %lx\n", (long)m->str);
+ if (m->str)
+ _stp_free(m->str);
+ }
+ if (m->n.key1type == STR) {
+ dbug ("key1 STR %lx\n", (long)key1str(m));
+ if (key1str(m))
+ _stp_free(key1str(m));
+ }
+ if (m->n.key2type == STR) {
+ dbug ("key2 STR %lx\n", (long)key2str(m));
+ if (key2str(m))
+ _stp_free(key2str(m));
+ }
+}
+
+/** Deletes the current element.
+ * If no current element (key) for this map is set, this function does nothing.
+ * @param map
+ */
+
+void _stp_map_key_del(MAP map)
+{
+ struct map_node *m;
+
+ dbug ("create=%d key=%lx\n", map->create, (long)map->key);
+ if (map == NULL)
+ return;
+
+ if (map->create) {
+ map->create = 0;
+ map->key = NULL;
+ return;
+ }
+
+ if (map->key == NULL)
+ return;
+
+ m = (struct map_node *)map->key;
+
+ /* remove node from old hash list */
+ hlist_del_init(&m->hnode);
+
+ /* remove from entry list */
+ list_del(&m->lnode);
+
+ /* remove any allocated string storage */
+ map_free_strings(map, (struct map_node *)map->key);
+
+ if (map->maxnum)
+ list_add(&m->lnode, &map->pool);
+ else
+ _stp_free(m);
+
+ map->key = NULL;
+ map->num--;
+}
+
+/** Get the first element in a map.
+ * @param map
+ * @returns a pointer to the first element.
+ * This is typically used with _stp_map_iter(). See the foreach() macro
+ * for typical usage. It probably does what you want anyway.
+ * @sa foreach
+ */
+
+struct map_node *_stp_map_start(MAP map)
+{
+ if (map == NULL)
+ return NULL;
+
+ dbug ("%lx\n", (long)map->head.next);
+
+ if (list_empty(&map->head))
+ return NULL;
+
+ return (struct map_node *)map->head.next;
+}
+
+/** Get the next element in a map.
+ * @param map
+ * @param m a pointer to the current element, returned from _stp_map_start()
+ * or _stp_map_iter().
+ * @returns a pointer to the next element.
+ * This is typically used with _stp_map_start(). See the foreach() macro
+ * for typical usage. It probably does what you want anyway.
+ * @sa foreach
+ */
+
+struct map_node *_stp_map_iter(MAP map, struct map_node *m)
+{
+ if (map == NULL)
+ return NULL;
+
+ dbug ("%lx next=%lx prev=%lx map->head.next=%lx\n", (long)m, (long)m->lnode.next, (long)m->lnode.prev, (long)map->head.next);
+
+ if (m->lnode.next == &map->head)
+ return NULL;
+
+ return (struct map_node *)m->lnode.next;
+}
+
+/** Deletes a map.
+ * Deletes a map, freeing all memory in all elements. Normally done only when the module exits.
+ * @param map
+ */
+
+void _stp_map_del(MAP map)
+{
+ if (map == NULL)
+ return;
+
+ if (!list_empty(&map->head)) {
+ struct map_node *ptr = (struct map_node *)map->head.next;
+ while (ptr && ptr != (struct map_node *)&map->head) {
+ map_free_strings(map, ptr);
+ ptr = (struct map_node *)ptr->lnode.next;
+ }
+ }
+ _stp_vfree(map->membuf);
+ _stp_vfree(map);
+}
+
+/********************** KEY FUNCTIONS *********************/
+
+
+/** Set the map's key to two longs.
+ * This sets the current element based on a key of two strings. If the keys are
+ * not found, a new element will not be created until a <i>_stp_map_set_xxx</i>
+ * call.
+ * @param map
+ * @param key1 first key
+ * @param key2 second key
+ */
+
+void _stp_map_key_long_long(MAP map, long key1, long key2)
+{
+ unsigned hv;
+ struct hlist_head *head;
+ struct hlist_node *e;
+
+ if (map == NULL)
+ return;
+
+ hv = hash_long(key1 ^ key2, HASH_TABLE_BITS);
+ head = &map->hashes[hv];
+
+ dbug ("hash for %ld,%ld is %d\n", key1, key2, hv);
+
+ hlist_for_each(e, head) {
+ struct map_node *n =
+ (struct map_node *)((long)e - sizeof(struct hlist_node));
+ dbug ("n =%lx key=%ld,%ld\n", (long)n, n->key1.val, n->key2.val);
+ if (key1 == n->key1.val && key2 == n->key2.val) {
+ map->key = n;
+ dbug ("saving key %lx\n", (long)map->key);
+ map->create = 0;
+ return;
+ }
+ }
+
+ map->c_key1.val = key1;
+ map->c_key2.val = key2;
+ map->c_key1type = LONG;
+ map->c_key2type = LONG;
+ map->c_keyhead = head;
+ map->create = 1;
+}
+
+/** Set the map's key to two strings.
+ * This sets the current element based on a key of two strings. If the keys are
+ * not found, a new element will not be created until a <i>_stp_map_set_xxx</i>
+ * call.
+ * @param map
+ * @param key1 first key
+ * @param key2 second key
+ */
+
+void _stp_map_key_str_str(MAP map, char *key1, char *key2)
+{
+ unsigned hv;
+ struct hlist_head *head;
+ struct hlist_node *e;
+
+ if (map == NULL)
+ return;
+
+ if (key1 == NULL) {
+ map->key = NULL;
+ return;
+ }
+
+ hv = string_hash(key1, key2);
+ head = &map->hashes[hv];
+
+ dbug ("hash for %s,%s is %d\n", key1, key2, hv);
+
+ hlist_for_each(e, head) {
+ struct map_node *n =
+ (struct map_node *)((long)e - sizeof(struct hlist_node));
+ dbug ("e =%lx key=%s,%s\n", (long)e, n->key1.str,n->key2.str);
+ if (strcmp(key1, n->key1.str) == 0
+ && (key2 == NULL || strcmp(key2, n->key2.str) == 0)) {
+ map->key = n;
+ dbug ("saving key %lx\n", (long)map->key);
+ map->create = 0;
+ return;
+ }
+ }
+
+ map->c_key1.str = key1;
+ map->c_key2.str = key2;
+ map->c_key1type = STR;
+ map->c_key2type = STR;
+ map->c_keyhead = head;
+ map->create = 1;
+}
+
+/** Set the map's key to a string and a long.
+ * This sets the current element based on a key of a string and a long. If the keys are
+ * not found, a new element will not be created until a <i>_stp_map_set_xxx</i>
+ * call.
+ * @param map
+ * @param key1 first key
+ * @param key2 second key
+ */
+
+void _stp_map_key_str_long(MAP map, char *key1, long key2)
+{
+ unsigned hv;
+ struct hlist_head *head;
+ struct hlist_node *e;
+
+ if (map == NULL)
+ return;
+
+ if (key1 == NULL) {
+ map->key = NULL;
+ return;
+ }
+
+ hv = mixed_hash(key1, key2);
+ head = &map->hashes[hv];
+
+ dbug ("hash for %s,%ld is %d\n", key1, key2, hv);
+
+ hlist_for_each(e, head) {
+ struct map_node *n =
+ (struct map_node *)((long)e - sizeof(struct hlist_node));
+ dbug ("e =%lx key=%s,%ld\n", (long)e, n->key1.str,(long)n->key2.val);
+ if (strcmp(key1, n->key1.str) == 0 && key2 == n->key2.val) {
+ map->key = n;
+ dbug ("saving key %lx\n", (long)map->key);
+ map->create = 0;
+ return;
+ }
+ }
+
+ map->c_key1.str = key1;
+ map->c_key2.val = key2;
+ map->c_key1type = STR;
+ map->c_key2type = LONG;
+ map->c_keyhead = head;
+ map->create = 1;
+}
+
+/** Set the map's key to a long and a string.
+ * This sets the current element based on a key of a long and a string. If the keys are
+ * not found, a new element will not be created until a <i>_stp_map_set_xxx</i>
+ * call.
+ * @param map
+ * @param key1 first key
+ * @param key2 second key
+ */
+
+void _stp_map_key_long_str(MAP map, long key1, char *key2)
+{
+ unsigned hv;
+ struct hlist_head *head;
+ struct hlist_node *e;
+
+ if (map == NULL)
+ return;
+
+ hv = mixed_hash(key2, key1);
+ head = &map->hashes[hv];
+ dbug ("hash for %ld,%s is %d\n", key1, key2, hv);
+
+ hlist_for_each(e, head) {
+ struct map_node *n =
+ (struct map_node *)((long)e - sizeof(struct hlist_node));
+ dbug ("e =%lx key=%ld,%s\n", (long)e, n->key1.val,n->key2.str);
+ if (key1 == n->key1.val && strcmp(key2, n->key2.str) == 0) {
+ map->key = n;
+ dbug ("saving key %lx\n", (long)map->key);
+ map->create = 0;
+ return;
+ }
+ }
+
+ map->c_key1.val = key1;
+ map->c_key2.str = key2;
+ map->c_key1type = LONG;
+ map->c_key2type = STR;
+ map->c_keyhead = head;
+ map->create = 1;
+}
+
+/** Set the map's key to a string.
+ * This sets the current element based on a string key. If the key is
+ * not found, a new element will not be created until a <i>_stp_map_set_xxx</i>
+ * call.
+ * @param map
+ * @param key
+ */
+
+void _stp_map_key_str(MAP map, char *key)
+{
+ if (map == NULL)
+ return;
+ _stp_map_key_str_str(map, key, NULL);
+ map->c_key2type = NONE;
+}
+
+/** Set the map's key to a long.
+ * This sets the current element based on a long key. If the key is
+ * not found, a new element will not be created until a <i>_stp_map_set_xxx</i>
+ * call.
+ * @param map
+ * @param key
+ */
+
+void _stp_map_key_long(MAP map, long key)
+{
+ if (map == NULL)
+ return;
+ _stp_map_key_long_long(map, key, 0);
+ map->c_key2type = NONE;
+}
+
+/********************** SET/GET VALUES *********************/
+
+static void map_copy_keys(MAP map, struct map_node *m)
+{
+ m->key1type = map->c_key1type;
+ m->key2type = map->c_key2type;
+ switch (map->c_key1type) {
+ case STR:
+ m->key1.str = _stp_alloc(strlen(map->c_key1.str) + 1);
+ strcpy(m->key1.str, map->c_key1.str);
+ break;
+ case LONG:
+ m->key1.val = map->c_key1.val;
+ break;
+ case NONE:
+ /* ERROR */
+ break;
+ }
+ switch (map->c_key2type) {
+ case STR:
+ m->key2.str = _stp_alloc(strlen(map->c_key2.str) + 1);
+ strcpy(m->key2.str, map->c_key2.str);
+ break;
+ case LONG:
+ m->key2.val = map->c_key2.val;
+ break;
+ case NONE:
+ break;
+ }
+
+ /* add node to new hash list */
+ hlist_add_head(&m->hnode, map->c_keyhead);
+
+ map->key = m;
+ map->create = 0;
+ map->num++;
+}
+
+/** Set the current element's value to an int64.
+ * This sets the current element's value to an int64. The map must have been created
+ * to hold int64s using _stp_map_new()
+ *
+ * If the element doesn't exist, it is created. If no current element (key)
+ * is set for the map, this function does nothing.
+ * @param map
+ * @param val new value
+ */
+
+void _stp_map_set_int64(MAP map, int64_t val)
+{
+ struct map_node_int64 *m;
+
+ if (map == NULL)
+ return;
+
+ if (map->create) {
+ if (val == 0)
+ return;
+
+ if (map->maxnum) {
+ if (list_empty(&map->pool)) {
+ if (map->no_wrap) {
+ /* ERROR. FIXME */
+ return;
+ }
+ m = (struct map_node_int64 *)map->head.next;
+ hlist_del_init(&m->n.hnode);
+ map_free_strings(map, (struct map_node *)m);
+ dbug ("got %lx off head\n", (long)m);
+ } else {
+ m = (struct map_node_int64 *)map->pool.next;
+ dbug ("got %lx off pool\n", (long)m);
+ }
+ list_move_tail(&m->n.lnode, &map->head);
+ } else {
+ m = (struct map_node_int64 *)
+ _stp_calloc(sizeof(struct map_node_int64));
+ /* add node to list */
+ list_add_tail(&m->n.lnode, &map->head);
+ }
+
+ /* copy the key(s) */
+ map_copy_keys(map, &m->n);
+
+ /* set the value */
+ m->val = val;
+ } else {
+ if (map->key == NULL)
+ return;
+
+ if (val) {
+ m = (struct map_node_int64 *)map->key;
+ m->val = val;
+ } else {
+ /* setting value to 0 is the same as deleting */
+ _stp_map_key_del(map);
+ }
+ }
+}
+
+/** Gets the current element's value.
+ * @param map
+ * @returns The value. If the current element is not set or doesn't exist, returns 0.
+ */
+
+int64_t _stp_map_get_int64(MAP map)
+{
+ struct map_node_int64 *m;
+ if (map == NULL || map->create || map->key == NULL)
+ return 0;
+ dbug ("%lx\n", (long)map->key);
+ m = (struct map_node_int64 *)map->key;
+ return m->val;
+}
+
+/** Set the current element's value to a string.
+ * This sets the current element's value to an string. The map must have been created
+ * to hold int64s using <i>_stp_map_new(xxx, STRING)</i>
+ *
+ * If the element doesn't exist, it is created. If no current element (key)
+ * is set for the map, this function does nothing.
+ * @param map
+ * @param val new string
+ */
+
+void _stp_map_set_str(MAP map, char *val)
+{
+ struct map_node_str *m;
+
+ if (map == NULL)
+ return;
+
+ if (map->create) {
+ if (val == NULL)
+ return;
+
+ if (map->maxnum) {
+ if (list_empty(&map->pool)) {
+ if (map->no_wrap) {
+ /* ERROR. FIXME */
+ return;
+ }
+ m = (struct map_node_str *)map->head.next;
+ hlist_del_init(&m->n.hnode);
+ map_free_strings(map, (struct map_node *)m);
+ dbug ("got %lx off head\n", (long)m);
+ } else {
+ m = (struct map_node_str *)map->pool.next;
+ dbug ("got %lx off pool\n", (long)m);
+ }
+ list_move_tail(&m->n.lnode, &map->head);
+ } else {
+ m = (struct map_node_str *)
+ _stp_calloc(sizeof(struct map_node_str));
+ /* add node to list */
+ list_add_tail(&m->n.lnode, &map->head);
+ }
+
+ /* copy the key(s) */
+ map_copy_keys(map, &m->n);
+
+ /* set the value */
+ m->str = _stp_alloc(strlen(val) + 1);
+ strcpy(m->str, val);
+ } else {
+ if (map->key == NULL)
+ return;
+
+ if (val) {
+ m = (struct map_node_str *)map->key;
+ if (m->str)
+ _stp_free(m->str);
+ m->str = _stp_alloc(strlen(val) + 1);
+ strcpy(m->str, val);
+ } else {
+ /* setting value to 0 is the same as deleting */
+ _stp_map_key_del(map);
+ }
+ }
+}
+
+/** Gets the current element's value.
+ * @param map
+ * @returns A string pointer. If the current element is not set or doesn't exist, returns NULL.
+ */
+
+char *_stp_map_get_str(MAP map)
+{
+ struct map_node_str *m;
+ if (map == NULL || map->create || map->key == NULL)
+ return NULL;
+ dbug ("%lx\n", (long)map->key);
+ m = (struct map_node_str *)map->key;
+ return m->str;
+}
+
+/** Set the current element's value to a stat.
+ * This sets the current element's value to an stat struct. The map must have been created
+ * to hold stats using <i>_stp_map_new(xxx, STAT)</i>. This function would only be used
+ * if we wanted to set stats to something other than the normal initial values (count = 0,
+ * sum = 0, etc). It may be deleted if it doesn't turn out to be useful.
+ * @sa _stp_map_stat_add
+ *
+ * If the element doesn't exist, it is created. If no current element (key)
+ * is set for the map, this function does nothing.
+ * @param map
+ * @param stats pointer to stats struct.
+ * @todo Histograms don't work yet.
+ */
+
+void _stp_map_set_stat(MAP map, stat * stats)
+{
+ struct map_node_stat *m;
+
+ if (map == NULL)
+ return;
+ dbug ("set_stat %lx\n", (long)map->key);
+
+ if (map->create) {
+ if (stats == NULL)
+ return;
+
+ if (map->maxnum) {
+ if (list_empty(&map->pool)) {
+ if (map->no_wrap) {
+ /* ERROR. FIXME */
+ return;
+ }
+ m = (struct map_node_stat *)map->head.next;
+ hlist_del_init(&m->n.hnode);
+ map_free_strings(map, (struct map_node *)m);
+ dbug ("got %lx off head\n", (long)m);
+ } else {
+ m = (struct map_node_stat *)map->pool.next;
+ dbug ("got %lx off pool\n", (long)m);
+ }
+ list_move_tail(&m->n.lnode, &map->head);
+ } else {
+ m = (struct map_node_stat *)
+ _stp_calloc(sizeof(struct map_node_stat));
+ /* add node to list */
+ list_add_tail(&m->n.lnode, &map->head);
+ }
+
+ /* copy the key(s) */
+ map_copy_keys(map, &m->n);
+
+ /* set the value */
+ memcpy(&m->stats, stats, sizeof(stat));
+ } else {
+ if (map->key == NULL)
+ return;
+
+ if (stats) {
+ m = (struct map_node_stat *)map->key;
+ memcpy(&m->stats, stats, sizeof(stat));
+ } else {
+ /* setting value to NULL is the same as deleting */
+ _stp_map_key_del(map);
+ }
+ }
+}
+
+/** Gets the current element's value.
+ * @param map
+ * @returns A pointer to the stats struct. If the current element is not set
+ * or doesn't exist, returns NULL.
+ */
+
+stat *_stp_map_get_stat(MAP map)
+{
+ struct map_node_stat *m;
+ if (map == NULL || map->create || map->key == NULL)
+ return NULL;
+ dbug ("%lx\n", (long)map->key);
+ m = (struct map_node_stat *)map->key;
+ return &m->stats;
+}
+
+/** Add to the current element's statistics.
+ * Increments the statistics counter by one and the sum by <i>val</i>.
+ * Adjusts minimum, maximum, and histogram.
+ *
+ * If the element doesn't exist, it is created. If no current element (key)
+ * is set for the map, this function does nothing.
+ * @param map
+ * @param val value to add to the statistics
+ * @todo Histograms don't work yet.
+ */
+
+void _stp_map_stat_add(MAP map, int64_t val)
+{
+ struct map_node_stat *m;
+ if (map == NULL)
+ return;
+
+ if (map->create) {
+ stat st = { 1, val, val, val };
+ /* histogram */
+ _stp_map_set_stat(map, &st);
+ return;
+ }
+
+ if (map->key == NULL)
+ return;
+
+ dbug ("add_stat %lx\n", (long)map->key);
+ m = (struct map_node_stat *)map->key;
+ m->stats.count++;
+ m->stats.sum += val;
+ if (val > m->stats.max)
+ m->stats.max = val;
+ if (val < m->stats.min)
+ m->stats.min = val;
+ /* histogram */
+}
+
+/********************** List Functions *********************/
+
+/** Create a new list.
+ * A list is a map that internally has an incrementing long key for each member.
+ * Lists do not wrap if elements are added to exceed their maximum size.
+ * @param max_entries The maximum number of entries allowed. Currently that number will
+ * be preallocated. If max_entries is 0, there will be no maximum and entries
+ * will be allocated dynamically.
+ * @param type Type of values stored in this list.
+ * @return A MAP on success or NULL on failure.
+ * @sa foreach
+ */
+
+MAP _stp_list_new(unsigned max_entries, enum valtype type)
+{
+ MAP map = _stp_map_new (max_entries, type);
+ map->no_wrap = 1;
+ return map;
+}
+
+/** Clears a list.
+ * All elements in the list are deleted.
+ * @param map
+ */
+
+inline void _stp_list_clear(MAP map)
+{
+ if (map == NULL)
+ return;
+
+ if (!list_empty(&map->head)) {
+ struct map_node *ptr = (struct map_node *)map->head.next;
+
+ while (ptr && ptr != (struct map_node *)&map->head) {
+ struct map_node *next = (struct map_node *)ptr->lnode.next;
+
+ /* remove node from old hash list */
+ hlist_del_init(&ptr->hnode);
+
+ /* remove from entry list */
+ list_del(&ptr->lnode);
+
+ /* remove any allocated string storage */
+ map_free_strings(map, ptr);
+
+ if (map->maxnum)
+ list_add(&ptr->lnode, &map->pool);
+ else
+ _stp_free(ptr);
+
+ map->num--;
+ ptr = next;
+ }
+ }
+
+ if (map->num != 0) {
+ dlog ("ERROR: list is supposed to be empty (has %d)\n", map->num);
+ }
+}
+
+/** Adds a string to a list.
+ * @param map
+ * @param str
+ */
+
+inline void _stp_list_add_str(MAP map, char *str)
+{
+ _stp_map_key_long(map, map->num);
+ _stp_map_set_str(map, str);
+}
+
+/** Adds an int64 to a list.
+ * @param map
+ * @param val
+ */
+
+inline void _stp_list_add_int64(MAP map, int64_t val)
+{
+ _stp_map_key_long(map, map->num);
+ _stp_map_set_int64(map, val);
+}
+
+/** Get the number of elements in a list.
+ * @param map
+ * @returns The number of elements in a list.
+ */
+
+inline int _stp_list_size(MAP map)
+{
+ return map->num;
+}
diff --git a/runtime/map.h b/runtime/map.h
new file mode 100644
index 00000000..617ff3e2
--- /dev/null
+++ b/runtime/map.h
@@ -0,0 +1,141 @@
+/* -*- linux-c -*- */
+#include <linux/types.h>
+
+typedef struct {
+ int64_t count;
+ int64_t sum;
+ int64_t min, max;
+ int64_t histogram[BUCKETS];
+} stat;
+
+union key_data {
+ long val;
+ char *str;
+};
+
+enum keytype { NONE, LONG, STR } __attribute__ ((packed));
+enum valtype { INT64, STAT, STRING, END };
+
+/* all map nodes have the following structure */
+struct map_node {
+ struct list_head lnode;
+ struct hlist_node hnode;
+ union key_data key1;
+ union key_data key2;
+ enum keytype key1type;
+ enum keytype key2type;
+};
+
+/* specific map nodes with data attached */
+struct map_node_int64 {
+ struct map_node n;
+ int64_t val;
+};
+
+struct map_node_str {
+ struct map_node n;
+ char *str;
+};
+
+struct map_node_stat {
+ struct map_node n;
+ stat stats;
+};
+
+struct map_root {
+ /* type of the values stored in the array */
+ enum valtype type;
+
+ /* maximum number of elements allowed in the array. */
+ int maxnum;
+
+ /* current number of elements */
+ int num;
+
+ /* when more than maxnum elements, wrap or discard */
+ int no_wrap;
+
+ /* linked list of current entries */
+ struct list_head head;
+
+ /* pool of unused entries. Used only when entries are statically allocated */
+ /* at startup. */
+ struct list_head pool;
+
+ /* saved key entry for lookups */
+ struct map_node *key;
+
+ /* this is the creation data saved between the key functions and the */
+ /* set/get functions */
+ u_int8_t create;
+ enum keytype c_key1type;
+ enum keytype c_key2type;
+ struct hlist_head *c_keyhead;
+ union key_data c_key1;
+ union key_data c_key2;
+
+ /* the hash table for this array */
+ struct hlist_head hashes[HASH_TABLE_SIZE];
+
+ /* pointer to allocated memory space */
+ void *membuf;
+};
+
+typedef struct map_root *MAP;
+
+#define key1str(ptr) (ptr->n.key1.str)
+#define key2str(ptr) (ptr->n.key2.str)
+#define key1int(ptr) (ptr->n.key1.val)
+#define key2int(ptr) (ptr->n.key2.val)
+
+#define _stp_map_key2(map, key1, key2) \
+ ({ \
+ if (__builtin_types_compatible_p (typeof (key1), char[])) \
+ if (__builtin_types_compatible_p (typeof (key2), char[])) \
+ _stp_map_key_str_str (map, (char *)(key1), (char *)(key2)); \
+ else \
+ _stp_map_key_str_long (map, (char *)(key1), (long)(key2)); \
+ else \
+ if (__builtin_types_compatible_p (typeof (key2), char[])) \
+ _stp_map_key_long_str (map, (long)(key1), (char *)(key2)); \
+ else \
+ _stp_map_key_long_long (map, (long)(key1), (long)(key2)); \
+ })
+
+#define _stp_map_key(map, key) \
+ ({ \
+ if (__builtin_types_compatible_p (typeof (key), char[])) \
+ _stp_map_key_str (map, (char *)(key)); \
+ else \
+ _stp_map_key_long (map, (long)(key)); \
+ })
+
+#define _stp_map_set(map, val) \
+ ({ \
+ if (__builtin_types_compatible_p (typeof (val), char[])) \
+ _stp_map_set_str (map, (char *)(val)); \
+ else \
+ _stp_map_set_int64 (map, (int64_t)(val)); \
+ })
+
+#define _stp_list_add(map, val) \
+ ({ \
+ if (__builtin_types_compatible_p (typeof (val), char[])) \
+ _stp_list_add_str (map, (char *)(val)); \
+ else \
+ _stp_list_add_int64 (map, (int64_t)(val)); \
+ })
+
+
+/** Loop through all elements of a map.
+ * @param map
+ * @param ptr pointer to a map_node_stat, map_node_int64 or map_node_str
+ *
+ * @b Example:
+ * @include foreach.c
+ */
+
+#define foreach(map, ptr) \
+ for (ptr = (typeof(ptr))_stp_map_start(map); ptr; \
+ ptr = (typeof(ptr))_stp_map_iter (map, (struct map_node *)ptr))
+
diff --git a/runtime/runtime.h b/runtime/runtime.h
new file mode 100644
index 00000000..0876512f
--- /dev/null
+++ b/runtime/runtime.h
@@ -0,0 +1,18 @@
+
+#include <linux/module.h>
+#include <linux/miscdevice.h>
+#include <linux/init.h>
+#include <linux/hash.h>
+#include <linux/string.h>
+#include <linux/kprobes.h>
+#include <linux/proc_fs.h>
+#include <linux/vmalloc.h>
+#include <linux/time.h>
+#include <linux/spinlock.h>
+#include <asm/uaccess.h>
+
+#include "alloc.h"
+#include "map.h"
+
+#define dbug(args...) ;
+
diff --git a/runtime/tests/Makefile b/runtime/tests/Makefile
new file mode 100644
index 00000000..4e744d25
--- /dev/null
+++ b/runtime/tests/Makefile
@@ -0,0 +1,3 @@
+tests:
+ tclsh all.tcl
+
diff --git a/runtime/tests/README b/runtime/tests/README
new file mode 100644
index 00000000..a9457011
--- /dev/null
+++ b/runtime/tests/README
@@ -0,0 +1,4 @@
+The *.c files test associative arrays (maps). "make tests" to run.
+
+test4_probe and shellsnoop are sample probes that use the new runtime.
+
diff --git a/runtime/tests/all.tcl b/runtime/tests/all.tcl
new file mode 100644
index 00000000..2d44d6bb
--- /dev/null
+++ b/runtime/tests/all.tcl
@@ -0,0 +1,11 @@
+package require tcltest
+namespace import -force tcltest::*
+
+puts "Running all SystemTap tests"
+
+#puts [tcltest::configure]
+#puts [tcltest::configure -file]
+
+tcltest::runAllTests
+
+puts "All tests completed"
diff --git a/runtime/tests/map.test b/runtime/tests/map.test
new file mode 100644
index 00000000..1cbb7367
--- /dev/null
+++ b/runtime/tests/map.test
@@ -0,0 +1,385 @@
+package require tcltest
+namespace import -force tcltest::*
+
+set CFLAGS {-O3}
+
+test long_int64_1 {Test of long keys and int64 values} -setup {
+ exec gcc $CFLAGS -o test testl64.c
+} -body {
+ exec ./test
+} -result {mymap[1]=2
+mymap[101]=202 mymap[1]=2 mymap[42]=83
+mymap[42]=84
+mymap[1024]=2048
+mymap[1024]=0
+mymap[10]=0
+
+mymap[1] = 2
+mymap[42] = 84
+mymap[101] = 202
+
+mymap[42] = 84
+mymap[101] = 202
+
+mymap[101] = 202
+
+
+mymap[10]=20
+mymap[0] = 100
+mymap[1] = 102
+mymap[2] = 104
+mymap[3] = 106
+
+mymap[5] = 1005
+mymap[382] = 1382
+mymap[526] = 1526
+mymap[903] = 1903
+
+mymap[5] = 1005
+mymap[526] = 1526
+mymap[903] = 1903
+
+mymap[526] = 1526
+mymap[903] = 1903
+
+mymap[526] = 1526
+}
+
+test long_int64_2 {Range test of long keys and int64 values} -setup {
+ exec gcc $CFLAGS -o test testl64R.c
+} -body {
+ exec ./test
+} -result {mymap[1] = -9223372036854775808
+mymap[2] = 9223372036854775807
+mymap[4] = -1
+mymap[5] = 5
+mymap[999996] = 1999992
+mymap[999997] = 1999994
+mymap[999998] = 1999996
+mymap[999999] = 1999998}
+
+# same test as long_int64_1, except dynamic alloc
+test long_int64_3 {Test of long keys and int64 values, dynamic allocation} -setup {
+ exec gcc $CFLAGS -o test testl64_alloc.c
+} -body {
+ exec ./test
+} -result {mymap[1]=2
+mymap[101]=202 mymap[1]=2 mymap[42]=83
+mymap[42]=84
+mymap[1024]=2048
+mymap[1024]=0
+mymap[10]=0
+
+mymap[1] = 2
+mymap[42] = 84
+mymap[101] = 202
+
+mymap[42] = 84
+mymap[101] = 202
+
+mymap[101] = 202
+
+
+mymap[10]=20
+mymap[10] = 20
+mymap[0] = 100
+mymap[1] = 102
+mymap[2] = 104
+mymap[3] = 106
+
+mymap[5] = 1005
+mymap[382] = 1382
+mymap[526] = 1526
+mymap[903] = 1903
+
+mymap[5] = 1005
+mymap[526] = 1526
+mymap[903] = 1903
+
+mymap[526] = 1526
+mymap[903] = 1903
+
+mymap[526] = 1526
+}
+
+test long_long_int64_1 {Test of long,long keys and int64 values} -setup {
+ exec gcc $CFLAGS -o test testll64.c
+} -body {
+ exec ./test
+} -result {mymap[1,1]=1
+mymap[1,2]=2
+mymap[2,1]=3
+mymap[1,1] = 1
+mymap[1,2] = 2
+mymap[2,1] = 3}
+
+test str_int64_4 {Test of string keys and int64 values} -setup {
+ exec gcc $CFLAGS -o test teststr.c
+} -body {
+ exec ./test
+} -result {mymap[two]=2
+mymap[two-oh-two]=202 mymap[two]=2 mymap[eighty-four]=83
+mymap[eighty-four]=84
+
+mymap[two] = 2
+mymap[eighty-four] = 84
+mymap[two-oh-two] = 202
+mymap[0123456789] = 1000000
+mymap[2048]=2048
+mymap[2048]=0
+mymap[10]=0
+
+mymap[eighty-four] = 84
+mymap[two-oh-two] = 202
+mymap[0123456789] = 1000000
+
+mymap[eighty-four] = 84
+mymap[0123456789] = 1000000
+
+mymap[0123456789] = 1000000
+
+
+mymap[Ohio]=10123456
+mymap[Ohio] = 10123456
+
+mymap[test_number_0] = 1000
+mymap[test_number_1] = 1001
+mymap[test_number_2] = 1002
+mymap[test_number_3] = 1003}
+
+test str_str_int64_1 {Test of string,string keys and int64 values} -setup {
+ exec gcc $CFLAGS -o test teststrstr.c
+} -body {
+ exec ./test
+} -result {mymap[two,three]=6
+mymap[two-oh-two,four]=808 mymap[two,three]=6 mymap[eighty-four,two]=167
+mymap[eighty-four,two]=168
+
+mymap[two,three] = 6
+mymap[eighty-four,two] = 168
+mymap[two-oh-two,four] = 808
+mymap[0123456789,foo] = 1000000
+mymap[2048,2]=4096
+mymap[2048,2]=0
+mymap[10,six]=0
+
+mymap[eighty-four,two] = 168
+mymap[two-oh-two,four] = 808
+mymap[0123456789,foo] = 1000000
+
+mymap[eighty-four,two] = 168
+mymap[0123456789,foo] = 1000000
+
+mymap[eighty-four,two] = 168
+mymap[0123456789,foo] = 1000000
+mymap[Ohio,1801] = 10123456
+
+mymap[test_number_2,**test number 4**] = 8
+mymap[test_number_3,**test number 9**] = 27
+mymap[test_number_4,**test number 16**] = 64
+mymap[test_number_5,**test number 25**] = 125}
+
+
+test str_long_int64_1 {Test of string,long keys and int64 values} -setup {
+ exec gcc $CFLAGS -o test teststrlong.c
+} -body {
+ exec ./test
+} -result {map[two,3]=6
+map[two-oh-two,4]=808
+map[two,3]=6
+map[eighty-four,2]=167
+map[eighty-four,2]=168
+
+map[two,3] = 6
+map[eighty-four,2] = 168
+map[two-oh-two,4] = 808
+map[0123456789,4444] = 1000000
+
+map[2048,2]=4096
+mymap[2048,2]=0
+mymap[six,10]=0
+
+map[eighty-four,2] = 168
+map[two-oh-two,4] = 808
+map[0123456789,4444] = 1000000
+
+
+map[eighty-four,2] = 168
+map[0123456789,4444] = 1000000
+
+
+map[eighty-four,2] = 168
+map[0123456789,4444] = 1000000
+map[Ohio,1801] = 10123456
+
+
+map[test_number_2,2] = 8
+map[test_number_3,3] = 27
+map[test_number_4,4] = 64
+map[test_number_5,5] = 125
+
+Should be empty:
+}
+
+
+test long_str_int64_1 {Test of long,string keys and int64 values} -setup {
+ exec gcc $CFLAGS -o test testlongstr.c
+} -body {
+ exec ./test
+} -result {map[3,two]=6
+map[4,two-oh-two]=808
+map[3,two]=6
+map[2,eighty-four]=167
+map[2,eighty-four]=168
+
+map[3,two] = 6
+map[2,eighty-four] = 168
+map[4,two-oh-two] = 808
+map[4444,0123456789] = 1000000
+
+map[2048,2]=4096
+mymap[2048,2]=0
+mymap[10,six]=0
+
+map[2,eighty-four] = 168
+map[4,two-oh-two] = 808
+map[4444,0123456789] = 1000000
+
+
+map[2,eighty-four] = 168
+map[4444,0123456789] = 1000000
+
+
+map[2,eighty-four] = 168
+
+
+
+
+map[1801,Ohio] = 10123456
+
+
+map[2,test_number_2] = 8
+map[3,test_number_3] = 27
+map[4,test_number_4] = 64
+map[5,test_number_5] = 125
+
+Should be empty:
+}
+
+test str_str_str_1 {Test of string,string keys and string values} -setup {
+ exec gcc $CFLAGS -o test teststrstrstr.c
+} -body {
+ exec ./test
+} -result {map[two,2]=four
+map[two-two-one-B,Baker Street]=7% solution
+map[two,2]=four
+map[eighty-four,nineteen hundred]=nineteen hundred and eighty-three
+map[eighty-four,nineteen hundred]=nineteen hundred and eighty-four
+
+map[two,2] = four
+map[eighty-four,nineteen hundred] = nineteen hundred and eighty-four
+map[two-two-one-B,Baker Street] = 7% solution
+map[0123456789,4444] = 1000000
+
+map[2048,2]=4096
+mymap[2048,2]=(null)
+mymap[six,10]=(null)
+
+map[eighty-four,nineteen hundred] = nineteen hundred and eighty-four
+map[two-two-one-B,Baker Street] = 7% solution
+map[0123456789,4444] = 1000000
+
+
+map[eighty-four,nineteen hundred] = nineteen hundred and eighty-four
+map[0123456789,4444] = 1000000
+
+
+map[eighty-four,nineteen hundred] = nineteen hundred and eighty-four
+map[0123456789,4444] = 1000000
+map[abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ,(null)] = TESTING 1,2,3
+map[abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZhiasdhgfiudsgfiusdgfisdugfisdugfsdiufgsdfiugsdifugsdiufgsdiufgisdugfisdugfigsdfiusdgfiugsdifu sdfigsdifugsdifugsdiufgsdiufgisdugfiudsgfisudgfiusdgfiusdgfisdugfisdufgiusdfgsdiufgdsiufgsdiufgsdiufgsdiufgwiugfw89e4rf98yf897ywef98wyef98wyf98wyf89ys9d8yfsd sdfysd98fy9s8fyds98fy98dsfy89sdfy,yw98fty98sfts98d7fts89d7f9sdfoooooooooooooooooooooooooooooooooooooooooooof8eo7stfew87fwet8tw87rf7fpowft7ewfptpwefpwetfpwepwfwetfp8we] = TESTING 1,2,3 ***************************************************************************************************************************************************************************************************************************************************************************** 4,5,6
+
+
+map[test_number_2,TEST_NUMBER_4] = TEST_NUMBER_8
+map[test_number_3,TEST_NUMBER_9] = TEST_NUMBER_27
+map[test_number_4,TEST_NUMBER_16] = TEST_NUMBER_64
+map[test_number_5,TEST_NUMBER_25] = TEST_NUMBER_125
+
+Should be empty:
+}
+
+test stat_1 {Test of string,long keys and stat values} -setup {
+ exec gcc $CFLAGS -o test teststat.c
+} -body {
+ exec ./test
+} -result {map[created with set,2001] = [c=5 s=125 minmax =2,42]
+map[created with set,2001] = [c=6 s=142 minmax =2,42]
+map[created with add,2020] = [c=1 s=1700 minmax =1700,1700]
+map[created with add,2020] = [c=2 s=1702 minmax =2,1700]
+map[created with add,2020] = [c=3 s=4047 minmax =2,2345]
+
+map[created with set,2001] = [c=6 s=142 minmax =2,42]
+map[created with add,2020] = [c=3 s=4047 minmax =2,2345]
+
+
+map[created with add,2020] = [c=3 s=4047 minmax =2,2345]
+
+
+map[created with add,2020] = [c=5 s=123456 minmax =2,42]
+
+
+
+map[created with add,1234] = [c=2 s=100 minmax =42,58]
+
+map[created with add,1234] = [c=2 s=100 minmax =42,58]
+}
+
+test list_1 {Test of List of string values} -setup {
+ exec gcc $CFLAGS -o test testlist.c
+} -body {
+ exec ./test
+} -result {map[0] = Item0
+map[1] = Item1
+map[2] = Item2
+map[3] = Item3
+map[4] = Item4
+map[5] = Item5
+map[6] = Item6
+map[7] = Item7
+map[8] = Item8
+map[9] = Item9
+
+size is 10
+map[0] = Item0
+map[1] = Item1
+map[2] = Item2
+map[3] = Item3
+map[4] = Item4
+map[5] = Item5
+map[6] = Item6
+map[7] = Item7
+map[8] = Item8
+map[9] = Item9
+
+map[0] = Item0
+map[1] = Item1
+map[2] = Item2
+map[3] = Item3
+map[4] = Item4
+map[5] = Item5
+map[6] = Item6
+map[7] = Item7
+map[8] = Item8
+map[9] = Item9
+
+
+map[0] = Item50
+map[1] = Item51
+map[2] = Item52
+map[3] = Item53
+map[4] = Item54
+}
+
+exec rm test
+
+cleanupTests
diff --git a/runtime/tests/shellsnoop/Makefile b/runtime/tests/shellsnoop/Makefile
new file mode 100644
index 00000000..86d61266
--- /dev/null
+++ b/runtime/tests/shellsnoop/Makefile
@@ -0,0 +1,9 @@
+# Makefile
+#
+# make -C path/to/kernel/src M=`pwd` modules
+
+obj-m := dtr.o
+
+
+
+
diff --git a/runtime/tests/shellsnoop/README b/runtime/tests/shellsnoop/README
new file mode 100644
index 00000000..ce37a2db
--- /dev/null
+++ b/runtime/tests/shellsnoop/README
@@ -0,0 +1,70 @@
+Sample probe.
+
+To build, edit the path in buildit and the addresses in struct dtr_probes
+in dtr.c Then "source buildit"
+
+This is a translation of on an old dtr probe:
+
+# shellsnoop.probe - snoop shell execution as it occurs.
+# clone of dtrace shellsnoop example
+
+global {
+ long @pids[long];
+}
+
+probe do_execve:entry {
+ char __user *vstr;
+ char str[256];
+ int len;
+
+ /* watch shells only */
+ /* FIXME: detect more shells, like csh, tcsh, zsh */
+
+ if (!strcmp(current->comm,"bash") || !strcmp(current->comm,"sh") || !strcmp(current->comm, "zsh")
+ || !strcmp(current->comm, "tcsh") || !strcmp(current->comm, "pdksh"))
+ {
+ dlog ("%d\t%d\t%d\t%s ", current->uid, current->pid, current->parent->pid, filename);
+ @pids[current->pid] = 1;
+
+ /* print out argv, ignoring argv[0] */
+ if (argv) argv++;
+ while (argv != NULL)
+ {
+ if (get_user (vstr, argv))
+ break;
+ if (!vstr)
+ break;
+ len = dtr_strncpy_from_user(str, vstr, 256);
+ str[len] = 0;
+ printk ("%s ", str);
+ argv++;
+ }
+ printk ("\n");
+ }
+}
+
+# use filp_open because copy_from_user not needed there
+probe filp_open:entry {
+ if (@pids[current->pid])
+ dlog ("%d\t%d\t%s\tO %s\n", current->pid, current->parent->pid, current->comm, filename);
+}
+
+probe sys_read:entry {
+ if (@pids[current->pid])
+ dlog ("%d\t%d\t%s\tR %d\n", current->pid, current->parent->pid, current->comm, fd);
+}
+
+probe sys_write:entry {
+ size_t len;
+ char str[256];
+ if (@pids[current->pid])
+ {
+ if (count < 64) len = count;
+ else len = 64;
+ if (len = dtr_strncpy_from_user(str, buf, len)) {
+ str[len] = 0;
+ dlog ("%d\t%d\t%s\tW %s\n", current->pid, current->parent->pid, current->comm, str);
+ }
+ }
+}
+
diff --git a/runtime/tests/shellsnoop/buildit b/runtime/tests/shellsnoop/buildit
new file mode 100644
index 00000000..8d90a0ec
--- /dev/null
+++ b/runtime/tests/shellsnoop/buildit
@@ -0,0 +1 @@
+make -C /lib/modules/2.6.10-1.770_FC3smp/build M=`pwd`
diff --git a/runtime/tests/shellsnoop/dtr.c b/runtime/tests/shellsnoop/dtr.c
new file mode 100644
index 00000000..790a907a
--- /dev/null
+++ b/runtime/tests/shellsnoop/dtr.c
@@ -0,0 +1,130 @@
+#define HASH_TABLE_BITS 8
+#define HASH_TABLE_SIZE (1<<HASH_TABLE_BITS)
+#define BUCKETS 16 /* largest histogram width */
+#include "../../runtime.h"
+
+#include "../../io.c"
+#include "../../map.c"
+#include "../../copy.c"
+
+MODULE_PARM_DESC(dtr, "\n");
+
+MAP pids, arglist ;
+
+int inst_do_execve (char * filename, char __user *__user *argv, char __user *__user *envp, struct pt_regs * regs)
+{
+ struct map_node_str *ptr;
+
+ /* watch shells only */
+ /* FIXME: detect more shells, like csh, tcsh, zsh */
+
+ if (!strcmp(current->comm,"bash") || !strcmp(current->comm,"sh") || !strcmp(current->comm, "zsh")
+ || !strcmp(current->comm, "tcsh") || !strcmp(current->comm, "pdksh"))
+ {
+ dlog ("%d\t%d\t%d\t%s ", current->uid, current->pid, current->parent->pid, filename);
+
+ _stp_map_key_long (pids, current->pid);
+ _stp_map_set_int64 (pids, 1);
+
+ _stp_copy_argv_from_user (arglist, argv);
+ foreach (arglist, ptr)
+ printk ("%s ", ptr->str);
+ printk ("\n");
+ }
+ jprobe_return();
+ return 0;
+}
+
+struct file * inst_filp_open (const char * filename, int flags, int mode)
+{
+ _stp_map_key_long (pids, current->pid);
+ if (_stp_map_get_int64 (pids))
+ dlog ("%d\t%d\t%s\tO %s\n", current->pid, current->parent->pid, current->comm, filename);
+
+ jprobe_return();
+ return 0;
+}
+
+asmlinkage ssize_t inst_sys_read (unsigned int fd, char __user * buf, size_t count)
+{
+ _stp_map_key_long (pids, current->pid);
+ if (_stp_map_get_int64 (pids))
+ dlog ("%d\t%d\t%s\tR %d\n", current->pid, current->parent->pid, current->comm, fd);
+
+ jprobe_return();
+ return 0;
+}
+
+asmlinkage ssize_t inst_sys_write (unsigned int fd, const char __user * buf, size_t count)
+{
+ size_t len;
+ char str[256];
+ _stp_map_key_long (pids, current->pid);
+ if (_stp_map_get_int64 (pids))
+ {
+ if (count < 64)
+ len = count;
+ else
+ len = 64;
+ len = _stp_strncpy_from_user(str, buf, len);
+ if (len < 0) len = 0;
+ str[len] = 0;
+ dlog ("%d\t%d\t%s\tW %s\n", current->pid, current->parent->pid, current->comm, str);
+ }
+
+ jprobe_return();
+ return 0;
+}
+
+static struct jprobe dtr_probes[] = {
+ {
+ .kp.addr = (kprobe_opcode_t *)0xffffffff8017b034,
+ .entry = (kprobe_opcode_t *) inst_do_execve
+ },
+ {
+ .kp.addr = (kprobe_opcode_t *)0xffffffff80170706,
+ .entry = (kprobe_opcode_t *) inst_filp_open
+ },
+ {
+ .kp.addr = (kprobe_opcode_t *)0xffffffff801711dd,
+ .entry = (kprobe_opcode_t *) inst_sys_read
+ },
+ {
+ .kp.addr = (kprobe_opcode_t *)0xffffffff8017124b,
+ .entry = (kprobe_opcode_t *) inst_sys_write
+ },
+};
+
+#define MAX_DTR_ROUTINE (sizeof(dtr_probes)/sizeof(struct jprobe))
+
+static int init_dtr(void)
+{
+ int i;
+
+ pids = _stp_map_new (10000, INT64);
+ arglist = _stp_list_new (10, STRING);
+
+ for (i = 0; i < MAX_DTR_ROUTINE; i++) {
+ printk("DTR: plant jprobe at %p, handler addr %p\n",
+ dtr_probes[i].kp.addr, dtr_probes[i].entry);
+ register_jprobe(&dtr_probes[i]);
+ }
+ printk("DTR: instrumentation is enabled...\n");
+ return 0;
+}
+
+static void cleanup_dtr(void)
+{
+ int i;
+
+ for (i = 0; i < MAX_DTR_ROUTINE; i++)
+ unregister_jprobe(&dtr_probes[i]);
+
+ _stp_map_del (pids);
+ printk("DTR: EXIT\n");
+}
+
+module_init(init_dtr);
+module_exit(cleanup_dtr);
+MODULE_LICENSE("GPL");
+
diff --git a/runtime/tests/test.h b/runtime/tests/test.h
new file mode 100644
index 00000000..8eed16bd
--- /dev/null
+++ b/runtime/tests/test.h
@@ -0,0 +1,233 @@
+/* include file for testing maps without running in the kernel */
+
+#include <stdio.h>
+#include <stdarg.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+#include <limits.h>
+#include <errno.h>
+
+static inline unsigned long hash_long(unsigned long val, unsigned int bits)
+{
+ unsigned long hash = val;
+
+#if __WORDSIZE == 64
+ /* Sigh, gcc can't optimise this alone like it does for 32 bits. */
+ unsigned long n = hash;
+ n <<= 18;
+ hash -= n;
+ n <<= 33;
+ hash -= n;
+ n <<= 3;
+ hash += n;
+ n <<= 3;
+ hash -= n;
+ n <<= 4;
+ hash += n;
+ n <<= 2;
+ hash += n;
+#else
+ /* On some cpus multiply is faster, on others gcc will do shifts */
+ hash *= 0x9e370001UL;
+#endif
+
+ /* High bits are more random, so use them. */
+ return hash >> (8*sizeof(long) - bits);
+}
+
+
+#define STRINGLEN 128
+#define HASH_ELEM_NUM 5000
+#define HASH_TABLE_BITS 8
+#define HASH_TABLE_SIZE (1<<HASH_TABLE_BITS)
+#define BUCKETS 16 /* largest histogram width */
+#define PK 0 /* sprinkle debug printk into probe code */
+
+#define LIST_POISON1 ((void *) 0x00100100)
+#define LIST_POISON2 ((void *) 0x00200200)
+
+struct list_head {
+ struct list_head *next, *prev;
+};
+
+#define LIST_HEAD_INIT(name) { &(name), &(name) }
+
+#define LIST_HEAD(name) \
+ struct list_head name = LIST_HEAD_INIT(name)
+
+#define INIT_LIST_HEAD(ptr) do { \
+ (ptr)->next = (ptr); (ptr)->prev = (ptr); \
+} while (0)
+
+/*
+ * Insert a new entry between two known consecutive entries.
+ *
+ * This is only for internal list manipulation where we know
+ * the prev/next entries already!
+ */
+static inline void __list_add(struct list_head *new,
+ struct list_head *prev,
+ struct list_head *next)
+{
+ next->prev = new;
+ new->next = next;
+ new->prev = prev;
+ prev->next = new;
+}
+
+static inline void list_add(struct list_head *new, struct list_head *head)
+{
+ __list_add(new, head, head->next);
+}
+
+
+static inline void list_add_tail(struct list_head *new, struct list_head *head)
+{
+ __list_add(new, head->prev, head);
+}
+/*
+ * Delete a list entry by making the prev/next entries
+ * point to each other.
+ *
+ * This is only for internal list manipulation where we know
+ * the prev/next entries already!
+ */
+static inline void __list_del(struct list_head * prev, struct list_head * next)
+{
+ next->prev = prev;
+ prev->next = next;
+}
+
+static inline void list_del(struct list_head *entry)
+{
+ __list_del(entry->prev, entry->next);
+ entry->next = LIST_POISON1;
+ entry->prev = LIST_POISON2;
+}
+
+static inline int list_empty(const struct list_head *head)
+{
+ return head->next == head;
+}
+
+static inline void list_move_tail(struct list_head *list,
+ struct list_head *head)
+{
+ __list_del(list->prev, list->next);
+ list_add_tail(list, head);
+}
+
+
+struct hlist_head {
+ struct hlist_node *first;
+};
+
+struct hlist_node {
+ struct hlist_node *next, **pprev;
+};
+#define HLIST_HEAD_INIT { .first = NULL }
+#define HLIST_HEAD(name) struct hlist_head name = { .first = NULL }
+#define INIT_HLIST_HEAD(ptr) ((ptr)->first = NULL)
+#define INIT_HLIST_NODE(ptr) ((ptr)->next = NULL, (ptr)->pprev = NULL)
+
+static inline void hlist_add_head(struct hlist_node *n, struct hlist_head *h)
+{
+ struct hlist_node *first = h->first;
+ n->next = first;
+ if (first)
+ first->pprev = &n->next;
+ h->first = n;
+ n->pprev = &h->first;
+}
+
+#define hlist_for_each(pos, head) \
+ for (pos = (head)->first; pos; pos = pos->next)
+
+#define hlist_entry(ptr, type, member) container_of(ptr,type,member)
+
+#define container_of(ptr, type, member) ({ \
+ const typeof( ((type *)0)->member ) *__mptr = (ptr); \
+ (type *)( (char *)__mptr - offsetof(type,member) );})
+
+#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
+
+static inline void __hlist_del(struct hlist_node *n)
+{
+ struct hlist_node *next = n->next;
+ struct hlist_node **pprev = n->pprev;
+ *pprev = next;
+ if (next)
+ next->pprev = pprev;
+}
+
+static inline void hlist_del(struct hlist_node *n)
+{
+ __hlist_del(n);
+ n->next = LIST_POISON1;
+ n->pprev = LIST_POISON2;
+}
+
+static inline void hlist_del_init(struct hlist_node *n)
+{
+ if (n->pprev) {
+ __hlist_del(n);
+ INIT_HLIST_NODE(n);
+ }
+}
+
+static inline void hlist_add_before(struct hlist_node *n,
+ struct hlist_node *next)
+{
+ n->pprev = next->pprev;
+ n->next = next;
+ next->pprev = &n->next;
+ *(n->pprev) = n;
+}
+
+#define GFP_ATOMIC 0
+
+void *kmalloc (size_t len, int flags)
+{
+ return malloc (len);
+}
+
+void *vmalloc (size_t len)
+{
+ return malloc (len);
+}
+
+#define kfree(x) free(x)
+#define vfree(x) free(x)
+
+/***** END OF KERNEL STUFF ********/
+
+#ifdef DEBUG
+#define dbug(args...) \
+ { \
+ printf("%s:%d: ", __FUNCTION__, __LINE__); \
+ printf(args); \
+ }
+#else
+#define dbug(args...) ;
+#endif
+
+#define dlog(args...) printf(args);
+
+#include "../alloc.h"
+#include "../map.h"
+#include "../map.c"
+
+/* handle renamed functions */
+#define map_new _stp_map_new
+#define map_key_del _stp_map_key_del
+#define map_start _stp_map_start
+#define map_iter _stp_map_iter
+#define map_get_str _stp_map_get_str
+#define map_set_int64 _stp_map_set_int64
+#define map_get_int64 _stp_map_get_int64
+#define map_key_str_str _stp_map_key_str_str
+#define map_key_str _stp_map_key_str
+#define map_key_long _stp_map_key_long
+#define map_key_long_long _stp_map_key_long_long
+#define map_set_stat _stp_map_set_stat
diff --git a/runtime/tests/test4_probe/Makefile b/runtime/tests/test4_probe/Makefile
new file mode 100644
index 00000000..86d61266
--- /dev/null
+++ b/runtime/tests/test4_probe/Makefile
@@ -0,0 +1,9 @@
+# Makefile
+#
+# make -C path/to/kernel/src M=`pwd` modules
+
+obj-m := dtr.o
+
+
+
+
diff --git a/runtime/tests/test4_probe/README b/runtime/tests/test4_probe/README
new file mode 100644
index 00000000..a503c28e
--- /dev/null
+++ b/runtime/tests/test4_probe/README
@@ -0,0 +1,23 @@
+Sample probe.
+
+To build, edit the path in buildit and the addresses in struct dtr_probes
+in dtr.c Then "source buildit"
+
+This is a translation of on an old dtr probe:
+
+global {
+ long @opens[string];
+ sum @reads[string], @writes[string];
+}
+
+probe sys_open:entry {
+ @opens[current->comm]++;
+}
+
+probe sys_read:entry {
+ @reads[current->comm] << count;
+}
+
+probe sys_write:entry {
+ @writes[current->comm] << count;
+}
diff --git a/runtime/tests/test4_probe/buildit b/runtime/tests/test4_probe/buildit
new file mode 100644
index 00000000..8d90a0ec
--- /dev/null
+++ b/runtime/tests/test4_probe/buildit
@@ -0,0 +1 @@
+make -C /lib/modules/2.6.10-1.770_FC3smp/build M=`pwd`
diff --git a/runtime/tests/test4_probe/dtr.c b/runtime/tests/test4_probe/dtr.c
new file mode 100644
index 00000000..0396da89
--- /dev/null
+++ b/runtime/tests/test4_probe/dtr.c
@@ -0,0 +1,108 @@
+#define HASH_TABLE_BITS 8
+#define HASH_TABLE_SIZE (1<<HASH_TABLE_BITS)
+#define BUCKETS 16 /* largest histogram width */
+#include "../../runtime.h"
+
+#include "../../io.c"
+#include "../../map.c"
+
+
+MODULE_PARM_DESC(dtr, "\n");
+
+MAP opens, reads, writes;
+
+asmlinkage long inst_sys_open (const char __user * filename, int flags, int mode)
+{
+ _stp_map_key_str (opens, current->comm);
+ _stp_map_set_int64 (opens, _stp_map_get_int64(opens) + 1);
+ jprobe_return();
+ return 0;
+}
+
+asmlinkage ssize_t inst_sys_read (unsigned int fd, char __user * buf, size_t count)
+{
+ _stp_map_key_str (reads, current->comm);
+ _stp_map_stat_add (reads, count);
+ jprobe_return();
+ return 0;
+}
+
+asmlinkage ssize_t inst_sys_write (unsigned int fd, const char __user * buf, size_t count)
+{
+ _stp_map_key_str (writes, current->comm);
+ _stp_map_stat_add (writes, count);
+ jprobe_return();
+ return 0;
+}
+
+static struct jprobe dtr_probes[] = {
+ {
+ .kp.addr = (kprobe_opcode_t *)0xc0166f32,
+ .entry = (kprobe_opcode_t *) inst_sys_open
+ },
+ {
+ .kp.addr = (kprobe_opcode_t *)0xc0167b93,
+ .entry = (kprobe_opcode_t *) inst_sys_read
+ },
+ {
+ .kp.addr = (kprobe_opcode_t *)0xc0167bf5,
+ .entry = (kprobe_opcode_t *) inst_sys_write
+ },
+};
+
+#define MAX_DTR_ROUTINE (sizeof(dtr_probes)/sizeof(struct jprobe))
+
+static int init_dtr(void)
+{
+ int i;
+
+ opens = _stp_map_new (1000, INT64);
+ reads = _stp_map_new (1000, STAT);
+ writes = _stp_map_new (1000, STAT);
+
+ for (i = 0; i < MAX_DTR_ROUTINE; i++) {
+ printk("DTR: plant jprobe at %p, handler addr %p\n",
+ dtr_probes[i].kp.addr, dtr_probes[i].entry);
+ register_jprobe(&dtr_probes[i]);
+ }
+ printk("DTR: instrumentation is enabled...\n");
+ return 0;
+}
+
+static void cleanup_dtr(void)
+{
+ int i;
+ struct map_node_stat *st;
+ struct map_node_int64 *ptr;
+
+ for (i = 0; i < MAX_DTR_ROUTINE; i++)
+ unregister_jprobe(&dtr_probes[i]);
+
+ for (ptr = (struct map_node_int64 *)_stp_map_start(opens); ptr;
+ ptr = (struct map_node_int64 *)_stp_map_iter (opens,(struct map_node *)ptr))
+ dlog ("opens[%s] = %lld\n", key1str(ptr), ptr->val);
+ dlog ("\n");
+
+ for (st = (struct map_node_stat *)_stp_map_start(reads); st;
+ st = (struct map_node_stat *)_stp_map_iter (reads,(struct map_node *)st))
+ dlog ("reads[%s] = [count=%lld sum=%lld min=%lld max=%lld]\n", key1str(st), st->stats.count, st->stats.sum,
+ st->stats.min, st->stats.max);
+ dlog ("\n");
+
+ for (st = (struct map_node_stat *)_stp_map_start(writes); st;
+ st = (struct map_node_stat *)_stp_map_iter (writes,(struct map_node *)st))
+ dlog ("writes[%s] = [count=%lld sum=%lld min=%lld max=%lld]\n", key1str(st), st->stats.count, st->stats.sum,
+ st->stats.min, st->stats.max);
+ dlog ("\n");
+
+ _stp_map_del (opens);
+ _stp_map_del (reads);
+ _stp_map_del (writes);
+
+ printk("DTR: EXIT\n");
+}
+
+module_init(init_dtr);
+module_exit(cleanup_dtr);
+MODULE_LICENSE("GPL");
+
diff --git a/runtime/tests/testl64.c b/runtime/tests/testl64.c
new file mode 100644
index 00000000..62b43641
--- /dev/null
+++ b/runtime/tests/testl64.c
@@ -0,0 +1,134 @@
+#include "test.h"
+
+/* testl64.c - DO NOT EDIT without updating the expected results in map.test. */
+
+/*
+ key - long
+ val - INT64
+
+ Testing circular buffers, set, get
+*/
+
+int main ()
+{
+ MAP mymap = map_new(4, INT64);
+
+ map_key_long (mymap, 1);
+ map_set_int64 (mymap, 2);
+ printf ("mymap[%d]=%ld\n", 1, map_get_int64(mymap));
+
+ map_key_long (mymap, 42);
+ map_set_int64 (mymap, 83);
+
+ map_key_long (mymap, 101);
+ map_set_int64 (mymap, 202);
+ /* at this point, we have 1, 42, and 101 in the array */
+
+ printf ("mymap[%d]=%ld ", 101, map_get_int64(mymap));
+ map_key_long (mymap, 1);
+ printf ("mymap[%d]=%ld ", 1, map_get_int64(mymap));
+ map_key_long (mymap, 42);
+ printf ("mymap[%d]=%ld\n", 42, map_get_int64(mymap));
+
+ map_set_int64 (mymap, 84);
+ printf ("mymap[%d]=%ld\n", 42, map_get_int64(mymap));
+
+ /* now try to confuse things */
+ /* These won't do anything useful, but shouldn't crash */
+ map_key_long (mymap, 0);
+ map_key_del (mymap);
+ map_key_long (mymap, 77);
+ map_key_del (mymap);
+ map_key_del (mymap);
+ map_set_int64 (mymap,1000000);
+
+ /* create and delete a key */
+ map_key_long (mymap, 1024);
+ map_set_int64 (mymap, 2048);
+ map_key_long (mymap, 1024);
+ printf ("mymap[%d]=%ld\n", 1024, map_get_int64(mymap));
+ map_key_del (mymap);
+ printf ("mymap[%d]=%ld\n", 1024, map_get_int64(mymap));
+ map_key_long (mymap, 10);
+ printf ("mymap[%d]=%ld\n", 10, map_get_int64(mymap));
+
+ printf ("\n");
+ struct map_node_int64 *ptr;
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%ld] = %d\n", key1int(ptr), (int)ptr->val);
+
+
+ printf ("\n");
+ map_key_long (mymap, 1); map_key_del (mymap);
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%ld] = %d\n", key1int(ptr), (int)ptr->val);
+
+ printf ("\n");
+ map_key_long (mymap, 42); map_key_del (mymap);
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%ld] = %d\n", key1int(ptr), (int)ptr->val);
+
+
+ printf ("\n");
+ map_key_long (mymap, 101); map_key_del (mymap);
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%ld] = %d\n", key1int(ptr), (int)ptr->val);
+
+ printf ("\n");
+
+ map_key_long (mymap, 10); map_set_int64 (mymap, 20);
+ printf ("mymap[%d]=%ld\n", 10, map_get_int64(mymap));
+
+ /* add 4 new entries, pushing "10" out */
+ int i;
+ for (i = 0; i < 4; i++)
+ {
+ map_key_long (mymap, i);
+ map_set_int64 (mymap, 100 + 2 * i);
+ }
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%ld] = %d\n", key1int(ptr), (int)ptr->val);
+
+ printf ("\n");
+ /* 5, 382, 526, and 903 all hash to the same value (23) */
+ /* use them to test the hash chain */
+ map_key_long (mymap, 5); map_set_int64 (mymap, 1005);
+ map_key_long (mymap, 382); map_set_int64 (mymap, 1382);
+ map_key_long (mymap, 526); map_set_int64 (mymap, 1526);
+ map_key_long (mymap, 903); map_set_int64 (mymap, 1903);
+
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%ld] = %d\n", key1int(ptr), (int)ptr->val);
+
+ map_key_long (mymap, 382); map_key_del (mymap);
+ printf ("\n");
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%ld] = %d\n", key1int(ptr), (int)ptr->val);
+
+ map_key_long (mymap, 5); map_key_del (mymap);
+ printf ("\n");
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%ld] = %d\n", key1int(ptr), (int)ptr->val);
+
+ map_key_long (mymap, 903); map_key_del (mymap);
+ printf ("\n");
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%ld] = %d\n", key1int(ptr), (int)ptr->val);
+
+ map_key_long (mymap, 526); map_key_del (mymap);
+ printf ("\n");
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%ld] = %d\n", key1int(ptr), (int)ptr->val);
+
+ return 0;
+}
diff --git a/runtime/tests/testl64R.c b/runtime/tests/testl64R.c
new file mode 100644
index 00000000..b5db7228
--- /dev/null
+++ b/runtime/tests/testl64R.c
@@ -0,0 +1,50 @@
+#include "test.h"
+
+#define LLONG_MAX 9223372036854775807LL
+#define LLONG_MIN (-LLONG_MAX - 1LL)
+
+/* testl64R.c - DO NOT EDIT without updating the expected results in map.test. */
+
+/*
+ key - long
+ val - INT64
+
+ Testing range of values
+*/
+
+int main ()
+{
+ struct map_node_int64 *ptr;
+ MAP mymap = map_new(4, INT64);
+
+ map_key_long (mymap, 1);
+ map_set_int64 (mymap, LLONG_MIN);
+ map_key_long (mymap, 2);
+ map_set_int64 (mymap, LLONG_MAX);
+ map_key_long (mymap, 3);
+ map_set_int64 (mymap, 0); /* will not be saved */
+ map_key_long (mymap, 4);
+ map_set_int64 (mymap, -1);
+ map_key_long (mymap, 5);
+ map_set_int64 (mymap, 5);
+
+
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%ld] = %lld\n", key1int(ptr), (long long)ptr->val);
+
+
+ /* stress test - create a million entries then print last 4 */
+ int i;
+ for (i = 0; i < 1000000; i++)
+ {
+ map_key_long (mymap, i);
+ map_set_int64 (mymap, i+i);
+ }
+
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%ld] = %lld\n", key1int(ptr), (long long)ptr->val);
+
+ return 0;
+}
diff --git a/runtime/tests/testl64_alloc.c b/runtime/tests/testl64_alloc.c
new file mode 100644
index 00000000..fcfa6cf5
--- /dev/null
+++ b/runtime/tests/testl64_alloc.c
@@ -0,0 +1,139 @@
+#include "test.h"
+
+/* testl64_alloc.c - DO NOT EDIT without updating the expected results in map.test. */
+
+/*
+ key - long
+ val - INT64
+ uses kalloc to allocate buffers dynamically. No circular buffers
+*/
+
+int main ()
+{
+ MAP mymap = map_new(0, INT64);
+
+ map_key_long (mymap, 1);
+ map_set_int64 (mymap, 2);
+ printf ("mymap[%d]=%ld\n", 1, map_get_int64(mymap));
+
+ map_key_long (mymap, 42);
+ map_set_int64 (mymap, 83);
+
+ map_key_long (mymap, 101);
+ map_set_int64 (mymap, 202);
+ /* at this point, we have 1, 42, and 101 in the array */
+
+ printf ("mymap[%d]=%ld ", 101, map_get_int64(mymap));
+ map_key_long (mymap, 1);
+ printf ("mymap[%d]=%ld ", 1, map_get_int64(mymap));
+ map_key_long (mymap, 42);
+ printf ("mymap[%d]=%ld\n", 42, map_get_int64(mymap));
+
+ map_set_int64 (mymap, 84);
+ printf ("mymap[%d]=%ld\n", 42, map_get_int64(mymap));
+
+ /* now try to confuse things */
+ /* These won't do anything useful, but shouldn't crash */
+ map_key_long (mymap, 0);
+ map_key_del (mymap);
+ map_key_long (mymap, 77);
+ map_key_del (mymap);
+ map_key_del (mymap);
+ map_set_int64 (mymap,1000000);
+
+ /* create and delete a key */
+ map_key_long (mymap, 1024);
+ map_set_int64 (mymap, 2048);
+ map_key_long (mymap, 1024);
+ printf ("mymap[%d]=%ld\n", 1024, map_get_int64(mymap));
+ map_key_del (mymap);
+ printf ("mymap[%d]=%ld\n", 1024, map_get_int64(mymap));
+ map_key_long (mymap, 10);
+ printf ("mymap[%d]=%ld\n", 10, map_get_int64(mymap));
+
+ printf ("\n");
+ struct map_node_int64 *ptr;
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%ld] = %d\n", key1int(ptr), (int)ptr->val);
+
+
+ printf ("\n");
+ map_key_long (mymap, 1); map_key_del (mymap);
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%ld] = %d\n", key1int(ptr), (int)ptr->val);
+
+ printf ("\n");
+ map_key_long (mymap, 42); map_key_del (mymap);
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%ld] = %d\n", key1int(ptr), (int)ptr->val);
+
+
+ printf ("\n");
+ map_key_long (mymap, 101); map_key_del (mymap);
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%ld] = %d\n", key1int(ptr), (int)ptr->val);
+
+ printf ("\n");
+
+ map_key_long (mymap, 10); map_set_int64 (mymap, 20);
+ printf ("mymap[%d]=%ld\n", 10, map_get_int64(mymap));
+
+ /* add 4 new entries, NOT pushing "10" out */
+ int i;
+ for (i = 0; i < 4; i++)
+ {
+ map_key_long (mymap, i);
+ map_set_int64 (mymap, 100 + 2 * i);
+ }
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%ld] = %d\n", key1int(ptr), (int)ptr->val);
+
+ map_key_long (mymap, 10); map_key_del (mymap);
+ map_key_long (mymap, 3); map_key_del (mymap);
+ map_key_long (mymap, 2); map_key_del (mymap);
+ map_key_long (mymap, 1); map_key_del (mymap);
+ map_key_long (mymap, 0); map_key_del (mymap);
+
+ /* 5, 382, 526, and 903 all hash to the same value (23) */
+ /* use them to test the hash chain */
+ map_key_long (mymap, 5); map_set_int64 (mymap, 1005);
+ map_key_long (mymap, 382); map_set_int64 (mymap, 1382);
+ map_key_long (mymap, 526); map_set_int64 (mymap, 1526);
+ map_key_long (mymap, 903); map_set_int64 (mymap, 1903);
+
+ printf ("\n");
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%ld] = %d\n", key1int(ptr), (int)ptr->val);
+
+ map_key_long (mymap, 382); map_key_del (mymap);
+ printf ("\n");
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%ld] = %d\n", key1int(ptr), (int)ptr->val);
+
+ map_key_long (mymap, 5); map_key_del (mymap);
+ printf ("\n");
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%ld] = %d\n", key1int(ptr), (int)ptr->val);
+
+ map_key_long (mymap, 903); map_key_del (mymap);
+ printf ("\n");
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%ld] = %d\n", key1int(ptr), (int)ptr->val);
+
+ map_key_long (mymap, 526); map_key_del (mymap);
+ printf ("\n");
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%ld] = %d\n", key1int(ptr), (int)ptr->val);
+
+ return 0;
+}
diff --git a/runtime/tests/testlist.c b/runtime/tests/testlist.c
new file mode 100644
index 00000000..7086ff9b
--- /dev/null
+++ b/runtime/tests/testlist.c
@@ -0,0 +1,63 @@
+#include "test.h"
+
+/* testliat.c - DO NOT EDIT without updating the expected results in map.test. */
+
+/*
+ Tests maps acting as Lists
+*/
+
+
+
+static void
+map_dump (MAP map)
+{
+ struct map_node_str *ptr;
+ foreach (map, ptr)
+ printf ("map[%ld] = %s\n", key1int(ptr), ptr->str);
+ printf ("\n");
+}
+
+
+int main ()
+{
+ char buf[32];
+ int i;
+ MAP map = _stp_list_new(10, STRING);
+
+ for (i = 0; i < 10; i++)
+ {
+ sprintf (buf, "Item%d", i);
+ _stp_list_add_str (map, buf);
+ }
+
+ map_dump(map);
+ printf ("size is %d\n", _stp_list_size(map));
+
+ /* we set a limit of 10 elements so these push */
+ /* the first entries out of the list */
+ for (i = 50; i < 55; i++)
+ {
+ sprintf (buf, "Item%d", i);
+ _stp_list_add_str (map, buf);
+ }
+
+ map_dump(map);
+
+ for (i = 0; i < 10; i++)
+ {
+ sprintf (buf, "Item%d", i);
+ _stp_list_add_str (map, buf);
+ }
+
+ map_dump(map);
+ _stp_list_clear (map);
+ map_dump(map);
+ for (i = 50; i < 55; i++)
+ {
+ sprintf (buf, "Item%d", i);
+ _stp_list_add_str (map, buf);
+ }
+ map_dump(map);
+ _stp_map_del (map);
+ return 0;
+}
diff --git a/runtime/tests/testll64.c b/runtime/tests/testll64.c
new file mode 100644
index 00000000..bfe4ae94
--- /dev/null
+++ b/runtime/tests/testll64.c
@@ -0,0 +1,111 @@
+#include "test.h"
+
+/* testll64.c - DO NOT EDIT without updating the expected results in map.test. */
+
+/*
+ key - long,long
+ val - INT64
+
+ Testing circular buffers, set, get
+*/
+
+int main ()
+{
+ struct map_node_int64 *ptr;
+ MAP mymap = map_new(4, INT64);
+
+ map_key_long_long (mymap, 1,1);
+ map_set_int64 (mymap, 1);
+ map_key_long_long (mymap, 1,2);
+ map_set_int64 (mymap, 2);
+ map_key_long_long (mymap, 2,1);
+ map_set_int64 (mymap, 3);
+
+ map_key_long_long (mymap, 1,1);
+ printf ("mymap[1,1]=%ld\n", map_get_int64(mymap));
+ map_key_long_long (mymap, 1,2);
+ printf ("mymap[1,2]=%ld\n", map_get_int64(mymap));
+ map_key_long_long (mymap, 2,1);
+ printf ("mymap[2,1]=%ld\n", map_get_int64(mymap));
+
+#if 0
+ map_key_long (mymap, 42);
+ map_set_int64 (mymap, 83);
+
+ map_key_long (mymap, 101);
+ map_set_int64 (mymap, 202);
+ /* at this point, we have 1, 42, and 101 in the array */
+
+ printf ("mymap[%d]=%ld ", 101, map_get_int64(mymap));
+ map_key_long (mymap, 1);
+ printf ("mymap[%d]=%ld ", 1, map_get_int64(mymap));
+ map_key_long (mymap, 42);
+ printf ("mymap[%d]=%ld\n", 42, map_get_int64(mymap));
+
+ map_set_int64 (mymap, 84);
+ printf ("mymap[%d]=%ld\n", 42, map_get_int64(mymap));
+
+ /* now try to confuse things */
+ /* These won't do anything useful, but shouldn't crash */
+ map_key_long (mymap, 0);
+ map_key_del (mymap);
+ map_key_long (mymap, 77);
+ map_key_del (mymap);
+ map_key_del (mymap);
+ map_set_int64 (mymap,1000000);
+
+ /* create and delete a key */
+ map_key_long (mymap, 1024);
+ map_set_int64 (mymap, 2048);
+ map_key_long (mymap, 1024);
+ printf ("mymap[%d]=%ld\n", 1024, map_get_int64(mymap));
+ map_key_del (mymap);
+ printf ("mymap[%d]=%ld\n", 1024, map_get_int64(mymap));
+ map_key_long (mymap, 10);
+ printf ("mymap[%d]=%ld\n", 10, map_get_int64(mymap));
+
+ printf ("\n");
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%ld] = %d\n", ptr->key1.val, (int)ptr->val);
+
+
+ printf ("\n");
+ map_key_long (mymap, 1); map_key_del (mymap);
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%ld] = %d\n", ptr->key1.val, (int)ptr->val);
+
+ printf ("\n");
+ map_key_long (mymap, 42); map_key_del (mymap);
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%ld] = %d\n", ptr->key1.val, (int)ptr->val);
+
+
+ printf ("\n");
+ map_key_long (mymap, 101); map_key_del (mymap);
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%ld] = %d\n", ptr->key1.val, (int)ptr->val);
+
+ printf ("\n");
+
+ map_key_long (mymap, 10); map_set_int64 (mymap, 20);
+ printf ("mymap[%d]=%ld\n", 10, map_get_int64(mymap));
+
+ /* add 4 new entries, pushing "10" out */
+ int i;
+ for (i = 0; i < 4; i++)
+ {
+ map_key_long (mymap, i);
+ map_set_int64 (mymap, 100 + 2 * i);
+ }
+#endif
+
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%ld,%ld] = %d\n", key1int(ptr), key2int(ptr),(int)ptr->val);
+
+ return 0;
+}
diff --git a/runtime/tests/testlongstr.c b/runtime/tests/testlongstr.c
new file mode 100644
index 00000000..6dcfaf8b
--- /dev/null
+++ b/runtime/tests/testlongstr.c
@@ -0,0 +1,120 @@
+#include "test.h"
+
+/* testlongstr.c - DO NOT EDIT without updating the expected results in map.test. */
+
+/*
+ key - long,str
+ val - INT64
+*/
+
+
+
+static void
+map_dump (MAP map)
+{
+ struct map_node_int64 *ptr;
+ printf ("\n");
+ for (ptr = (struct map_node_int64 *)map_start(map); ptr;
+ ptr = (struct map_node_int64 *)map_iter (map, (struct map_node *)ptr))
+ printf ("map[%ld,%s] = %lld\n", key1int(ptr), key2str(ptr),
+ (long long)ptr->val);
+ printf ("\n");
+}
+
+static void m_print (MAP map)
+{
+ struct map_node_int64 *m = (struct map_node_int64 *)map->key;
+ printf ("map[%ld,%s]=%lld\n", key1int(m), key2str(m),
+ (long long)map_get_int64(map));
+}
+int main ()
+{
+ MAP mymap = map_new(4, INT64);
+
+ _stp_map_key2 (mymap, 3, "two");
+ _stp_map_set (mymap, 6);
+ m_print (mymap);
+
+ _stp_map_key2 (mymap, 2, "eighty-four");
+ map_set_int64 (mymap, 167);
+
+ _stp_map_key2 (mymap, 4, "two-oh-two");
+ map_set_int64 (mymap, 808);
+ /* at this point, we have 6, 167, and 808 in the array */
+
+ m_print (mymap);
+ _stp_map_key2 (mymap, 3, "two");
+ m_print (mymap);
+ _stp_map_key2 (mymap, 2, "eighty-four");
+ m_print (mymap);
+
+ map_set_int64 (mymap, 168);
+ m_print (mymap);
+
+
+ /* now try to confuse things */
+ /* These won't do anything useful, but shouldn't crash */
+ _stp_map_key2 (mymap, 0, NULL);
+ map_key_del (mymap);
+
+ _stp_map_key2 (mymap, 4444, "0123456789");
+ map_set_int64 (mymap,1000000);
+
+ map_dump (mymap);
+
+ _stp_map_key2 (mymap, 77, "66");
+ map_key_del (mymap);
+ map_key_del (mymap);
+ map_set_int64 (mymap,99999999);
+
+ /* create and delete a key */
+ _stp_map_key2 (mymap, 2048, "2");
+ map_set_int64 (mymap, 4096);
+
+ _stp_map_key2 (mymap, 2048, "2");
+ m_print (mymap);
+ map_key_del (mymap);
+
+ printf ("mymap[2048,2]=%ld\n", map_get_int64(mymap));
+ _stp_map_key2 (mymap, 10, "six");
+ printf ("mymap[10,six]=%ld\n", map_get_int64(mymap));
+
+ map_dump(mymap);
+
+ _stp_map_key2 (mymap, 4, "two-oh-two"); map_key_del (mymap);
+ map_dump(mymap);
+
+ _stp_map_key2 (mymap, 4444, "0123456789"); map_key_del (mymap);
+ map_dump(mymap);
+
+ _stp_map_key2 (mymap, 2, "eighty-four"); map_key_del (mymap);
+ map_dump(mymap);
+
+
+ _stp_map_key2 (mymap, 1801, "Ohio"); map_set_int64 (mymap, 10123456);
+ map_dump(mymap);
+
+ /* add 4 new entries, pushing "Ohio" out */
+ int i;
+ for (i = 2; i < 6; i++)
+ {
+ char buf[32];
+ sprintf (buf, "test_number_%d", i);
+ _stp_map_key2 (mymap, (long)i, buf);
+ _stp_map_set_int64 (mymap, i*i*i);
+ }
+ map_dump (mymap);
+
+ /* delete all entries */
+ for (i = 2; i < 6; i++)
+ {
+ char buf[32];
+ sprintf (buf, "test_number_%d", i);
+ _stp_map_key2 (mymap, (long)i, buf);
+ map_key_del (mymap);
+ }
+
+ printf ("Should be empty: ");
+ map_dump (mymap);
+ return 0;
+}
diff --git a/runtime/tests/teststat.c b/runtime/tests/teststat.c
new file mode 100644
index 00000000..d204a585
--- /dev/null
+++ b/runtime/tests/teststat.c
@@ -0,0 +1,72 @@
+#include "test.h"
+
+/* teststat.c - DO NOT EDIT without updating the expected results in map.test. */
+
+/*
+ key - str,long
+ val - stat
+*/
+
+
+
+static void
+map_dump (MAP map)
+{
+ struct map_node_stat *ptr;
+ printf ("\n");
+ foreach (map, ptr)
+ printf ("map[%s,%ld] = [c=%lld s=%lld minmax =%lld,%lld]\n", key1str(ptr),
+ key2int(ptr), ptr->stats.count, ptr->stats.sum, ptr->stats.min, ptr->stats.max);
+ printf ("\n");
+}
+
+static void m_print (MAP map)
+{
+ struct map_node_stat *m = (struct map_node_stat *)map->key;
+ stat *st = _stp_map_get_stat (map);
+ printf ("map[%s,%ld] = [c=%ld s=%ld minmax =%ld,%ld]\n", key1str(m), key2int(m),
+ (long)st->count, (long)st->sum, (long)st->min, (long)st->max);
+}
+int main ()
+{
+ stat st, *stp;
+
+ MAP mymap = map_new(4, STAT);
+
+ st.count = 5; st.sum = 125; st.min = 2; st.max = 42;
+ _stp_map_key2 (mymap, "created with set", 2001 );
+ map_set_stat (mymap, &st);
+ m_print (mymap);
+
+ _stp_map_stat_add (mymap, 17);
+ m_print (mymap);
+
+ _stp_map_key2 (mymap, "created with add", 2020 );
+ _stp_map_stat_add (mymap, 1700);
+ m_print (mymap);
+ _stp_map_stat_add (mymap, 2);
+ m_print (mymap);
+ _stp_map_stat_add (mymap, 2345);
+ m_print (mymap);
+
+ map_dump(mymap);
+ _stp_map_key2 (mymap, "created with set", 2001 ); map_key_del (mymap);
+ map_dump(mymap);
+ _stp_map_key2 (mymap, "created with add", 2020 );
+ st.sum=123456;
+ map_set_stat (mymap, &st);
+ map_dump(mymap);
+ map_key_del (mymap);
+ map_dump(mymap);
+
+ mymap = map_new(4, STAT);
+ _stp_map_key2 (mymap, "created with add", 1234 );
+ _stp_map_stat_add (mymap, 42);
+ _stp_map_stat_add (mymap, 58);
+ stp = _stp_map_get_stat (mymap);
+ m_print(mymap);
+ map_dump(mymap);
+ _stp_map_del (mymap);
+
+ return 0;
+}
diff --git a/runtime/tests/teststr.c b/runtime/tests/teststr.c
new file mode 100644
index 00000000..e7b06a17
--- /dev/null
+++ b/runtime/tests/teststr.c
@@ -0,0 +1,117 @@
+#include "test.h"
+
+/* teststr.c - DO NOT EDIT without updating the expected results in map.test. */
+
+/*
+ key - str
+ val - INT64
+
+ Testing circular buffers, set, get
+*/
+
+int main ()
+{
+ struct map_node_int64 *ptr;
+
+ MAP mymap = map_new(4, INT64);
+
+ map_key_str (mymap, "two");
+ map_set_int64 (mymap, 2);
+ printf ("mymap[two]=%ld\n", map_get_int64(mymap));
+
+ map_key_str (mymap, "eighty-four");
+ map_set_int64 (mymap, 83);
+
+ map_key_str (mymap, "two-oh-two");
+ map_set_int64 (mymap, 202);
+ /* at this point, we have 2, 83, and 202 in the array */
+
+ printf ("mymap[two-oh-two]=%ld ",map_get_int64(mymap));
+ map_key_str (mymap, "two");
+ printf ("mymap[two]=%ld ", map_get_int64(mymap));
+ map_key_str (mymap, "eighty-four");
+ printf ("mymap[eighty-four]=%ld\n", map_get_int64(mymap));
+
+ map_set_int64 (mymap, 84);
+ printf ("mymap[eighty-four]=%ld\n", map_get_int64(mymap));
+
+
+ /* now try to confuse things */
+ /* These won't do anything useful, but shouldn't crash */
+ map_key_str (mymap, NULL);
+ map_key_del (mymap);
+
+ map_key_str (mymap, "0123456789");
+ map_set_int64 (mymap,1000000);
+
+ printf ("\n");
+
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%s] = %d\n", key1str(ptr), (int)ptr->val);
+
+ map_key_str (mymap, "77");
+ map_key_del (mymap);
+ map_key_del (mymap);
+ map_set_int64 (mymap,99999999);
+
+ /* create and delete a key */
+ map_key_str (mymap, "2048");
+ map_set_int64 (mymap, 2048);
+
+ //map_key_str (mymap, "2048");
+ printf ("mymap[2048]=%ld\n", map_get_int64(mymap));
+ map_key_del (mymap);
+
+ printf ("mymap[2048]=%ld\n", map_get_int64(mymap));
+ map_key_str (mymap, "10");
+ printf ("mymap[10]=%ld\n", map_get_int64(mymap));
+
+ printf ("\n");
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%s] = %d\n", key1str(ptr), (int)ptr->val);
+
+ printf ("\n");
+ map_key_str (mymap, "two-oh-two"); map_key_del (mymap);
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%s] = %d\n", key1str(ptr), (int)ptr->val);
+
+ printf ("\n");
+ map_key_str (mymap, "eighty-four"); map_key_del (mymap);
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%s] = %d\n", key1str(ptr), (int)ptr->val);
+
+ printf ("\n");
+ map_key_str (mymap, "0123456789"); map_key_del (mymap);
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%s] = %d\n", key1str(ptr), (int)ptr->val);
+
+ printf ("\n");
+
+ map_key_str (mymap, "Ohio"); map_set_int64 (mymap, 10123456);
+ printf ("mymap[Ohio]=%ld\n",map_get_int64(mymap));
+
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%s] = %d\n", key1str(ptr), (int)ptr->val);
+ printf ("\n");
+
+ /* add 4 new entries, pushing "Ohio" out */
+ int i;
+ for (i = 0; i < 4; i++)
+ {
+ char buf[32];
+ sprintf (buf, "test_number_%d", i);
+ map_key_str (mymap, buf);
+ map_set_int64 (mymap, 1000 + i);
+ }
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%s] = %d\n", key1str(ptr), (int)ptr->val);
+
+ return 0;
+}
diff --git a/runtime/tests/teststrlong.c b/runtime/tests/teststrlong.c
new file mode 100644
index 00000000..83301d12
--- /dev/null
+++ b/runtime/tests/teststrlong.c
@@ -0,0 +1,114 @@
+#include "test.h"
+
+/* teststrlong.c - DO NOT EDIT without updating the expected results in map.test. */
+
+/*
+ key - str,long
+ val - INT64
+*/
+
+
+
+static void
+map_dump (MAP map)
+{
+ struct map_node_int64 *ptr;
+ printf ("\n");
+ for (ptr = (struct map_node_int64 *)map_start(map); ptr;
+ ptr = (struct map_node_int64 *)map_iter (map, (struct map_node *)ptr))
+ printf ("map[%s,%ld] = %lld\n", key1str(ptr), key2int(ptr),
+ (long long)ptr->val);
+ printf ("\n");
+}
+
+static void m_print (MAP map)
+{
+ struct map_node_int64 *m = (struct map_node_int64 *)map->key;
+ printf ("map[%s,%ld]=%lld\n", key1str(m), key2int(m),
+ (long long)map_get_int64(map));
+}
+int main ()
+{
+ MAP mymap = map_new(4, INT64);
+
+ _stp_map_key2 (mymap, "two", 3);
+ _stp_map_set (mymap, 6);
+ m_print (mymap);
+
+ _stp_map_key2 (mymap, "eighty-four", 2);
+ map_set_int64 (mymap, 167);
+
+ _stp_map_key2 (mymap, "two-oh-two", 4);
+ map_set_int64 (mymap, 808);
+ /* at this point, we have 6, 167, and 808 in the array */
+
+ m_print (mymap);
+ _stp_map_key2 (mymap, "two", 3);
+ m_print (mymap);
+ _stp_map_key2 (mymap, "eighty-four", 2);
+ m_print (mymap);
+
+ map_set_int64 (mymap, 168);
+ m_print (mymap);
+
+
+ /* now try to confuse things */
+ /* These won't do anything useful, but shouldn't crash */
+ _stp_map_key2 (mymap, NULL, 0);
+ map_key_del (mymap);
+
+ _stp_map_key2 (mymap, "0123456789", 4444);
+ map_set_int64 (mymap,1000000);
+
+ map_dump (mymap);
+
+ _stp_map_key2 (mymap, "77", 66);
+ map_key_del (mymap);
+ map_key_del (mymap);
+ map_set_int64 (mymap,99999999);
+
+ /* create and delete a key */
+ _stp_map_key2 (mymap, "2048", 2);
+ map_set_int64 (mymap, 4096);
+
+ _stp_map_key2 (mymap, "2048", 2);
+ m_print (mymap);
+ map_key_del (mymap);
+
+ printf ("mymap[2048,2]=%ld\n", map_get_int64(mymap));
+ _stp_map_key2 (mymap, "six", 10);
+ printf ("mymap[six,10]=%ld\n", map_get_int64(mymap));
+
+ map_dump(mymap);
+
+ _stp_map_key2 (mymap, "two-oh-two", 4); map_key_del (mymap);
+ map_dump(mymap);
+
+
+ _stp_map_key2 (mymap, "Ohio", 1801); map_set_int64 (mymap, 10123456);
+ map_dump(mymap);
+
+ /* add 4 new entries, pushing "Ohio" out */
+ int i;
+ for (i = 2; i < 6; i++)
+ {
+ char buf[32];
+ sprintf (buf, "test_number_%d", i);
+ _stp_map_key2 (mymap, buf, (long)i);
+ _stp_map_set_int64 (mymap, i*i*i);
+ }
+ map_dump (mymap);
+
+ /* delete all entries */
+ for (i = 2; i < 6; i++)
+ {
+ char buf[32];
+ sprintf (buf, "test_number_%d", i);
+ _stp_map_key2 (mymap, buf, (long)i);
+ map_key_del (mymap);
+ }
+
+ printf ("Should be empty: ");
+ map_dump (mymap);
+ return 0;
+}
diff --git a/runtime/tests/teststrstr.c b/runtime/tests/teststrstr.c
new file mode 100644
index 00000000..86a2419b
--- /dev/null
+++ b/runtime/tests/teststrstr.c
@@ -0,0 +1,103 @@
+#include "test.h"
+
+/* teststrstr.c - DO NOT EDIT without updating the expected results in map.test. */
+
+/*
+ key - str,str
+ val - INT64
+
+ Testing circular buffers, set, get
+*/
+
+int main ()
+{
+ struct map_node_int64 *ptr;
+ MAP mymap = map_new(4, INT64);
+
+ map_key_str_str (mymap, "two", "three");
+ map_set_int64 (mymap, 6);
+ printf ("mymap[two,three]=%ld\n", map_get_int64(mymap));
+
+ map_key_str_str (mymap, "eighty-four", "two");
+ map_set_int64 (mymap, 167);
+
+ map_key_str_str (mymap, "two-oh-two", "four");
+ map_set_int64 (mymap, 808);
+ /* at this point, we have 6, 167, and 808 in the array */
+
+ printf ("mymap[two-oh-two,four]=%ld ",map_get_int64(mymap));
+ map_key_str_str (mymap, "two", "three");
+ printf ("mymap[two,three]=%ld ", map_get_int64(mymap));
+ map_key_str_str (mymap, "eighty-four", "two");
+ printf ("mymap[eighty-four,two]=%ld\n", map_get_int64(mymap));
+
+ map_set_int64 (mymap, 168);
+ printf ("mymap[eighty-four,two]=%ld\n", map_get_int64(mymap));
+
+
+ /* now try to confuse things */
+ /* These won't do anything useful, but shouldn't crash */
+ map_key_str_str (mymap, NULL, NULL);
+ map_key_del (mymap);
+
+ map_key_str_str (mymap, "0123456789", "foo");
+ map_set_int64 (mymap,1000000);
+
+ printf ("\n");
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%s,%s] = %d\n", key1str(ptr), key2str(ptr), (int)ptr->val);
+
+ map_key_str_str (mymap, "77", "66");
+ map_key_del (mymap);
+ map_key_del (mymap);
+ map_set_int64 (mymap,99999999);
+
+ /* create and delete a key */
+ map_key_str_str (mymap, "2048", "2");
+ map_set_int64 (mymap, 4096);
+
+ map_key_str_str (mymap, "2048", "2");
+ printf ("mymap[2048,2]=%ld\n", map_get_int64(mymap));
+ map_key_del (mymap);
+
+ printf ("mymap[2048,2]=%ld\n", map_get_int64(mymap));
+ map_key_str_str (mymap, "10", "six");
+ printf ("mymap[10,six]=%ld\n", map_get_int64(mymap));
+
+ printf ("\n");
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%s,%s] = %d\n", key1str(ptr), key2str(ptr), (int)ptr->val);
+
+ map_key_str_str (mymap, "two-oh-two", "four"); map_key_del (mymap);
+ printf ("\n");
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%s,%s] = %d\n", key1str(ptr), key2str(ptr), (int)ptr->val);
+
+
+ map_key_str_str (mymap, "Ohio", "1801"); map_set_int64 (mymap, 10123456);
+ printf ("\n");
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%s,%s] = %d\n", key1str(ptr), key2str(ptr), (int)ptr->val);
+
+ /* add 4 new entries, pushing "Ohio" out */
+ int i;
+ for (i = 2; i < 6; i++)
+ {
+ char buf[32], buf2[32];
+ sprintf (buf, "test_number_%d", i);
+ sprintf (buf2, "**test number %d**", i*i);
+ map_key_str_str (mymap, buf, buf2);
+ map_set_int64 (mymap, i*i*i);
+ }
+ printf ("\n");
+ for (ptr = (struct map_node_int64 *)map_start(mymap); ptr;
+ ptr = (struct map_node_int64 *)map_iter (mymap, (struct map_node *)ptr))
+ printf ("mymap[%s,%s] = %d\n", key1str(ptr), key2str(ptr), (int)ptr->val);
+
+
+ return 0;
+}
diff --git a/runtime/tests/teststrstrstr.c b/runtime/tests/teststrstrstr.c
new file mode 100644
index 00000000..95ffc1a2
--- /dev/null
+++ b/runtime/tests/teststrstrstr.c
@@ -0,0 +1,121 @@
+#include "test.h"
+
+/* teststrstrstr.c - DO NOT EDIT without updating the expected results in map.test. */
+
+/*
+ key - str,str
+ val - str
+*/
+
+
+
+static void
+map_dump (MAP map)
+{
+ struct map_node_str *ptr;
+ printf ("\n");
+ for (ptr = (struct map_node_str *)map_start(map); ptr;
+ ptr = (struct map_node_str *)map_iter (map, (struct map_node *)ptr))
+ printf ("map[%s,%s] = %s\n", key1str(ptr), key2str(ptr), ptr->str);
+ printf ("\n");
+}
+
+static void m_print (MAP map)
+{
+ struct map_node_str *m = (struct map_node_str *)map->key;
+ printf ("map[%s,%s]=%s\n", key1str(m), key2str(m), map_get_str(map));
+}
+int main ()
+{
+ MAP mymap = map_new(4, STRING);
+
+ _stp_map_key2 (mymap, "two", "2" );
+ _stp_map_set (mymap, "four");
+ m_print (mymap);
+
+ _stp_map_key2 (mymap, "eighty-four", "nineteen hundred");
+ _stp_map_set (mymap, "nineteen hundred and eighty-three");
+
+ _stp_map_key2 (mymap, "two-two-one-B", "Baker Street");
+ _stp_map_set (mymap, "7% solution");
+
+ m_print (mymap);
+ _stp_map_key2 (mymap, "two", "2");
+ m_print (mymap);
+ _stp_map_key2 (mymap, "eighty-four", "nineteen hundred");
+ m_print (mymap);
+
+ _stp_map_set (mymap, "nineteen hundred and eighty-four");
+ m_print (mymap);
+
+
+ /* now try to confuse things */
+ /* These won't do anything useful, but shouldn't crash */
+ _stp_map_key2 (mymap, NULL, NULL);
+ map_key_del (mymap);
+
+ _stp_map_key2 (mymap, "0123456789", "4444");
+ _stp_map_set (mymap,"1000000");
+
+ map_dump (mymap);
+
+ _stp_map_key2 (mymap, "77", "66");
+ map_key_del (mymap);
+ map_key_del (mymap);
+ _stp_map_set (mymap,"99999999");
+
+ /* create and delete a key */
+ _stp_map_key2 (mymap, "2048", "2");
+ _stp_map_set (mymap, "4096");
+
+ _stp_map_key2 (mymap, "2048", "2");
+ m_print (mymap);
+ map_key_del (mymap);
+
+ printf ("mymap[2048,2]=%s\n", map_get_str(mymap));
+ _stp_map_key2 (mymap, "six", "10");
+ printf ("mymap[six,10]=%s\n", map_get_str(mymap));
+
+ map_dump(mymap);
+
+ _stp_map_key2 (mymap, "two-two-one-B", "Baker Street"); map_key_del (mymap);
+ map_dump(mymap);
+
+
+ _stp_map_key2 (mymap, "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", NULL);
+ _stp_map_set (mymap, "TESTING 1,2,3");
+
+ _stp_map_key2 (mymap, "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZhiasdhgfiudsgfiusdgfisdugfisdugfsdiufgsdfiugsdifugsdiufgsdiufgisdugfisdugfigsdfiusdgfiugsdifu sdfigsdifugsdifugsdiufgsdiufgisdugfiudsgfisudgfiusdgfiusdgfisdugfisdufgiusdfgsdiufgdsiufgsdiufgsdiufgsdiufgwiugfw89e4rf98yf897ywef98wyef98wyf98wyf89ys9d8yfsd sdfysd98fy9s8fyds98fy98dsfy89sdfy", "yw98fty98sfts98d7fts89d7f9sdfoooooooooooooooooooooooooooooooooooooooooooof8eo7stfew87fwet8tw87rf7fpowft7ewfptpwefpwetfpwepwfwetfp8we");
+
+ _stp_map_set (mymap, "TESTING 1,2,3 ***************************************************************************************************************************************************************************************************************************************************************************** 4,5,6");
+ map_dump(mymap);
+
+ /* add 4 new entries, pushing "Ohio" out */
+ int i;
+ for (i = 2; i < 6; i++)
+ {
+ char buf[32], buf2[32], buf3[32];
+ sprintf (buf, "test_number_%d", i);
+ sprintf (buf2, "TEST_NUMBER_%d", i*i);
+ sprintf (buf3, "TEST_NUMBER_%d", i*i*i);
+ _stp_map_key2 (mymap, buf, buf2);
+ _stp_map_set_str (mymap, buf3);
+ }
+ map_dump (mymap);
+
+ /* delete all entries */
+ for (i = 2; i < 6; i++)
+ {
+ char buf[32], buf2[32], buf3[32];
+ sprintf (buf, "test_number_%d", i);
+ sprintf (buf2, "TEST_NUMBER_%d", i*i);
+ sprintf (buf3, "TEST_NUMBER_%d", i*i*i);
+ _stp_map_key2 (mymap, buf, buf2);
+ map_key_del (mymap);
+ }
+
+ printf ("Should be empty: ");
+ map_dump (mymap);
+ _stp_map_del (mymap);
+ return 0;
+}