blob: f2f025d00a3922b60abe33dbd2d8f09ee1edba92 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// SPDX-License-Identifier: GPL-2.0
/* Static local in a patched function. */
static const char __modinfo[]
__attribute__((section(".modinfo"), used, aligned(1))) = "\0name=vmlinux";
int target(int x)
{
static int counter;
counter += 1;
#ifdef PATCHED
return x + counter + 1;
#else
return x + counter;
#endif
}
|