/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | symbol-elf.c | 1438 struct kcore { struct 1445 static int kcore__open(struct kcore *kcore, const char *filename) in kcore__open() argument 1449 kcore->fd = open(filename, O_RDONLY); in kcore__open() 1450 if (kcore->fd == -1) in kcore__open() 1453 kcore->elf = elf_begin(kcore->fd, ELF_C_READ, NULL); in kcore__open() 1454 if (!kcore->elf) in kcore__open() 1457 kcore->elfclass = gelf_getclass(kcore in kcore__open() 1474 kcore__init(struct kcore *kcore, char *filename, int elfclass, bool temp) kcore__init() argument 1505 kcore__close(struct kcore *kcore) kcore__close() argument 1547 kcore__add_phdr(struct kcore *kcore, int idx, off_t offset, u64 addr, u64 len) kcore__add_phdr() argument 1567 kcore__write(struct kcore *kcore) kcore__write() argument 2012 struct kcore kcore; kcore_copy() local 2095 struct kcore kcore; kcore_extract__create() local [all...] |
H A D | record.h | 50 bool kcore; member
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | symbol-elf.c | 1914 struct kcore { struct 1921 static int kcore__open(struct kcore *kcore, const char *filename) in kcore__open() argument 1925 kcore->fd = open(filename, O_RDONLY); in kcore__open() 1926 if (kcore->fd == -1) in kcore__open() 1929 kcore->elf = elf_begin(kcore->fd, ELF_C_READ, NULL); in kcore__open() 1930 if (!kcore->elf) in kcore__open() 1933 kcore->elfclass = gelf_getclass(kcore in kcore__open() 1950 kcore__init(struct kcore *kcore, char *filename, int elfclass, bool temp) kcore__init() argument 1981 kcore__close(struct kcore *kcore) kcore__close() argument 2023 kcore__add_phdr(struct kcore *kcore, int idx, off_t offset, u64 addr, u64 len) kcore__add_phdr() argument 2043 kcore__write(struct kcore *kcore) kcore__write() argument 2488 struct kcore kcore; kcore_copy() local 2571 struct kcore kcore; kcore_extract__create() local [all...] |
H A D | record.h | 52 bool kcore; member
|
/kernel/linux/linux-5.10/fs/proc/ |
H A D | Makefile | 32 proc-$(CONFIG_PROC_KCORE) += kcore.o
|
H A D | kcore.c | 3 * fs/proc/kcore.c kernel ELF core dumper 16 #include <linux/kcore.h> 583 /* just remember that we have to update kcore */ 639 proc_root_kcore = proc_create("kcore", S_IRUSR, NULL, &kcore_proc_ops); in proc_kcore_init() 641 pr_err("couldn't create /proc/kcore\n"); in proc_kcore_init()
|
H A D | vmcore.c | 5 * Heavily borrowed from fs/proc/kcore.c 12 #include <linux/kcore.h>
|
/kernel/linux/linux-6.6/fs/proc/ |
H A D | Makefile | 32 proc-$(CONFIG_PROC_KCORE) += kcore.o
|
H A D | kcore.c | 3 * fs/proc/kcore.c kernel ELF core dumper 16 #include <linux/kcore.h> 638 /* just remember that we have to update kcore */ 690 proc_root_kcore = proc_create("kcore", S_IRUSR, NULL, &kcore_proc_ops); in proc_kcore_init() 692 pr_err("couldn't create /proc/kcore\n"); in proc_kcore_init()
|
H A D | vmcore.c | 5 * Heavily borrowed from fs/proc/kcore.c 12 #include <linux/kcore.h>
|
/kernel/linux/linux-5.10/tools/perf/ |
H A D | perf-with-kcore.sh | 3 # perf-with-kcore: use perf with a copy of kcore 11 echo "Usage: perf-with-kcore <perf sub-command> <perf.data directory> [<sub-command options> [ -- <workload>]]" >&2 13 echo " or: perf-with-kcore fix_buildid_cache_permissions" >&2 37 echo "Copying kcore" 52 KCORE=$(($SUDO "$PERF" buildid-cache -v -f -k /proc/kcore >/dev/null) 2>&1) 54 "kcore added to build-id cache directory "*) 55 KCORE_DIR=${KCORE#"kcore added to build-id cache directory "} 62 echo "Failed to find kcore" >&2 72 $SUDO rm -f "$KCORE_DIR/kcore" [all...] |
H A D | builtin-record.c | 809 char kcore[PATH_MAX]; in record__kcore_readable() local 812 scnprintf(kcore, sizeof(kcore), "%s/proc/kcore", machine->root_dir); in record__kcore_readable() 814 fd = open(kcore, O_RDONLY); in record__kcore_readable() 1680 if (rec->opts.kcore && in __cmd_record() 1682 pr_err("ERROR: kcore is not readable.\n"); in __cmd_record() 1717 if (rec->opts.kcore) { in __cmd_record() 1720 pr_err("ERROR: Failed to copy kcore\n"); in __cmd_record() 2498 OPT_BOOLEAN(0, "kcore", [all...] |
/kernel/linux/linux-5.10/arch/x86/mm/ |
H A D | cpu_entry_area.c | 6 #include <linux/kcore.h>
|
H A D | init_64.c | 35 #include <linux/kcore.h> 1304 /* Register memory areas for /proc/kcore */ in mem_init()
|
/kernel/linux/linux-6.6/arch/x86/mm/ |
H A D | cpu_entry_area.c | 6 #include <linux/kcore.h>
|
H A D | init_64.c | 35 #include <linux/kcore.h> 1350 /* Register memory areas for /proc/kcore */ in mem_init()
|
/kernel/linux/linux-6.6/tools/perf/ |
H A D | builtin-record.c | 911 char kcore[PATH_MAX]; in record__kcore_readable() local 914 scnprintf(kcore, sizeof(kcore), "%s/proc/kcore", machine->root_dir); in record__kcore_readable() 916 fd = open(kcore, O_RDONLY); in record__kcore_readable() 2390 if (rec->opts.kcore && in __cmd_record() 2392 pr_err("ERROR: kcore is not readable.\n"); in __cmd_record() 2437 if (rec->opts.kcore) { in __cmd_record() 2440 pr_err("ERROR: Failed to copy kcore\n"); in __cmd_record() 3405 OPT_BOOLEAN(0, "kcore", [all...] |
/kernel/linux/linux-5.10/arch/mips/mm/ |
H A D | init.c | 32 #include <linux/kcore.h>
|
/kernel/linux/linux-5.10/arch/x86/kernel/ |
H A D | aperture_64.c | 17 #include <linux/kcore.h>
|
/kernel/linux/linux-6.6/arch/mips/mm/ |
H A D | init.c | 32 #include <linux/kcore.h>
|
/kernel/linux/linux-6.6/arch/x86/kernel/ |
H A D | aperture_64.c | 17 #include <linux/kcore.h>
|