# git rev-parse -q --verify 1bbeaf83dd7b5e3628b98bec66ff8fe2646e14aa^{commit} 1bbeaf83dd7b5e3628b98bec66ff8fe2646e14aa already have revision, skipping fetch # git checkout -q -f -B kisskb 1bbeaf83dd7b5e3628b98bec66ff8fe2646e14aa # git clean -qxdf # < git log -1 # commit 1bbeaf83dd7b5e3628b98bec66ff8fe2646e14aa # Merge: 63bd30f249dc 0f66dfe7b91d # Author: Linus Torvalds # Date: Thu Mar 14 16:31:23 2024 -0700 # # Merge tag 'perf-tools-for-v6.9-2024-03-13' of git://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools # # Pull perf tools updates from Namhyung Kim: # "perf stat: # # - Support new 'cluster' aggregation mode for shared resources # depending on the hardware configuration: # # $ sudo perf stat -a --per-cluster -e cycles,instructions sleep 1 # # Performance counter stats for 'system wide': # # S0-D0-CLS0 2 85,051,822 cycles # S0-D0-CLS0 2 73,909,908 instructions # 0.87 insn per cycle # S0-D0-CLS2 2 93,365,918 cycles # S0-D0-CLS2 2 83,006,158 instructions # 0.89 insn per cycle # S0-D0-CLS4 2 104,157,523 cycles # S0-D0-CLS4 2 53,234,396 instructions # 0.51 insn per cycle # S0-D0-CLS6 2 65,891,079 cycles # S0-D0-CLS6 2 41,478,273 instructions # 0.63 insn per cycle # # 1.002407989 seconds time elapsed # # - Various fixes and cleanups for event metrics including NaN handling # # perf script: # # - Use libcapstone if available to disassemble the instructions. This # enables 'perf script -F disasm' and 'perf script --insn-trace=disasm' # (for Intel-PT): # # $ perf script -F event,ip,disasm # cycles:P: ffffffffa988d428 wrmsr # cycles:P: ffffffffa9839d25 movq %rax, %r14 # cycles:P: ffffffffa9cdcaf0 endbr64 # cycles:P: ffffffffa988d428 wrmsr # cycles:P: ffffffffa988d428 wrmsr # cycles:P: ffffffffaa401f86 iretq # cycles:P: ffffffffa99c4de5 movq 0x30(%rcx), %r8 # cycles:P: ffffffffa988d428 wrmsr # cycles:P: ffffffffaa401f86 iretq # cycles:P: ffffffffa9907983 movl 0x68(%rbx), %eax # cycles:P: ffffffffa988d428 wrmsr # # - Expose sample ID / stream ID to python scripts # # perf test: # # - Add more perf test cases from Redhat internal test suites. This # time it adds the base infra and a few perf probe tests. More to # come. :) # # - Add 'perf test -p' for parallel execution and fix some issues found # by the parallel test # # - Support symbol test to print symbols in given (active) module: # # $ perf test -F -v Symbols --dso /lib/modules/$(uname -r)/kernel/fs/ext4/ext4.ko # --- start --- # Testing /lib/modules/6.5.13-1rodete2-amd64/kernel/fs/ext4/ext4.ko # Overlapping symbols: # 7a990-7a9a0 l __pfx_ext4_exit_fs # 7a990-7a9a0 g __pfx_cleanup_module # Overlapping symbols: # 7a9a0-7aa1c l ext4_exit_fs # 7a9a0-7aa1c g cleanup_module # ... # # JSON metric updates: # # - A new round of Intel metric updates # # - Support Power11 PVR (compatible to Power10) # # - Fix cache latency events on Zen 4 to set SliceId properly # # Internal: # # - Fix reference counting for 'map' data structure, tireless work from # Ian! # # - More memory optimization for struct thread and annotate histogram. # Now, 'perf report' (TUI) and 'perf annotate' should be much # lighter-weight in terms of memory footprint # # - Support cross-arch perf register access. Clean up the build # configuration so that it can detect arch-register support at # runtime. This can allow to parse register data in sample which was # recorded in a different arch # # Others: # # - Sync task state in 'perf sched' to kernel using trace event fields. # The task states have been changed so tools cannot assume a fixed # encoding # # - Clean up 'perf mem' to generalize the arch-specific events # # - Add support for local and global variables to data type profiling. # This would increase the success rate of type resolution with DWARF # # - Add short option -H for --hierarchy in 'perf report' and 'perf top'" # # * tag 'perf-tools-for-v6.9-2024-03-13' of git://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools: (154 commits) # perf annotate: Add comments in the data structures # perf annotate: Remove sym_hist.addr[] array # perf annotate: Calculate instruction overhead using hashmap # perf annotate: Add a hashmap for symbol histogram # perf threads: Reduce table size from 256 to 8 # perf threads: Switch from rbtree to hashmap # perf threads: Move threads to its own files # perf machine: Move machine's threads into its own abstraction # perf machine: Move fprintf to for_each loop and a callback # perf trace: Ignore thread hashing in summary # perf report: Sort child tasks by tid # perf vendor events amd: Fix Zen 4 cache latency events # perf version: Display availability of OpenCSD support # perf vendor events intel: Add umasks/occ_sel to PCU events. # perf map: Fix map reference count issues # libperf evlist: Avoid out-of-bounds access # perf lock contention: Account contending locks too # perf metrics: Fix segv for metrics with no events # perf metrics: Fix metric matching # perf pmu: Fix a potential memory leak in perf_pmu__lookup() # ... # < /opt/cross/kisskb/korg/gcc-8.5.0-nolibc/mips-linux/bin/mips-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-8.5.0-nolibc/mips-linux/bin/mips-linux-ld --version # < git log --format=%s --max-count=1 1bbeaf83dd7b5e3628b98bec66ff8fe2646e14aa # make -s -j 40 ARCH=mips O=/kisskb/build/linus_allmodconfig_mips-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/mips-linux/bin/mips-linux- allmodconfig # Added to kconfig CONFIG_BUILD_DOCSRC=n # Added to kconfig CONFIG_MODULE_SIG=n # Added to kconfig CONFIG_SAMPLES=n # Added to kconfig CONFIG_MIPS_CPS_NS16550_BASE=0x1b0003f8 # Added to kconfig CONFIG_MIPS_CPS_NS16550_SHIFT=0 # Added to kconfig CONFIG_GCC_PLUGINS=n # Added to kconfig # < make -s -j 40 ARCH=mips O=/kisskb/build/linus_allmodconfig_mips-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/mips-linux/bin/mips-linux- help # make -s -j 40 ARCH=mips O=/kisskb/build/linus_allmodconfig_mips-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/mips-linux/bin/mips-linux- olddefconfig .config:14967:warning: override: reassigning to symbol MIPS_CPS_NS16550_SHIFT # make -s -j 40 ARCH=mips O=/kisskb/build/linus_allmodconfig_mips-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/mips-linux/bin/mips-linux- /kisskb/src/arch/mips/boot/dts/img/boston.dts:128.17-178.5: Warning (interrupt_provider): /pci@14000000/pci2_root@0,0: '#interrupt-cells' found, but node is not an interrupt provider /kisskb/src/arch/mips/boot/dts/img/boston.dts:136.23-177.6: Warning (interrupt_provider): /pci@14000000/pci2_root@0,0/eg20t_bridge@1,0,0: '#interrupt-cells' found, but node is not an interrupt provider arch/mips/boot/dts/img/boston.dtb: Warning (interrupt_map): Failed prerequisite 'interrupt_provider' /kisskb/src/drivers/gpu/drm/xe/xe_lrc.c:100: error: "END" redefined [-Werror] #define END 0 In file included from /kisskb/src/arch/mips/include/asm/bitops.h:19, from /kisskb/src/include/linux/bitops.h:68, from /kisskb/src/include/linux/thread_info.h:27, from /kisskb/src/include/asm-generic/preempt.h:5, from ./arch/mips/include/generated/asm/preempt.h:1, from /kisskb/src/include/linux/preempt.h:79, from /kisskb/src/include/linux/spinlock.h:56, from /kisskb/src/include/linux/wait.h:9, from /kisskb/src/include/linux/dma-fence.h:17, from /kisskb/src/drivers/gpu/drm/xe/xe_hw_fence_types.h:9, from /kisskb/src/drivers/gpu/drm/xe/xe_lrc_types.h:9, from /kisskb/src/drivers/gpu/drm/xe/xe_lrc.h:8, from /kisskb/src/drivers/gpu/drm/xe/xe_lrc.c:6: /kisskb/src/arch/mips/include/asm/asm.h:69: note: this is the location of the previous definition #define END(function) \ cc1: all warnings being treated as errors make[7]: *** [/kisskb/src/scripts/Makefile.build:243: drivers/gpu/drm/xe/xe_lrc.o] Error 1 make[6]: *** [/kisskb/src/scripts/Makefile.build:481: drivers/gpu/drm/xe] Error 2 make[6]: *** Waiting for unfinished jobs.... In file included from /kisskb/src/include/linux/string.h:369, from /kisskb/src/include/linux/bitmap.h:13, from /kisskb/src/include/linux/cpumask.h:13, from /kisskb/src/include/linux/smp.h:13, from /kisskb/src/arch/mips/include/asm/cpu-type.h:12, from /kisskb/src/arch/mips/include/asm/timex.h:19, from /kisskb/src/include/linux/timex.h:67, from /kisskb/src/include/linux/time32.h:13, from /kisskb/src/include/linux/time.h:60, from /kisskb/src/include/linux/jiffies.h:10, from /kisskb/src/include/linux/ktime.h:25, from /kisskb/src/include/linux/iopoll.h:11, from /kisskb/src/drivers/crypto/intel/qat/qat_common/adf_gen4_hw_data.c:3: In function 'fortify_memcpy_chk', inlined from 'adf_gen4_init_thd2arb_map' at /kisskb/src/drivers/crypto/intel/qat/qat_common/adf_gen4_hw_data.c:401:3: /kisskb/src/include/linux/fortify-string.h:553:4: error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror] __write_overflow_field(p_size_field, size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/include/linux/fortify-string.h:562:4: error: call to '__read_overflow2_field' declared with attribute warning: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Werror] __read_overflow2_field(q_size_field, size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[8]: *** [/kisskb/src/scripts/Makefile.build:243: drivers/crypto/intel/qat/qat_common/adf_gen4_hw_data.o] Error 1 make[8]: *** Waiting for unfinished jobs.... make[7]: *** [/kisskb/src/scripts/Makefile.build:481: drivers/crypto/intel/qat/qat_common] Error 2 make[6]: *** [/kisskb/src/scripts/Makefile.build:481: drivers/crypto/intel/qat] Error 2 make[5]: *** [/kisskb/src/scripts/Makefile.build:481: drivers/crypto/intel] Error 2 make[5]: *** Waiting for unfinished jobs.... make[4]: *** [/kisskb/src/scripts/Makefile.build:481: drivers/crypto] Error 2 make[4]: *** Waiting for unfinished jobs.... make[5]: *** [/kisskb/src/scripts/Makefile.build:481: drivers/gpu/drm] Error 2 make[4]: *** [/kisskb/src/scripts/Makefile.build:481: drivers/gpu] Error 2 make[3]: *** [/kisskb/src/scripts/Makefile.build:481: drivers] Error 2 make[2]: *** [/kisskb/src/Makefile:1920: .] Error 2 make[1]: *** [/kisskb/src/Makefile:240: __sub-make] Error 2 make: *** [Makefile:240: __sub-make] Error 2 Command 'make -s -j 40 ARCH=mips O=/kisskb/build/linus_allmodconfig_mips-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/mips-linux/bin/mips-linux- ' returned non-zero exit status 2. # rm -rf /kisskb/build/linus_allmodconfig_mips-gcc8 # Build took: 0:09:15.812297