Home
last modified time | relevance | path

Searched refs:kcore (Results 1 - 21 of 21) sorted by relevance

/kernel/linux/linux-5.10/tools/perf/util/
H A Dsymbol-elf.c1438 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 Drecord.h50 bool kcore; member
/kernel/linux/linux-6.6/tools/perf/util/
H A Dsymbol-elf.c1914 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 Drecord.h52 bool kcore; member
/kernel/linux/linux-5.10/fs/proc/
H A DMakefile32 proc-$(CONFIG_PROC_KCORE) += kcore.o
H A Dkcore.c3 * 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 Dvmcore.c5 * Heavily borrowed from fs/proc/kcore.c
12 #include <linux/kcore.h>
/kernel/linux/linux-6.6/fs/proc/
H A DMakefile32 proc-$(CONFIG_PROC_KCORE) += kcore.o
H A Dkcore.c3 * 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 Dvmcore.c5 * Heavily borrowed from fs/proc/kcore.c
12 #include <linux/kcore.h>
/kernel/linux/linux-5.10/tools/perf/
H A Dperf-with-kcore.sh3 # 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 Dbuiltin-record.c809 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 Dcpu_entry_area.c6 #include <linux/kcore.h>
H A Dinit_64.c35 #include <linux/kcore.h>
1304 /* Register memory areas for /proc/kcore */ in mem_init()
/kernel/linux/linux-6.6/arch/x86/mm/
H A Dcpu_entry_area.c6 #include <linux/kcore.h>
H A Dinit_64.c35 #include <linux/kcore.h>
1350 /* Register memory areas for /proc/kcore */ in mem_init()
/kernel/linux/linux-6.6/tools/perf/
H A Dbuiltin-record.c911 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 Dinit.c32 #include <linux/kcore.h>
/kernel/linux/linux-5.10/arch/x86/kernel/
H A Daperture_64.c17 #include <linux/kcore.h>
/kernel/linux/linux-6.6/arch/mips/mm/
H A Dinit.c32 #include <linux/kcore.h>
/kernel/linux/linux-6.6/arch/x86/kernel/
H A Daperture_64.c17 #include <linux/kcore.h>

Completed in 27 milliseconds