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

2020-06-12 Thread Marco Elver via Gcc-patches
On Fri, 12 Jun 2020 at 12:29, Jakub Jelinek wrote: > > On Fri, Jun 12, 2020 at 09:21:59AM +0200, Marco Elver wrote: > > 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. > > If

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

2020-06-12 Thread Jakub Jelinek via Gcc-patches
On Fri, Jun 12, 2020 at 09:21:59AM +0200, Marco Elver wrote: > 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. If you want that, I wonder if the spots you've chosen are the best o

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

2020-06-12 Thread Martin Liška
On 6/12/20 9:21 AM, Marco Elver wrote: 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. I support the patch. What about Jakub? Martin

[PATCH] 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