Skip to content

cross-tool-compatible annotations #283

@derekbruening

Description

@derekbruening

From [email protected] on February 01, 2011 11:05:18

Timur suggested creating some kind of combined annotation handling
so app devs don't have to use 3 different annotations between Memcheck,
Dr. Memory, and ThreadSanitizer.

Dr. Memory does not yet have any so we can design it to be
compatible with the others. xref issue #61 on the
AmIRunningUnderDrMemory() annotation.

memcheck uses certain instr sequences.
tsan uses empty func calls, which is what I would lean toward as well.
users don't want to put in 3 different annotations for 3 different tools:
to cover both, maybe have func call that includes memcheck sequence?
though perf hit of call for memcheck: prob not a big deal, not
often in hot code

memcheck's anotations:

  • am I under valgrind
  • cache flush of mem region (V8)
  • is this mem region defined
    used for earlier check of memory that may be sent over network
    much later, e.g., or when add false pos suppression can put
    this prior to passing to complex code (e.g., zlib) and next one (mark
    def) when data comes back.
  • mark this region defined
    to fix false pos instead of changing code

Original issue: http://code.google.com/p/drmemory/issues/detail?id=283

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions