dwarf-unwind.c (e269d7caf9e0dbd95fac9991991298f74930c2c0) dwarf-unwind.c (df2252054eb0f9f65389f3911588256bcc4f973b)
1// SPDX-License-Identifier: GPL-2.0
2#include <linux/compiler.h>
3#include <linux/types.h>
4#include <linux/zalloc.h>
5#include <inttypes.h>
6#include <limits.h>
7#include <unistd.h>
8#include "tests.h"

--- 181 unchanged lines hidden (view full) ---

190{
191 int ret;
192
193 ret = test_dwarf_unwind__krava_2(thread);
194 NO_TAIL_CALL_BARRIER;
195 return ret;
196}
197
1// SPDX-License-Identifier: GPL-2.0
2#include <linux/compiler.h>
3#include <linux/types.h>
4#include <linux/zalloc.h>
5#include <inttypes.h>
6#include <limits.h>
7#include <unistd.h>
8#include "tests.h"

--- 181 unchanged lines hidden (view full) ---

190{
191 int ret;
192
193 ret = test_dwarf_unwind__krava_2(thread);
194 NO_TAIL_CALL_BARRIER;
195 return ret;
196}
197
198int test__dwarf_unwind(struct test *test __maybe_unused, int subtest __maybe_unused)
198static int test__dwarf_unwind(struct test *test __maybe_unused, int subtest __maybe_unused)
199{
200 struct machine *machine;
201 struct thread *thread;
202 int err = -1;
203
204 machine = machine__new_host();
205 if (!machine) {
206 pr_err("Could not get machine\n");

--- 25 unchanged lines hidden (view full) ---

232 err = test_dwarf_unwind__krava_1(thread);
233 thread__put(thread);
234
235 out:
236 machine__delete_threads(machine);
237 machine__delete(machine);
238 return err;
239}
199{
200 struct machine *machine;
201 struct thread *thread;
202 int err = -1;
203
204 machine = machine__new_host();
205 if (!machine) {
206 pr_err("Could not get machine\n");

--- 25 unchanged lines hidden (view full) ---

232 err = test_dwarf_unwind__krava_1(thread);
233 thread__put(thread);
234
235 out:
236 machine__delete_threads(machine);
237 machine__delete(machine);
238 return err;
239}
240
241struct test dwarf_unwind = {
242 .desc = "Test dwarf unwind",
243 .func = test__dwarf_unwind,
244};