@@ -94,7 +94,7 @@ static int unwind_entry(struct unwind_entry *entry, void *arg)
94
94
return strcmp ((const char * ) symbol , funcs [idx ]);
95
95
}
96
96
97
- noinline int test_dwarf_unwind__thread (struct thread * thread )
97
+ __no_tail_call noinline int test_dwarf_unwind__thread (struct thread * thread )
98
98
{
99
99
struct perf_sample sample ;
100
100
unsigned long cnt = 0 ;
@@ -125,7 +125,7 @@ noinline int test_dwarf_unwind__thread(struct thread *thread)
125
125
126
126
static int global_unwind_retval = - INT_MAX ;
127
127
128
- noinline int test_dwarf_unwind__compare (void * p1 , void * p2 )
128
+ __no_tail_call noinline int test_dwarf_unwind__compare (void * p1 , void * p2 )
129
129
{
130
130
/* Any possible value should be 'thread' */
131
131
struct thread * thread = * (struct thread * * )p1 ;
@@ -144,7 +144,7 @@ noinline int test_dwarf_unwind__compare(void *p1, void *p2)
144
144
return p1 - p2 ;
145
145
}
146
146
147
- noinline int test_dwarf_unwind__krava_3 (struct thread * thread )
147
+ __no_tail_call noinline int test_dwarf_unwind__krava_3 (struct thread * thread )
148
148
{
149
149
struct thread * array [2 ] = {thread , thread };
150
150
void * fp = & bsearch ;
@@ -163,12 +163,12 @@ noinline int test_dwarf_unwind__krava_3(struct thread *thread)
163
163
return global_unwind_retval ;
164
164
}
165
165
166
- noinline int test_dwarf_unwind__krava_2 (struct thread * thread )
166
+ __no_tail_call noinline int test_dwarf_unwind__krava_2 (struct thread * thread )
167
167
{
168
168
return test_dwarf_unwind__krava_3 (thread );
169
169
}
170
170
171
- noinline int test_dwarf_unwind__krava_1 (struct thread * thread )
171
+ __no_tail_call noinline int test_dwarf_unwind__krava_1 (struct thread * thread )
172
172
{
173
173
return test_dwarf_unwind__krava_2 (thread );
174
174
}
0 commit comments