Revision 0206131811fa6e4b3ed64b5f1c107e2815dcab42 authored by Ravi Bangoria on 10 January 2019, 09:49:35 UTC, committed by Arnaldo Carvalho de Melo on 10 January 2019, 13:34:52 UTC
Commit aff850393200 ("powerpc: add system call table generation support") changed how systemcall table is generated for powerpc. Incorporate these changes into perf as well. Committer testing: $ podman run --entrypoint=/bin/sh --privileged -v /home/acme/git:/git --rm -ti docker.io/acmel/linux-perf-tools-build-ubuntu:18.04-x-powerpc64 perfbuilder@d7a7af166a80:/git/perf$ head -2 /etc/os-release NAME="Ubuntu" VERSION="18.04.1 LTS (Bionic Beaver)" perfbuilder@d7a7af166a80:/git/perf$ perfbuilder@d7a7af166a80:/git/perf$ make ARCH=powerpc CROSS_COMPILE=powerpc64-linux-gnu- EXTRA_CFLAGS= -C /git/linux/tools/perf O=/tmp/build/perf make: Entering directory '/git/linux/tools/perf' BUILD: Doing 'make -j8' parallel build HOSTCC /tmp/build/perf/fixdep.o HOSTLD /tmp/build/perf/fixdep-in.o LINK /tmp/build/perf/fixdep Warning: Kernel ABI header at 'tools/include/uapi/linux/mman.h' differs from latest version at 'include/uapi/linux/mman.h' diff -u tools/include/uapi/linux/mman.h include/uapi/linux/mman.h sh: 1: command: Illegal option -c Auto-detecting system features: ... dwarf: [ on ] ... dwarf_getlocations: [ on ] ... glibc: [ on ] ... gtk2: [ OFF ] ... libaudit: [ OFF ] ... libbfd: [ OFF ] ... libelf: [ on ] ... libnuma: [ OFF ] ... numa_num_possible_cpus: [ OFF ] ... libperl: [ OFF ] ... libpython: [ OFF ] ... libslang: [ OFF ] ... libcrypto: [ OFF ] ... libunwind: [ OFF ] ... libdw-dwarf-unwind: [ on ] ... zlib: [ on ] ... lzma: [ OFF ] ... get_cpuid: [ OFF ] ... bpf: [ on ] Makefile.config:445: No sys/sdt.h found, no SDT events are defined, please install systemtap-sdt-devel or systemtap-sdt-dev Makefile.config:491: No libunwind found. Please install libunwind-dev[el] >= 1.1 and/or set LIBUNWIND_DIR Makefile.config:583: No libcrypto.h found, disables jitted code injection, please install libssl-devel or libssl-dev Makefile.config:598: slang not found, disables TUI support. Please install slang-devel, libslang-dev or libslang2-dev Makefile.config:612: GTK2 not found, disables GTK2 support. Please install gtk2-devel or libgtk2.0-dev Makefile.config:639: Missing perl devel files. Disabling perl scripting support, please install perl-ExtUtils-Embed/libperl-dev Makefile.config:666: No python interpreter was found: disables Python support - please install python-devel/python-dev Makefile.config:721: No bfd.h/libbfd found, please install binutils-dev[el]/zlib-static/libiberty-dev to gain symbol demangling Makefile.config:750: No liblzma found, disables xz kernel module decompression, please install xz-devel/liblzma-dev Makefile.config:763: No numa.h found, disables 'perf bench numa mem' benchmark, please install numactl-devel/libnuma-devel/libnuma-dev Makefile.config:814: No libbabeltrace found, disables 'perf data' CTF format support, please install libbabeltrace-dev[el]/libbabeltrace-ctf-dev Makefile.config:840: No alternatives command found, you need to set JDIR= to point to the root of your Java directory GEN /tmp/build/perf/common-cmds.h <SNIP> CC /tmp/build/perf/util/syscalltbl.o <SNIP> LD /tmp/build/perf/libperf-in.o AR /tmp/build/perf/libperf.a LINK /tmp/build/perf/perf make: Leaving directory '/git/linux/tools/perf' perfbuilder@d7a7af166a80:/git/perf$ head /tmp/build/perf/arch/powerpc/include/generated/asm/syscalls_64.c static const char *syscalltbl_powerpc_64[] = { [0] = "restart_syscall", [1] = "exit", [2] = "fork", [3] = "read", [4] = "write", [5] = "open", [6] = "close", [7] = "waitpid", [8] = "creat", perfbuilder@d7a7af166a80:/git/perf$ tail /tmp/build/perf/arch/powerpc/include/generated/asm/syscalls_64.c [381] = "pwritev2", [382] = "kexec_file_load", [383] = "statx", [384] = "pkey_alloc", [385] = "pkey_free", [386] = "pkey_mprotect", [387] = "rseq", [388] = "io_pgetevents", }; #define SYSCALLTBL_POWERPC_64_MAX_ID 388 perfbuilder@d7a7af166a80:/git/perf$ head /tmp/build/perf/arch/powerpc/include/generated/asm/syscalls_32.c static const char *syscalltbl_powerpc_32[] = { [0] = "restart_syscall", [1] = "exit", [2] = "fork", [3] = "read", [4] = "write", [5] = "open", [6] = "close", [7] = "waitpid", [8] = "creat", perfbuilder@d7a7af166a80:/git/perf$ tail /tmp/build/perf/arch/powerpc/include/generated/asm/syscalls_32.c [381] = "pwritev2", [382] = "kexec_file_load", [383] = "statx", [384] = "pkey_alloc", [385] = "pkey_free", [386] = "pkey_mprotect", [387] = "rseq", [388] = "io_pgetevents", }; #define SYSCALLTBL_POWERPC_32_MAX_ID 388 perfbuilder@d7a7af166a80:/git/perf$ Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com> Reported-by: Arnaldo Carvalho de Melo <acme@redhat.com> Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Namhyung Kim <namhyung@kernel.org> Cc: linuxppc-dev@lists.ozlabs.org Link: http://lkml.kernel.org/r/20190110094936.3132-1-ravi.bangoria@linux.ibm.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 549aff7
File | Mode | Size |
---|---|---|
40x_mmu.c | -rw-r--r-- | 4.4 KB |
44x_mmu.c | -rw-r--r-- | 6.3 KB |
8xx_mmu.c | -rw-r--r-- | 4.9 KB |
Makefile | -rw-r--r-- | 2.3 KB |
copro_fault.c | -rw-r--r-- | 4.1 KB |
dma-noncoherent.c | -rw-r--r-- | 10.6 KB |
drmem.c | -rw-r--r-- | 9.9 KB |
dump_bats.c | -rw-r--r-- | 4.4 KB |
dump_hashpagetable.c | -rw-r--r-- | 13.0 KB |
dump_linuxpagetables-8xx.c | -rw-r--r-- | 1.5 KB |
dump_linuxpagetables-book3s64.c | -rw-r--r-- | 2.2 KB |
dump_linuxpagetables-generic.c | -rw-r--r-- | 1.5 KB |
dump_linuxpagetables.c | -rw-r--r-- | 9.6 KB |
dump_linuxpagetables.h | -rw-r--r-- | 300 bytes |
dump_sr.c | -rw-r--r-- | 1.4 KB |
fault.c | -rw-r--r-- | 19.2 KB |
fsl_booke_mmu.c | -rw-r--r-- | 8.7 KB |
hash64_4k.c | -rw-r--r-- | 3.6 KB |
hash64_64k.c | -rw-r--r-- | 9.0 KB |
hash_low_32.S | -rw-r--r-- | 19.4 KB |
hash_native_64.c | -rw-r--r-- | 23.1 KB |
hash_utils_64.c | -rw-r--r-- | 50.0 KB |
highmem.c | -rw-r--r-- | 2.2 KB |
hugepage-hash64.c | -rw-r--r-- | 5.2 KB |
hugetlbpage-book3e.c | -rw-r--r-- | 4.2 KB |
hugetlbpage-hash64.c | -rw-r--r-- | 3.6 KB |
hugetlbpage-radix.c | -rw-r--r-- | 2.4 KB |
hugetlbpage.c | -rw-r--r-- | 22.1 KB |
init-common.c | -rw-r--r-- | 3.7 KB |
init_32.c | -rw-r--r-- | 4.7 KB |
init_64.c | -rw-r--r-- | 11.0 KB |
mem.c | -rw-r--r-- | 15.2 KB |
mmap.c | -rw-r--r-- | 6.2 KB |
mmu_context.c | -rw-r--r-- | 2.9 KB |
mmu_context_book3s64.c | -rw-r--r-- | 5.5 KB |
mmu_context_hash32.c | -rw-r--r-- | 3.4 KB |
mmu_context_iommu.c | -rw-r--r-- | 12.4 KB |
mmu_context_nohash.c | -rw-r--r-- | 13.2 KB |
mmu_decl.h | -rw-r--r-- | 4.7 KB |
numa.c | -rw-r--r-- | 37.9 KB |
pgtable-book3e.c | -rw-r--r-- | 3.1 KB |
pgtable-book3s64.c | -rw-r--r-- | 10.7 KB |
pgtable-frag.c | -rw-r--r-- | 2.5 KB |
pgtable-hash64.c | -rw-r--r-- | 13.5 KB |
pgtable-radix.c | -rw-r--r-- | 26.0 KB |
pgtable.c | -rw-r--r-- | 7.8 KB |
pgtable_32.c | -rw-r--r-- | 9.4 KB |
pgtable_64.c | -rw-r--r-- | 8.3 KB |
pkeys.c | -rw-r--r-- | 10.6 KB |
ppc_mmu_32.c | -rw-r--r-- | 7.5 KB |
slb.c | -rw-r--r-- | 21.4 KB |
slice.c | -rw-r--r-- | 22.9 KB |
subpage-prot.c | -rw-r--r-- | 6.5 KB |
tlb-radix.c | -rw-r--r-- | 28.6 KB |
tlb_hash32.c | -rw-r--r-- | 4.2 KB |
tlb_hash64.c | -rw-r--r-- | 7.6 KB |
tlb_low_64e.S | -rw-r--r-- | 36.9 KB |
tlb_nohash.c | -rw-r--r-- | 20.0 KB |
tlb_nohash_low.S | -rw-r--r-- | 10.1 KB |
vphn.c | -rw-r--r-- | 2.0 KB |
vphn.h | -rw-r--r-- | 528 bytes |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...