Skip to content

Commit

Permalink
Adding kernel headers and scripts for docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Markuze committed Nov 27, 2022
1 parent 3e99384 commit e61dbf1
Show file tree
Hide file tree
Showing 8,087 changed files with 1,086,575 additions and 268 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
270 changes: 270 additions & 0 deletions BCC_README.md

Large diffs are not rendered by default.

329 changes: 61 additions & 268 deletions README.md

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions headers/5.4.196-108.356.amzn2.x86_64/arch/x86/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
boot/compressed/vmlinux
tools/test_get_len
tools/insn_sanity
tools/insn_decoder_test
purgatory/kexec-purgatory.c
purgatory/purgatory.ro

12 changes: 12 additions & 0 deletions headers/5.4.196-108.356.amzn2.x86_64/arch/x86/boot/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
bootsect
bzImage
cpustr.h
mkcpustr
voffset.h
zoffset.h
setup
setup.bin
setup.elf
fdimage
mtools.conf
image.iso
44 changes: 44 additions & 0 deletions headers/5.4.196-108.356.amzn2.x86_64/arch/x86/boot/bitops.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/* -*- linux-c -*- ------------------------------------------------------- *
*
* Copyright (C) 1991, 1992 Linus Torvalds
* Copyright 2007 rPath, Inc. - All Rights Reserved
*
* ----------------------------------------------------------------------- */

/*
* Very simple bitops for the boot code.
*/

#ifndef BOOT_BITOPS_H
#define BOOT_BITOPS_H
#define _LINUX_BITOPS_H /* Inhibit inclusion of <linux/bitops.h> */

#include <linux/types.h>
#include <asm/asm.h>

static inline bool constant_test_bit(int nr, const void *addr)
{
const u32 *p = (const u32 *)addr;
return ((1UL << (nr & 31)) & (p[nr >> 5])) != 0;
}
static inline bool variable_test_bit(int nr, const void *addr)
{
bool v;
const u32 *p = (const u32 *)addr;

asm("btl %2,%1" CC_SET(c) : CC_OUT(c) (v) : "m" (*p), "Ir" (nr));
return v;
}

#define test_bit(nr,addr) \
(__builtin_constant_p(nr) ? \
constant_test_bit((nr),(addr)) : \
variable_test_bit((nr),(addr)))

static inline void set_bit(int nr, void *addr)
{
asm("btsl %1,%0" : "+m" (*(u32 *)addr) : "Ir" (nr));
}

#endif /* BOOT_BITOPS_H */
Loading

0 comments on commit e61dbf1

Please sign in to comment.