Contributors: 30
Author |
Tokens |
Token Proportion |
Commits |
Commit Proportion |
Eric DeVolder |
69 |
15.75% |
4 |
9.09% |
Alexander Nyberg |
50 |
11.42% |
1 |
2.27% |
Vivek Goyal |
49 |
11.19% |
5 |
11.36% |
Baoquan He |
44 |
10.05% |
1 |
2.27% |
Eric W. Biedermann |
39 |
8.90% |
1 |
2.27% |
Hari Bathini |
17 |
3.88% |
2 |
4.55% |
AKASHI Takahiro |
17 |
3.88% |
1 |
2.27% |
Coiby Xu |
17 |
3.88% |
3 |
6.82% |
Andrew Morton |
17 |
3.88% |
1 |
2.27% |
Américo Wang |
15 |
3.42% |
1 |
2.27% |
Sourabh Jain |
11 |
2.51% |
2 |
4.55% |
Hidehiro Kawai |
11 |
2.51% |
1 |
2.27% |
Xunlei Pang |
10 |
2.28% |
3 |
6.82% |
Naveen N. Rao |
8 |
1.83% |
1 |
2.27% |
Petr Tesarik |
8 |
1.83% |
1 |
2.27% |
David Disseldorp |
7 |
1.60% |
1 |
2.27% |
Huang Ying |
6 |
1.37% |
1 |
2.27% |
Russell King |
6 |
1.37% |
1 |
2.27% |
Philipp Rudo |
6 |
1.37% |
1 |
2.27% |
Dave Young |
5 |
1.14% |
1 |
2.27% |
Kees Cook |
5 |
1.14% |
1 |
2.27% |
Linus Torvalds (pre-git) |
5 |
1.14% |
2 |
4.55% |
Ken'ichi Ohmichi |
4 |
0.91% |
1 |
2.27% |
Magnus Damm |
4 |
0.91% |
1 |
2.27% |
Ralf Baechle |
3 |
0.68% |
1 |
2.27% |
Liao Chang |
1 |
0.23% |
1 |
2.27% |
Michael Holzheu |
1 |
0.23% |
1 |
2.27% |
Valentin Schneider |
1 |
0.23% |
1 |
2.27% |
Greg Kroah-Hartman |
1 |
0.23% |
1 |
2.27% |
Simon Horman |
1 |
0.23% |
1 |
2.27% |
Total |
438 |
|
44 |
|
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef LINUX_CRASH_CORE_H
#define LINUX_CRASH_CORE_H
#include <linux/linkage.h>
#include <linux/elfcore.h>
#include <linux/elf.h>
struct kimage;
struct crash_mem {
unsigned int max_nr_ranges;
unsigned int nr_ranges;
struct range ranges[] __counted_by(max_nr_ranges);
};
#ifdef CONFIG_CRASH_DUMP
int crash_shrink_memory(unsigned long new_size);
ssize_t crash_get_memory_size(void);
#ifndef arch_kexec_protect_crashkres
/*
* Protection mechanism for crashkernel reserved memory after
* the kdump kernel is loaded.
*
* Provide an empty default implementation here -- architecture
* code may override this
*/
static inline void arch_kexec_protect_crashkres(void) { }
#endif
#ifndef arch_kexec_unprotect_crashkres
static inline void arch_kexec_unprotect_crashkres(void) { }
#endif
#ifdef CONFIG_CRASH_DM_CRYPT
int crash_load_dm_crypt_keys(struct kimage *image);
ssize_t dm_crypt_keys_read(char *buf, size_t count, u64 *ppos);
#else
static inline int crash_load_dm_crypt_keys(struct kimage *image) {return 0; }
#endif
#ifndef arch_crash_handle_hotplug_event
static inline void arch_crash_handle_hotplug_event(struct kimage *image, void *arg) { }
#endif
int crash_check_hotplug_support(void);
#ifndef arch_crash_hotplug_support
static inline int arch_crash_hotplug_support(struct kimage *image, unsigned long kexec_flags)
{
return 0;
}
#endif
#ifndef crash_get_elfcorehdr_size
static inline unsigned int crash_get_elfcorehdr_size(void) { return 0; }
#endif
/* Alignment required for elf header segment */
#define ELF_CORE_HEADER_ALIGN 4096
extern int crash_exclude_mem_range(struct crash_mem *mem,
unsigned long long mstart,
unsigned long long mend);
extern int crash_prepare_elf64_headers(struct crash_mem *mem, int need_kernel_map,
void **addr, unsigned long *sz);
struct kimage;
struct kexec_segment;
#define KEXEC_CRASH_HP_NONE 0
#define KEXEC_CRASH_HP_ADD_CPU 1
#define KEXEC_CRASH_HP_REMOVE_CPU 2
#define KEXEC_CRASH_HP_ADD_MEMORY 3
#define KEXEC_CRASH_HP_REMOVE_MEMORY 4
#define KEXEC_CRASH_HP_INVALID_CPU -1U
extern void __crash_kexec(struct pt_regs *regs);
extern void crash_kexec(struct pt_regs *regs);
int kexec_should_crash(struct task_struct *p);
int kexec_crash_loaded(void);
void crash_save_cpu(struct pt_regs *regs, int cpu);
extern int kimage_crash_copy_vmcoreinfo(struct kimage *image);
#else /* !CONFIG_CRASH_DUMP*/
struct pt_regs;
struct task_struct;
struct kimage;
static inline void __crash_kexec(struct pt_regs *regs) { }
static inline void crash_kexec(struct pt_regs *regs) { }
static inline int kexec_should_crash(struct task_struct *p) { return 0; }
static inline int kexec_crash_loaded(void) { return 0; }
static inline void crash_save_cpu(struct pt_regs *regs, int cpu) {};
static inline int kimage_crash_copy_vmcoreinfo(struct kimage *image) { return 0; };
#endif /* CONFIG_CRASH_DUMP*/
#endif /* LINUX_CRASH_CORE_H */