Re: [PATCH v2] tsan: Add param to disable func-entry-exit instrumentation

2020-06-12 Thread Marco Elver via Gcc-patches
On Fri, 12 Jun 2020 at 17:27, Martin Liška wrote: > > On 6/12/20 4:19 PM, Marco Elver wrote: > > On Fri, 12 Jun 2020, Jakub Jelinek wrote: > > > >> On Fri, Jun 12, 2020 at 04:07:57PM +0200, Marco Elver wrote: > >>> gcc/ChangeLog: > >>> > >>> * params.opt: Add --param=tsan-instrument-func-entry

Re: [PATCH v2] tsan: Add param to disable func-entry-exit instrumentation

2020-06-12 Thread Martin Liška
On 6/12/20 4:19 PM, Marco Elver wrote: On Fri, 12 Jun 2020, Jakub Jelinek wrote: On Fri, Jun 12, 2020 at 04:07:57PM +0200, Marco Elver wrote: gcc/ChangeLog: * params.opt: Add --param=tsan-instrument-func-entry-exit=. * tsan.c (instrument_gimple): Make return value if func entr

Re: [PATCH v2] tsan: Add param to disable func-entry-exit instrumentation

2020-06-12 Thread Marco Elver via Gcc-patches
On Fri, 12 Jun 2020, Jakub Jelinek wrote: > On Fri, Jun 12, 2020 at 04:07:57PM +0200, Marco Elver wrote: > > gcc/ChangeLog: > > > > * params.opt: Add --param=tsan-instrument-func-entry-exit=. > > * tsan.c (instrument_gimple): Make return value if func entry > > and exit should be inst

Re: [PATCH v2] tsan: Add param to disable func-entry-exit instrumentation

2020-06-12 Thread Jakub Jelinek via Gcc-patches
On Fri, Jun 12, 2020 at 04:07:57PM +0200, Marco Elver wrote: > gcc/ChangeLog: > > * params.opt: Add --param=tsan-instrument-func-entry-exit=. > * tsan.c (instrument_gimple): Make return value if func entry > and exit should be instrumented dependent on param. > > gcc/testsuite/C

[PATCH v2] tsan: Add param to disable func-entry-exit instrumentation

2020-06-12 Thread Marco Elver via Gcc-patches
Adds param tsan-instrument-func-entry-exit, which controls if __tsan_func_{entry,exit} calls should be emitted or not. The default behaviour is to emit the calls. This may be required by alternative race detection runtimes. One such runtime is the Kernel Concurrency Sanitizer (KCSAN): htt