Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp1411115rdb; Sat, 23 Dec 2023 05:56:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IF4z9Xrjo/tZj7oi9E2l15pBeFQK9TtYWz03gLmDQWXLMTHiZbiCc2hNwRoidcjXDDbXowG X-Received: by 2002:ae9:f449:0:b0:781:18bc:fb07 with SMTP id z9-20020ae9f449000000b0078118bcfb07mr3215622qkl.157.1703339763002; Sat, 23 Dec 2023 05:56:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703339762; cv=none; d=google.com; s=arc-20160816; b=Zz6E0LHSYlR6dOWZr2EB3IxoRi9LhS6AAcWIpGza70BhaAOdJKIOrpZh3pS0EfG2/2 HlEK3yTpbQiiYf7DgScdZFC7tiALQSPSbPzcACMgSBGYWGI302xhGUbBqCQYXdobGTwU vi1TcZaVcoqo5SQt9W261NmGyFnO7inxnnVwaLvMHVhztdjErvkxFMes3do7pEkai9bk D5FWonlpfnQbxAiPwmRtaZhBM6T1pIeyNUyl+NDuUjgGGTgUS+zsX45vVJXMCe8xR5bw YEq+tdZLftPUs8F41Y5RnxtLRHzgbl/Mw5YWo1y3rm/k0Q78PXHYoOcJEMBkAE+NjLqr lSzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=4sRwzkffi/Kq8rcA/AhTisuO7u6TyTshhUzOgDA43xQ=; fh=DuQNFeZ7dMmKhhOqddSkc0ramjz2uvCtHgFMEgNbGoE=; b=pEKlqDbZPma2FgOSJOqhOIJXaKJTu5P+8Rd0vzvH3lKfV0LdW23CitHbVRXSjcuLE6 7rmMYRtFTkrhKDwaBKiXVCdvC4SgJ5Z/m0Mdy1J3mLI9NVW4eUO2sLh/d4ZNyrRLtQgc 74OL1OWYbFAtbsfCTeSJxrMJxLVWYzIk3G6ax49Ikwfu83WaQUha1RYL4YSs1+VRa1sr n0qOE4vXmOL0zVFCcpI1pbzauQPzv8kuP3o4lSw0K83EetEmd+pSaUFDvzOgyZcxP2ik 19gkM4tHYOvRBCBMqED2pFs8QntOPX5A31mcK+MnBp70fVficI4Qy3ZkGS5JDp8ZGdVu 186g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lhQueJ9B; spf=pass (google.com: domain of linux-kernel+bounces-10434-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10434-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c16-20020ae9e210000000b0078129984488si4112168qkc.148.2023.12.23.05.56.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Dec 2023 05:56:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10434-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lhQueJ9B; spf=pass (google.com: domain of linux-kernel+bounces-10434-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10434-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 728C71C210BC for ; Sat, 23 Dec 2023 13:56:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 38750D53B; Sat, 23 Dec 2023 13:55:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lhQueJ9B" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 61310D50F; Sat, 23 Dec 2023 13:55:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78228C433C7; Sat, 23 Dec 2023 13:55:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703339751; bh=0mLuBLrBHAiW0ELmlviQtOxKG1lFb2q4zh910zddwv8=; h=Date:From:To:Cc:Subject:From; b=lhQueJ9BdTUXSG7DigPOrwmFPUKbPB8cDoUHtbdp5z3XUanUDAMjqa22Bih/RSzYZ C5RoFUPjHHc2egs9+xUeL9Du8CPh6tADT9xjn4B8WUjZqdiUsCy+ydy8NDpGuKEGAN zl9ph4FuqQeiUKFx6O+y4/uhOT2nr2SHHKPiJymM2VTPE3FVRzXI2KYJbit6a7VFDx z+utsJo90Zn6oSf+D8lKxnCNixJWRWuEHIx/riZrlqxDVWoZOoOPvWW9jdEy431uU8 Ucr7/zlxu1dzL5amfmA7iGdNcdq7cEAVWT3MGNGn8z+ebXRbP6055nA9T3KCzndYR7 wSlzZKa1JBj8w== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 3D48C403EF; Sat, 23 Dec 2023 10:55:48 -0300 (-03) Date: Sat, 23 Dec 2023 10:55:48 -0300 From: Arnaldo Carvalho de Melo To: Kan Liang Cc: Adrian Hunter , Ian Rogers , Jiri Olsa , Namhyung Kim , linux-perf-users@vger.kernel.org, Linux Kernel Mailing List Subject: perf test hybrid failing on 14700K Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Url: http://acmel.wordpress.com Hi Kan, I noticed the following problem, are you able to reproduce it? Happy solstice! - Arnaldo root@number:/home/acme/Downloads# grep "model name" -m1 /proc/cpuinfo model name : Intel(R) Core(TM) i7-14700K root@number:/home/acme/Downloads# uname -a Linux number 6.6.4-200.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Dec 3 18:13:11 UTC 2023 x86_64 GNU/Linux root@number:/home/acme/Downloads# perf -vv perf version 6.7.rc6.g63daba4e2861 dwarf: [ on ] # HAVE_DWARF_SUPPORT dwarf_getlocations: [ on ] # HAVE_DWARF_GETLOCATIONS_SUPPORT syscall_table: [ on ] # HAVE_SYSCALL_TABLE_SUPPORT libbfd: [ OFF ] # HAVE_LIBBFD_SUPPORT debuginfod: [ on ] # HAVE_DEBUGINFOD_SUPPORT libelf: [ on ] # HAVE_LIBELF_SUPPORT libnuma: [ on ] # HAVE_LIBNUMA_SUPPORT numa_num_possible_cpus: [ on ] # HAVE_LIBNUMA_SUPPORT libperl: [ on ] # HAVE_LIBPERL_SUPPORT libpython: [ on ] # HAVE_LIBPYTHON_SUPPORT libslang: [ on ] # HAVE_SLANG_SUPPORT libcrypto: [ on ] # HAVE_LIBCRYPTO_SUPPORT libunwind: [ on ] # HAVE_LIBUNWIND_SUPPORT libdw-dwarf-unwind: [ on ] # HAVE_DWARF_SUPPORT zlib: [ on ] # HAVE_ZLIB_SUPPORT lzma: [ on ] # HAVE_LZMA_SUPPORT get_cpuid: [ on ] # HAVE_AUXTRACE_SUPPORT bpf: [ on ] # HAVE_LIBBPF_SUPPORT aio: [ on ] # HAVE_AIO_SUPPORT zstd: [ on ] # HAVE_ZSTD_SUPPORT libpfm4: [ on ] # HAVE_LIBPFM libtraceevent: [ on ] # HAVE_LIBTRACEEVENT bpf_skeletons: [ on ] # HAVE_BPF_SKEL root@number:/home/acme/Downloads# perf test 75 75: x86 hybrid : FAILED! root@number:/home/acme/Downloads# perf test -v 75 75: x86 hybrid : --- start --- test child forked, pid 4111587 Using CPUID GenuineIntel-6-B7-1 running test 0 'cpu_core/cpu-cycles/' FAILED arch/x86/tests/hybrid.c:30 wrong type Event test failure: test 0 'cpu_core/cpu-cycles/'running test 1 '{cpu_core/cpu-cycles/,cpu_core/instructions/}' FAILED arch/x86/tests/hybrid.c:42 wrong type Event test failure: test 1 '{cpu_core/cpu-cycles/,cpu_core/instructions/}'running test 2 '{cpu-clock,cpu_core/cpu-cycles/}' FAILED arch/x86/tests/hybrid.c:65 wrong type Event test failure: test 2 '{cpu-clock,cpu_core/cpu-cycles/}'running test 3 '{cpu_core/cpu-cycles/,cpu-clock}' FAILED arch/x86/tests/hybrid.c:78 wrong type Event test failure: test 3 '{cpu_core/cpu-cycles/,cpu-clock}'running test 4 '{cpu_core/cpu-cycles/k,cpu_core/instructions/u}' FAILED arch/x86/tests/hybrid.c:95 wrong type Event test failure: test 4 '{cpu_core/cpu-cycles/k,cpu_core/instructions/u}'running test 5 'r1a' running test 6 'cpu_core/r1a/' running test 7 'cpu_core/config=10,config1,config2=3,period=1000/u' WARNING: event 'N/A' not valid (bits 0-1 of config2 '3' not supported by kernel)! running test 8 'cpu_core/LLC-loads/' test child finished with -1 ---- end ---- x86 hybrid: FAILED! root@number:/home/acme/Downloads# root@number:/home/acme/Downloads# perf trace -e perf_event_open perf test -F -v 75 75: x86 hybrid : --- start --- Using CPUID GenuineIntel-6-B7-1 running test 0 'cpu_core/cpu-cycles/' FAILED arch/x86/tests/hybrid.c:30 wrong type Event test failure: test 0 'cpu_core/cpu-cycles/'running test 1 '{cpu_core/cpu-cycles/,cpu_core/instructions/}' FAILED arch/x86/tests/hybrid.c:42 wrong type Event test failure: test 1 '{cpu_core/cpu-cycles/,cpu_core/instructions/}'running test 2 '{cpu-clock,cpu_core/cpu-cycles/}' FAILED arch/x86/tests/hybrid.c:65 wrong type Event test failure: test 2 '{cpu-clock,cpu_core/cpu-cycles/}'running test 3 '{cpu_core/cpu-cycles/,cpu-clock}' FAILED arch/x86/tests/hybrid.c:78 wrong type Event test failure: test 3 '{cpu_core/cpu-cycles/,cpu-clock}'running test 4 '{cpu_core/cpu-cycles/k,cpu_core/instructions/u}' FAILED arch/x86/tests/hybrid.c:95 wrong type Event test failure: test 4 '{cpu_core/cpu-cycles/k,cpu_core/instructions/u}'running test 5 'r1a' running test 6 'cpu_core/r1a/' running test 7 'cpu_core/config=10,config1,config2=3,period=1000/u' WARNING: event 'N/A' not valid (bits 0-1 of config2 '3' not supported by kernel)! running test 8 'cpu_core/LLC-loads/' ---- end ---- x86 hybrid: FAILED! 0.000 ( 0.008 ms): :4115165/4115165 perf_event_open(attr_uptr: { type: 0 (PERF_TYPE_HARDWARE), config: 0xa00000000, disabled: 1, { bp_len, config2 }: 0x900000000, branch_sample_type: USER|COUNTERS, sample_regs_user: 0x3ecaddffffffff, sample_stack_user: 4115165, clockid: 925535355, sample_regs_intr: 0x8140c90000a8f7, sample_max_stack: 8, sig_data: 120259084288 }, cpu: -1, group_fd: -1, flags: FD_CLOEXEC) = 3 0.010 ( 0.002 ms): :4115165/4115165 perf_event_open(attr_uptr: { type: 0 (PERF_TYPE_HARDWARE), config: 0x400000000, disabled: 1, { bp_len, config2 }: 0x900000000, branch_sample_type: USER|COUNTERS, sample_regs_user: 0x3ecaddffffffff, sample_stack_user: 4115165, clockid: 925538919, sample_regs_intr: 0x8140c90000a8f7, sample_max_stack: 8, sig_data: 120259084288 }, cpu: -1, group_fd: -1, flags: FD_CLOEXEC) = 4 root@number:/home/acme/Downloads# strace -e perf_event_open perf test -F -v 75 75: x86 hybrid : --- start --- Using CPUID GenuineIntel-6-B7-1 running test 0 'cpu_core/cpu-cycles/' FAILED arch/x86/tests/hybrid.c:30 wrong type Event test failure: test 0 'cpu_core/cpu-cycles/'running test 1 '{cpu_core/cpu-cycles/,cpu_core/instructions/}' FAILED arch/x86/tests/hybrid.c:42 wrong type Event test failure: test 1 '{cpu_core/cpu-cycles/,cpu_core/instructions/}'running test 2 '{cpu-clock,cpu_core/cpu-cycles/}' FAILED arch/x86/tests/hybrid.c:65 wrong type Event test failure: test 2 '{cpu-clock,cpu_core/cpu-cycles/}'running test 3 '{cpu_core/cpu-cycles/,cpu-clock}' FAILED arch/x86/tests/hybrid.c:78 wrong type Event test failure: test 3 '{cpu_core/cpu-cycles/,cpu-clock}'running test 4 '{cpu_core/cpu-cycles/k,cpu_core/instructions/u}' FAILED arch/x86/tests/hybrid.c:95 wrong type Event test failure: test 4 '{cpu_core/cpu-cycles/k,cpu_core/instructions/u}'running test 5 'r1a' running test 6 'cpu_core/r1a/' running test 7 'cpu_core/config=10,config1,config2=3,period=1000/u' WARNING: event 'N/A' not valid (bits 0-1 of config2 '3' not supported by kernel)! running test 8 'cpu_core/LLC-loads/' perf_event_open({type=PERF_TYPE_HARDWARE, size=0 /* PERF_ATTR_SIZE_??? */, config=0xa<<32|PERF_COUNT_HW_CPU_CYCLES, sample_period=0, sample_type=0, read_format=0, disabled=1, precise_ip=0 /* arbitrary skid */, ...}, 0, -1, -1, PERF_FLAG_FD_CLOEXEC) = 3 perf_event_open({type=PERF_TYPE_HARDWARE, size=0 /* PERF_ATTR_SIZE_??? */, config=0x4<<32|PERF_COUNT_HW_CPU_CYCLES, sample_period=0, sample_type=0, read_format=0, disabled=1, precise_ip=0 /* arbitrary skid */, ...}, 0, -1, -1, PERF_FLAG_FD_CLOEXEC) = 4 ---- end ---- x86 hybrid: FAILED! +++ exited with 0 +++ root@number:/home/acme/Downloads#