From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=3.0 tests=DKIM_SIGNED,FSL_HELO_FAKE, MAILING_LIST_MULTI,SPF_PASS,T_DKIM_INVALID,URIBL_BLOCKED,USER_AGENT_MUTT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D6B0C43142 for ; Tue, 26 Jun 2018 06:46:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 03A0126574 for ; Tue, 26 Jun 2018 06:46:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="b18HTgKi" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 03A0126574 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751924AbeFZGql (ORCPT ); Tue, 26 Jun 2018 02:46:41 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:42490 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750942AbeFZGqi (ORCPT ); Tue, 26 Jun 2018 02:46:38 -0400 Received: by mail-wr0-f193.google.com with SMTP id p1-v6so367223wrs.9; Mon, 25 Jun 2018 23:46:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=V/9wRQ9+2saHa3xNDZA0V8MI+XMabu2Y6MinE5hLKhg=; b=b18HTgKiDW/OIxHky03jDA4REOX1fHgPhPzMSN1/LLVTM6WqTJh06CyFslKVPEpL2A Qm0CVdYVAri8G8tWQR+6zcsFAwnSk4rUVmIJeOiRzGbAQ7eowEx/Q7nhWhO5SYblEq43 q7Ne9oz3uANi7APh5qgl4FjdARJQCnkv6ApoKgUyh4CouZBU6g1p7uGPsa7p1Y/U9kob aXz0ocqyEd0/EXWnzPQ9mGvSBabTRBmioMsZLgU+fJx7CXGtaQ7ww2QhPBz0TixZV12F +A7+Hh7yjGiqGwnJgWBxQpWJPOPnEKqgdlgjP8vV4Y/Y5zxgSlCKjlReeVIhhjPc6ivR lAUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=V/9wRQ9+2saHa3xNDZA0V8MI+XMabu2Y6MinE5hLKhg=; b=SX604l7DeaaN+4MwgHLBQjkly3ykqBRdy6KH0HyCnur4GMMr+y1Lv/2ym2lxk2o29z AZwWiebd8lmzhZ9ebJlyVxEykW/6q0NL5khdDQXovn2J05KP2N+cOfye6Vtucs0aMZDn S3fmmwIV9r7TicWIGsXPaw0aQLglZRW1rdtxmj4HOiMRsGSU4lP2qZgBtvaby26JsGmw PcFfELT7+AIerGpgVQrtpYOQn3lJi8VqRxpCpLe6G8dRARg1SYt8eTVGB8bHSjziFEZW 4KkYOQNu1p2/irKEFcBUmrYaqnfuq0QPl/G0n3kyMByrepzZwSKk6KhLGHlDwldloSxD 6e2w== X-Gm-Message-State: APt69E1LVEl2XKCafm7JLCMTDqc8CrOP+fZJ2HSPY8RvWK45XV0pPf3u ePJEy7+7UvyYi13OVvyaPcQ= X-Google-Smtp-Source: AAOMgpdws1ZLFwdoEPso0l8MXQX8SfOobLvwDG6ipkIBxCIWXE+BUmWDuACyWU6vSarrfLhO6hTCng== X-Received: by 2002:adf:f08e:: with SMTP id n14-v6mr43422wro.49.1529995597114; Mon, 25 Jun 2018 23:46:37 -0700 (PDT) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id t9-v6sm821034wmh.41.2018.06.25.23.46.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 25 Jun 2018 23:46:36 -0700 (PDT) Date: Tue, 26 Jun 2018 08:46:33 +0200 From: Ingo Molnar To: Arnaldo Carvalho de Melo Cc: Clark Williams , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Adrian Hunter , Alexander Shishkin , Alexei Starovoitov , Andi Kleen , Ankit Nautiyal , Boqun Feng , Christoph Hellwig , Daniel Borkmann , David Ahern , "David S . Miller" , Eric Leblond , Hangbin Liu , Heiko Carstens , Hendrik Brueckner , Jin Yao , Jiri Olsa , Kim Phillips , Maarten Lankhorst , Martin KaFai Lau , Martin Schwidefsky , Mathieu Desnoyers , Michael Ellerman , Namhyung Kim , "Naveen N . Rao" , Nikolay Aleksandrov , Peter Zijlstra , Ravi Bangoria , Sandipan Das , stable@vger.kernel.org, Sukadev Bhattiprolu , Thomas Gleixner , Thomas Richter , Wang Nan , Yonghong Song , Arnaldo Carvalho de Melo Subject: Re: [GIT PULL 00/19] perf/urgent fixes for 4.18 Message-ID: <20180626064633.GA25879@gmail.com> References: <20180625174045.25765-1-acme@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180625174045.25765-1-acme@kernel.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Arnaldo Carvalho de Melo wrote: > Hi Ingo, > > Please consider pulling, > > - Arnaldo > > Test results at the end of this message, as usual. > > The following changes since commit 57d6a7938a8fc6cee8420b40ca244220b41721f5: > > perf/core: Move the inline keyword at the beginning of the function declaration (2018-06-22 11:07:47 +0200) > > are available in the Git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-urgent-for-mingo-4.18-20180625 > > for you to fetch changes up to 92ead7ee30c80f8852d28735cbcb9d79bc85f715: > > perf tools: Fix crash caused by accessing feat_ops[HEADER_LAST_FEATURE] (2018-06-25 11:59:37 -0300) > > ---------------------------------------------------------------- > perf/urgent fixes: > > perf bench: (Jiri Olsa): > > . Fix NUMA report output code handling of less than 1s runtimes. > > perf script: (Ravi Bangoria) > > . Add missing output fields in a 'perf script -h' hint. > > . Fix crash because of missing evsel->priv. > > . Fix crash caused by accessing feat_ops[HEADER_LAST_FEATURE], which > is just a end of features header marker. > > perf stat: (Thomas Richter) > > . Remove duplicate event counting > > perf test: > > . Wire parsing error handling in 'parse events' test (Jiri Olsa) > > . Fix 'session topology' test on s/390 (Thomas Richter) > > eBPF: (Yonghong Song) > > . Fix a clang 7.0 compilation error when building perf linking > with libclang > > intel-pt: (Adrian Hunter) > > . Fix packet decoding of CYC packets. > > Copies of kernel files: (Arnaldo Carvalho de Melo) > > . Synchronize drm/drm.h UAPI > > . Update x86's syscall_64.tbl, adding support for 'io_pgetevents' and 'rseq' > in 'perf trace'. > > . Update powerpc uapi/asm/unistd.h, adding support for the 'rseq' syscall. > > . Update if_link.h and bpf.h, no effect on tool features. > > PowerPC: (Sandipan Das) > > . Fix crash if callchain is empty. > > s/390: (Thomas Richter) > > . Support random socked_id assignment in the perf header. > > . Support s390 random socket_id assignment in perf.data file. > > . Make PMU alias definitions taken from sysfs and JSON files comparable > by normalizing them wrt spaces and newlines. > > Signed-off-by: Arnaldo Carvalho de Melo > > ---------------------------------------------------------------- > Adrian Hunter (1): > perf intel-pt: Fix packet decoding of CYC packets > > Arnaldo Carvalho de Melo (5): > tools headers uapi: Synchronize drm/drm.h > perf tools: Update x86's syscall_64.tbl, adding 'io_pgetevents' and 'rseq' > tools include powerpc: Update arch/powerpc/include/uapi/asm/unistd.h copy to get 'rseq' syscall > tools include uapi: Update if_link.h to pick IFLA_{BRPORT_ISOLATED,VXLAN_TTL_INHERIT} > tools include uapi: Synchronize bpf.h with the kernel > > Jiri Olsa (3): > perf tests: Add event parsing error handling to parse events test > perf tests: Add valid callback for parse-events test > perf bench: Fix numa report output code > > Ravi Bangoria (3): > perf script: Add missing output fields in a hint > perf script: Fix crash because of missing evsel->priv > perf tools: Fix crash caused by accessing feat_ops[HEADER_LAST_FEATURE] > > Sandipan Das (1): > perf report powerpc: Fix crash if callchain is empty > > Thomas Richter (5): > perf record: Support s390 random socket_id assignment > perf test session topology: Fix test on s390 > perf alias: Remove trailing newline when reading sysfs files > perf alias: Rebuild alias expression string to make it comparable > perf stat: Remove duplicate event counting > > Yonghong Song (1): > perf tools: Fix a clang 7.0 compilation error > > tools/arch/powerpc/include/uapi/asm/unistd.h | 1 + > tools/include/uapi/drm/drm.h | 7 ++ > tools/include/uapi/linux/bpf.h | 2 +- > tools/include/uapi/linux/if_link.h | 2 + > tools/perf/arch/powerpc/util/skip-callchain-idx.c | 2 +- > tools/perf/arch/x86/entry/syscalls/syscall_64.tbl | 2 + > tools/perf/bench/numa.c | 5 +- > tools/perf/builtin-annotate.c | 11 ++- > tools/perf/builtin-report.c | 3 +- > tools/perf/builtin-script.c | 30 ++++++- > tools/perf/tests/parse-events.c | 25 ++++-- > tools/perf/tests/topology.c | 1 + > tools/perf/util/c++/clang.cpp | 11 ++- > tools/perf/util/header.c | 12 ++- > .../util/intel-pt-decoder/intel-pt-pkt-decoder.c | 2 +- > tools/perf/util/pmu.c | 99 +++++++++++++++++++++- > 16 files changed, 194 insertions(+), 21 deletions(-) Pulled, thanks a lot Arnaldo! Note that I've applied the trivial header sync patch below on top of it to reduce the number of build time warnings. There's one warning left: Warning: Kernel ABI header at 'tools/arch/x86/lib/memcpy_64.S' differs from latest version at 'arch/x86/lib/memcpy_64.S' Which is a bit more involved as it requires the introduction of x86/asm/mcsafe_test.h on the tooling side. Thanks, Ingo ======================> >From 32fdbd90cc03f01d452138bab4d8a120873d6acf Mon Sep 17 00:00:00 2001 From: Ingo Molnar Date: Tue, 26 Jun 2018 08:43:14 +0200 Subject: [PATCH] tools/headers: Pick up latest kernel ABIs Sync KVM ABI additions and x86 CPU features additions - neither of which has any impact on the tooling build. Cc: Arnaldo Carvalho de Melo Cc: Peter Zijlstra Cc: Namhyung Kim Cc: Jiri Olsa Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- tools/arch/arm/include/uapi/asm/kvm.h | 1 + tools/arch/arm64/include/uapi/asm/kvm.h | 1 + tools/arch/powerpc/include/uapi/asm/kvm.h | 1 + tools/arch/x86/include/asm/cpufeatures.h | 2 ++ tools/include/uapi/linux/kvm.h | 1 + 5 files changed, 6 insertions(+) diff --git a/tools/arch/arm/include/uapi/asm/kvm.h b/tools/arch/arm/include/uapi/asm/kvm.h index caae4843cb70..16e006f708ca 100644 --- a/tools/arch/arm/include/uapi/asm/kvm.h +++ b/tools/arch/arm/include/uapi/asm/kvm.h @@ -91,6 +91,7 @@ struct kvm_regs { #define KVM_VGIC_V3_ADDR_TYPE_DIST 2 #define KVM_VGIC_V3_ADDR_TYPE_REDIST 3 #define KVM_VGIC_ITS_ADDR_TYPE 4 +#define KVM_VGIC_V3_ADDR_TYPE_REDIST_REGION 5 #define KVM_VGIC_V3_DIST_SIZE SZ_64K #define KVM_VGIC_V3_REDIST_SIZE (2 * SZ_64K) diff --git a/tools/arch/arm64/include/uapi/asm/kvm.h b/tools/arch/arm64/include/uapi/asm/kvm.h index 04b3256f8e6d..4e76630dd655 100644 --- a/tools/arch/arm64/include/uapi/asm/kvm.h +++ b/tools/arch/arm64/include/uapi/asm/kvm.h @@ -91,6 +91,7 @@ struct kvm_regs { #define KVM_VGIC_V3_ADDR_TYPE_DIST 2 #define KVM_VGIC_V3_ADDR_TYPE_REDIST 3 #define KVM_VGIC_ITS_ADDR_TYPE 4 +#define KVM_VGIC_V3_ADDR_TYPE_REDIST_REGION 5 #define KVM_VGIC_V3_DIST_SIZE SZ_64K #define KVM_VGIC_V3_REDIST_SIZE (2 * SZ_64K) diff --git a/tools/arch/powerpc/include/uapi/asm/kvm.h b/tools/arch/powerpc/include/uapi/asm/kvm.h index 833ed9a16adf..1b32b56a03d3 100644 --- a/tools/arch/powerpc/include/uapi/asm/kvm.h +++ b/tools/arch/powerpc/include/uapi/asm/kvm.h @@ -633,6 +633,7 @@ struct kvm_ppc_cpu_char { #define KVM_REG_PPC_PSSCR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xbd) #define KVM_REG_PPC_DEC_EXPIRY (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xbe) +#define KVM_REG_PPC_ONLINE (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0xbf) /* Transactional Memory checkpointed state: * This is all GPRs, all VSX regs and a subset of SPRs diff --git a/tools/arch/x86/include/asm/cpufeatures.h b/tools/arch/x86/include/asm/cpufeatures.h index fb00a2fca990..5701f5cecd31 100644 --- a/tools/arch/x86/include/asm/cpufeatures.h +++ b/tools/arch/x86/include/asm/cpufeatures.h @@ -282,7 +282,9 @@ #define X86_FEATURE_AMD_IBPB (13*32+12) /* "" Indirect Branch Prediction Barrier */ #define X86_FEATURE_AMD_IBRS (13*32+14) /* "" Indirect Branch Restricted Speculation */ #define X86_FEATURE_AMD_STIBP (13*32+15) /* "" Single Thread Indirect Branch Predictors */ +#define X86_FEATURE_AMD_SSBD (13*32+24) /* "" Speculative Store Bypass Disable */ #define X86_FEATURE_VIRT_SSBD (13*32+25) /* Virtualized Speculative Store Bypass Disable */ +#define X86_FEATURE_AMD_SSB_NO (13*32+26) /* "" Speculative Store Bypass is fixed in hardware. */ /* Thermal and Power Management Leaf, CPUID level 0x00000006 (EAX), word 14 */ #define X86_FEATURE_DTHERM (14*32+ 0) /* Digital Thermal Sensor */ diff --git a/tools/include/uapi/linux/kvm.h b/tools/include/uapi/linux/kvm.h index 39e364c70caf..b6270a3b38e9 100644 --- a/tools/include/uapi/linux/kvm.h +++ b/tools/include/uapi/linux/kvm.h @@ -948,6 +948,7 @@ struct kvm_ppc_resize_hpt { #define KVM_CAP_S390_BPB 152 #define KVM_CAP_GET_MSR_FEATURES 153 #define KVM_CAP_HYPERV_EVENTFD 154 +#define KVM_CAP_HYPERV_TLBFLUSH 155 #ifdef KVM_CAP_IRQ_ROUTING