Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull perf tooling fixes from Ingo Molnar:
"Three small tooling fixes"

* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
perf tools: Improve error reporting
perf tools: Adjust symbols in VDSO
perf kvm: Fix 'Min time' counting in report command

+12 -2
+1
tools/perf/builtin-kvm.c
··· 404 404 } 405 405 406 406 event->key = *key; 407 + init_stats(&event->total.stats); 407 408 return event; 408 409 } 409 410
+1 -1
tools/perf/builtin-record.c
··· 374 374 375 375 session = perf_session__new(file, false, NULL); 376 376 if (session == NULL) { 377 - pr_err("Not enough memory for reading perf file header\n"); 377 + pr_err("Perf session creation failed.\n"); 378 378 return -1; 379 379 } 380 380
+8 -1
tools/perf/util/data.c
··· 86 86 87 87 static int open_file_write(struct perf_data_file *file) 88 88 { 89 + int fd; 90 + 89 91 if (check_backup(file)) 90 92 return -1; 91 93 92 - return open(file->path, O_CREAT|O_RDWR|O_TRUNC, S_IRUSR|S_IWUSR); 94 + fd = open(file->path, O_CREAT|O_RDWR|O_TRUNC, S_IRUSR|S_IWUSR); 95 + 96 + if (fd < 0) 97 + pr_err("failed to open %s : %s\n", file->path, strerror(errno)); 98 + 99 + return fd; 93 100 } 94 101 95 102 static int open_file(struct perf_data_file *file)
+2
tools/perf/util/symbol-elf.c
··· 6 6 #include <inttypes.h> 7 7 8 8 #include "symbol.h" 9 + #include "vdso.h" 9 10 #include <symbol/kallsyms.h> 10 11 #include "debug.h" 11 12 ··· 619 618 GElf_Shdr shdr; 620 619 ss->adjust_symbols = (ehdr.e_type == ET_EXEC || 621 620 ehdr.e_type == ET_REL || 621 + is_vdso_map(dso->short_name) || 622 622 elf_section_by_name(elf, &ehdr, &shdr, 623 623 ".gnu.prelink_undo", 624 624 NULL) != NULL);