Commit 347c6aab authored by Brendan Gregg's avatar Brendan Gregg Committed by GitHub

Merge pull request #401 from caringi/fix_begin_probe

Prevent empty trigger functions to be optimized away with -O2 (#218)
parents 8082d4a4 9f2069b2
......@@ -2,6 +2,6 @@
extern "C"
{
void BEGIN_trigger() { }
void END_trigger() { }
void __attribute__((noinline)) BEGIN_trigger() { asm (""); }
void __attribute__((noinline)) END_trigger() { asm (""); }
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment