pa2.2: add ftrace

This commit is contained in:
xinyangli 2024-03-20 19:46:54 +08:00
parent 0f7c6fd508
commit 9229e4318e
8 changed files with 190 additions and 5 deletions

View file

@ -92,6 +92,8 @@
#define PG_ALIGN __attribute((aligned(4096)))
#define FAILED_GOTO(tag, exp) do {if((exp)) goto tag;} while(0)
#if !defined(likely)
#define likely(cond) __builtin_expect(cond, 1)
#define unlikely(cond) __builtin_expect(cond, 0)