You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
BagPipeOuO 5f2b64a9b9
x
5 months ago
..
CallStack.H x 5 months ago
CallStack.cpp x 5 months ago
Maid.cpp x 5 months ago
README x 5 months ago
addrfile.txt x 5 months ago
argv_readparam.cpp x 5 months ago
argv_readparam.h x 5 months ago
makefile x 5 months ago
makefile.rules x 5 months ago
syscall_names.H x 5 months ago
syscall_names.cpp x 5 months ago

README

MAID - Memory Address Information Dumper
--

MAID is an ISA-independent Pin tool that will output file:lineno (if known)
and a callstack each time a user-specified effective memory address is touched.


BUILDING MAID
--

Unpack maid in the top level of the Pin distribution (i.e. pin-2.0/maid)

Type make
Type make test


COMMAND LINE OPTIONS
--

--addrfile=<address file>
    Tell MAID to look in a file for a list of addresses to monitor

--outfile=<output file>
    Tell MAID to send all reporting information to a file.  If not specified,
    reports will be sent to stdout.


REGISTERING ADDRESSES
--

Additionally, addresses may be registered (and unregistered) at runtime with 
the functions:

    MAID_register_address(void *)
    MAID_unregister_address(void *)

Please note that to use these functions, you must define them yourself as
    void MAID_register_address(void *addr) {}
    void MAID_unregister_address(void *addr) {}

Since g++ may prepend and append random stuff to the function names, MAID
searches for functions containing the above substrings.  Therefore, it is not
advisable to have other functions with names similar to those above.


EXAMPLES
--

Have a look at addrfile.txt and tests/foo.c

To run maid:

pin -t ./maid [options] -- tests/foo


BUGS
--

gcc and g++ aren't so great at providing file:lineno information.  Using icc
to compile your application will probably result in higher quality output.