HEX
Server: LiteSpeed
System: Linux w5304130.sdnsbox.com 4.18.0-425.3.1.lve.el8.x86_64 #1 SMP Tue Nov 22 22:59:23 EST 2022 x86_64
User: makefitmeserver (1001)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: //usr/share/systemtap/runtime/linux/autoconf-unwind-stack-trace.c
#include <linux/sched.h>
#include <asm/unwind.h>

void unwind_stack_trace (void)
{
  struct unwind_state state;
  unwind_start (&state, current, 0, 0);
  while (! unwind_done (&state))
    {
      unsigned long addr = unwind_get_return_address (&state);
      if (addr == 0)
	break;
      unwind_next_frame (&state);
    }
}