History log of /llvm-project/llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp (Results 151 – 175 of 242)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 7c9b086e 19-Apr-2017 Evgeniy Stepanov <eugeni.stepanov@gmail.com>

Remove two unused variables (-Werror).

llvm-svn: 300777


# be87d480 19-Apr-2017 Kostya Serebryany <kcc@google.com>

[sanitizer-coverage] remove stale code

llvm-svn: 300769


# 59a2d7b9 11-Apr-2017 Serge Guelton <sguelton@quarkslab.com>

Module::getOrInsertFunction is using C-style vararg instead of variadic templates.

From a user prospective, it forces the use of an annoying nullptr to mark the end of the vararg, and there's not ty

Module::getOrInsertFunction is using C-style vararg instead of variadic templates.

From a user prospective, it forces the use of an annoying nullptr to mark the end of the vararg, and there's not type checking on the arguments.
The variadic template is an obvious solution to both issues.

Differential Revision: https://reviews.llvm.org/D31070

llvm-svn: 299949

show more ...


# b050c7fb 11-Apr-2017 Diana Picus <diana.picus@linaro.org>

Revert "Turn some C-style vararg into variadic templates"

This reverts commit r299925 because it broke the buildbots. See e.g.
http://lab.llvm.org:8011/builders/clang-cmake-armv7-a15/builds/6008

ll

Revert "Turn some C-style vararg into variadic templates"

This reverts commit r299925 because it broke the buildbots. See e.g.
http://lab.llvm.org:8011/builders/clang-cmake-armv7-a15/builds/6008

llvm-svn: 299928

show more ...


# 5fd75fb7 11-Apr-2017 Serge Guelton <sguelton@quarkslab.com>

Turn some C-style vararg into variadic templates

Module::getOrInsertFunction is using C-style vararg instead of
variadic templates.

From a user prospective, it forces the use of an annoying nullptr

Turn some C-style vararg into variadic templates

Module::getOrInsertFunction is using C-style vararg instead of
variadic templates.

From a user prospective, it forces the use of an annoying nullptr
to mark the end of the vararg, and there's not type checking on the
arguments. The variadic template is an obvious solution to both
issues.

llvm-svn: 299925

show more ...


# db11fdfd 06-Apr-2017 Mehdi Amini <mehdi.amini@apple.com>

Revert "Turn some C-style vararg into variadic templates"

This reverts commit r299699, the examples needs to be updated.

llvm-svn: 299702


# 579540a8 06-Apr-2017 Mehdi Amini <mehdi.amini@apple.com>

Turn some C-style vararg into variadic templates

Module::getOrInsertFunction is using C-style vararg instead of
variadic templates.

From a user prospective, it forces the use of an annoying nullptr

Turn some C-style vararg into variadic templates

Module::getOrInsertFunction is using C-style vararg instead of
variadic templates.

From a user prospective, it forces the use of an annoying nullptr
to mark the end of the vararg, and there's not type checking on the
arguments. The variadic template is an obvious solution to both
issues.

Patch by: Serge Guelton <serge.guelton@telecom-bretagne.eu>

Differential Revision: https://reviews.llvm.org/D31070

llvm-svn: 299699

show more ...


# 392f0626 23-Mar-2017 Reid Kleckner <rnk@google.com>

[sancov] Don't instrument blocks with no insertion point

This prevents crashes when attempting to instrument functions containing
C++ try.

Sanitizer coverage will still fail at runtime when an exce

[sancov] Don't instrument blocks with no insertion point

This prevents crashes when attempting to instrument functions containing
C++ try.

Sanitizer coverage will still fail at runtime when an exception is
thrown through a sancov instrumented function, but that seems marginally
better than what we have now. The full solution is to color the blocks
in LLVM IR and only instrument blocks that have an unambiguous color,
using the appropriate token.

llvm-svn: 298662

show more ...


Revision tags: llvmorg-4.0.0, llvmorg-4.0.0-rc4, llvmorg-4.0.0-rc3, llvmorg-4.0.0-rc2
# 4705ae93 08-Feb-2017 Mike Aizatsky <aizatsky@chromium.org>

[sancov] using comdat only when it is enabled

Differential Revision: https://reviews.llvm.org/D29733

llvm-svn: 294529


# 401d3693 08-Feb-2017 Mike Aizatsky <aizatsky@chromium.org>

[sancov] specifying comdat for sancov constructors

Differential Revision: https://reviews.llvm.org/D29662

llvm-svn: 294517


# db5a5655 03-Feb-2017 Marcos Pividori <mpividori@google.com>

[sanitizer coverage] Fix Instrumentation to work on Windows.

On Windows, the symbols "___stop___sancov_guards" and "___start___sancov_guards"
are not defined automatically. So, we need to take a dif

[sanitizer coverage] Fix Instrumentation to work on Windows.

On Windows, the symbols "___stop___sancov_guards" and "___start___sancov_guards"
are not defined automatically. So, we need to take a different approach.
We define 3 sections:

Section ".SCOV$A" will only hold a variable ___start___sancov_guard.
Section ".SCOV$M" will hold the main data.
Section ".SCOV$Z" will only hold a variable ___stop___sancov_guards.

When linking, they will be merged sorted by the characters after the $, so we
can use the pointers of the variables ___[start|stop]___sancov_guard to know the
actual range of addresses of that section.

In this diff, I updated instrumentation to include all the guard arrays in
section ".SCOV$M".

Differential Revision: https://reviews.llvm.org/D28434

llvm-svn: 293987

show more ...


# 41e632bf 01-Feb-2017 Justin Bogner <mail@justinbogner.com>

SanitizerCoverage: Support sanitizer guard section on darwin

MachO's sections need a segment as well as a section name, and the
section start and end symbols are spelled differently than on ELF.

ll

SanitizerCoverage: Support sanitizer guard section on darwin

MachO's sections need a segment as well as a section name, and the
section start and end symbols are spelled differently than on ELF.

llvm-svn: 293733

show more ...


# 4b2ff07c 24-Jan-2017 Kostya Serebryany <kcc@google.com>

[sanitizer-coverage] emit __sanitizer_cov_trace_pc_guard w/o a preceding 'if' by default. Update the docs, also add deprecation notes around other parts of sanitizer coverage

llvm-svn: 292862


Revision tags: llvmorg-4.0.0-rc1
# f24e52c0 27-Dec-2016 Kostya Serebryany <kcc@google.com>

[sanitizer-coverage] sort the switch cases

llvm-svn: 290628


Revision tags: llvmorg-3.9.1, llvmorg-3.9.1-rc3
# 520753a3 03-Dec-2016 Kostya Serebryany <kcc@google.com>

[sanitizer-coverage] use IRB.SetCurrentDebugLocation after IRB.SetInsertPoint

llvm-svn: 288568


Revision tags: llvmorg-3.9.1-rc2, llvmorg-3.9.1-rc1
# 3a83e768 16-Nov-2016 Reid Kleckner <rnk@google.com>

[sancov] Name the global containing the main source file name

If the global name doesn't start with __sancov_gen, ASan will insert
unecessary red zones around it.

llvm-svn: 287117


# 9d6dc7b1 15-Nov-2016 Kostya Serebryany <kcc@google.com>

[sanitizer-coverage] make sure asan does not instrument coverage guards (reported in https://github.com/google/oss-fuzz/issues/84)

llvm-svn: 287030


# ec803548 11-Nov-2016 Reid Kleckner <rnk@google.com>

[sancov] Don't instrument MSVC CRT stdio config helpers

They get called before initialization, which is a problem for winasan.

Test coming in compiler-rt.

llvm-svn: 286615


# 4d25ad93 11-Oct-2016 Kostya Serebryany <kcc@google.com>

[sanitizer-coverage] use private linkage for coverage guards, delete old commented-out code.

llvm-svn: 283924


# 117296c0 01-Oct-2016 Mehdi Amini <mehdi.amini@apple.com>

Use StringRef in Pass/PassManager APIs (NFC)

llvm-svn: 283004


# a9b0dd0e 29-Sep-2016 Kostya Serebryany <kcc@google.com>

[sanitizer-coverage/libFuzzer] make the guards for trace-pc 32-bit; create one array of guards per function, instead of one guard per BB. reorganize the code so that trace-pc-guard does not create un

[sanitizer-coverage/libFuzzer] make the guards for trace-pc 32-bit; create one array of guards per function, instead of one guard per BB. reorganize the code so that trace-pc-guard does not create unneeded globals

llvm-svn: 282735

show more ...


# 45c14475 27-Sep-2016 Kostya Serebryany <kcc@google.com>

[sanitizer-coverage] fix a bug in trace-gep

llvm-svn: 282467


# 186d6180 27-Sep-2016 Kostya Serebryany <kcc@google.com>

[sanitizer-coverage] don't emit the CTOR function if nothing has been instrumented

llvm-svn: 282465


# 06694d0a 20-Sep-2016 Kostya Serebryany <kcc@google.com>

[sanitizer-coverage] add comdat to coverage guards if needed

llvm-svn: 281952


# 8e781a88 18-Sep-2016 Kostya Serebryany <kcc@google.com>

[libFuzzer] use 'if guard' instead of 'if guard >= 0' with trace-pc; change the guard type to intptr_t; use separate array for 8-bit counters

llvm-svn: 281845


12345678910