|
@@ -76,8 +76,7 @@ static int unwind_entry(struct unwind_entry *entry, void *arg)
|
|
return strcmp((const char *) symbol, funcs[idx]);
|
|
return strcmp((const char *) symbol, funcs[idx]);
|
|
}
|
|
}
|
|
|
|
|
|
-__attribute__ ((noinline))
|
|
|
|
-static int unwind_thread(struct thread *thread)
|
|
|
|
|
|
+static noinline int unwind_thread(struct thread *thread)
|
|
{
|
|
{
|
|
struct perf_sample sample;
|
|
struct perf_sample sample;
|
|
unsigned long cnt = 0;
|
|
unsigned long cnt = 0;
|
|
@@ -108,8 +107,7 @@ static int unwind_thread(struct thread *thread)
|
|
|
|
|
|
static int global_unwind_retval = -INT_MAX;
|
|
static int global_unwind_retval = -INT_MAX;
|
|
|
|
|
|
-__attribute__ ((noinline))
|
|
|
|
-static int compare(void *p1, void *p2)
|
|
|
|
|
|
+static noinline int compare(void *p1, void *p2)
|
|
{
|
|
{
|
|
/* Any possible value should be 'thread' */
|
|
/* Any possible value should be 'thread' */
|
|
struct thread *thread = *(struct thread **)p1;
|
|
struct thread *thread = *(struct thread **)p1;
|
|
@@ -128,8 +126,7 @@ static int compare(void *p1, void *p2)
|
|
return p1 - p2;
|
|
return p1 - p2;
|
|
}
|
|
}
|
|
|
|
|
|
-__attribute__ ((noinline))
|
|
|
|
-static int krava_3(struct thread *thread)
|
|
|
|
|
|
+static noinline int krava_3(struct thread *thread)
|
|
{
|
|
{
|
|
struct thread *array[2] = {thread, thread};
|
|
struct thread *array[2] = {thread, thread};
|
|
void *fp = &bsearch;
|
|
void *fp = &bsearch;
|
|
@@ -147,14 +144,12 @@ static int krava_3(struct thread *thread)
|
|
return global_unwind_retval;
|
|
return global_unwind_retval;
|
|
}
|
|
}
|
|
|
|
|
|
-__attribute__ ((noinline))
|
|
|
|
-static int krava_2(struct thread *thread)
|
|
|
|
|
|
+static noinline int krava_2(struct thread *thread)
|
|
{
|
|
{
|
|
return krava_3(thread);
|
|
return krava_3(thread);
|
|
}
|
|
}
|
|
|
|
|
|
-__attribute__ ((noinline))
|
|
|
|
-static int krava_1(struct thread *thread)
|
|
|
|
|
|
+static noinline int krava_1(struct thread *thread)
|
|
{
|
|
{
|
|
return krava_2(thread);
|
|
return krava_2(thread);
|
|
}
|
|
}
|