blob: 5e38f8605b02b8f419b7375da8214ada9049619c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// SPDX-License-Identifier: GPL-2.0
#if defined(__x86_64__)
/*
* Include usdt.h with default nop,nop10 instructions combo.
*/
#include "usdt.h"
__attribute__((aligned(16)))
void usdt_2(void)
{
USDT(optimized_attach, usdt_2);
}
static volatile unsigned long usdt_red_zone_arg1 = 0xDEADBEEF;
static volatile unsigned long usdt_red_zone_arg2 = 0xCAFEBABE;
static volatile unsigned long usdt_red_zone_arg3 = 0xFEEDFACE;
void __attribute__((noinline)) usdt_red_zone_trigger(void)
{
unsigned long a1 = usdt_red_zone_arg1;
unsigned long a2 = usdt_red_zone_arg2;
unsigned long a3 = usdt_red_zone_arg3;
USDT(optimized_attach, usdt_red_zone, a1, a2, a3);
}
#endif
|