Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3201529yba; Tue, 16 Apr 2019 06:48:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqyqkawWCUbKn5jXX2wxKJEvY90wcuKgIon/2XUXVogwyOtqyANalXad2nQvgfUYofmcqziN X-Received: by 2002:a17:902:5a45:: with SMTP id f5mr44984765plm.23.1555422538025; Tue, 16 Apr 2019 06:48:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555422538; cv=none; d=google.com; s=arc-20160816; b=0X5fBBu2nc2jI8G3BRGfnEwJ3X8ylcJHHeyU3h1YKOg+hnSTloaT5eSRCfLVzmQw3q ZJQDwH6suYpO22nxnRsPII8ng2KWkrcGvA2WF9phOmbHnQRiob86Mu8tULsiUU0TZ0ji mitTcNjaOIHlidt/N7H+j8I4YPxulTHO1/6UpdO/42gZBQWcTfGfWWllOfdlM2G3tyff lW7qHTqOYpc+ctlWU/SodJPpyvm8hIaoJdhs3UfJS/HcuKQVJ4Xy1e5shsUze6Jnjp+i pRrKDnc+eofZ++1JlKEYJUhFkDVy8vWpth+AB9Ssk7zUaBCqiE0JrhXVQRvCZScs29nd FnPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:references:in-reply-to:date:subject:cc:to:from; bh=UAHX411TVfkHtYtx3rwTP/R30VyZz8uurL0FWWNuBRg=; b=PmsxDHOmVT2Q7NiCYAgCPUrGAehy/Aps+TeARdeVmq3P53S1oCPh428HtTI9IWFqDO 5HekSGhDCMBkhqnom3hmV0AQ0+yMNfvOki28J44ZAscEddSIQCqVq3HP4YzQBUwjcucy ZGOdIdFWfyk68c/vhvQ37dpiCqJarGstY8/mWK7hQoEMNYPTFuFDgkD9IKuHr71SGXpr PIVVjHdM7wB8ZQyK3+9PJjndU4N8AZr++BsBp5lz8rWZYzvzexQOPqgOYO9CaCBSar/M 9O3SOqus1X2cPZeYfT/teTVoGWRYLuZqry+aV1+OKUxaSeDnqUVXy0imuXwh2GvVNXvw pSFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d14si51519263pln.404.2019.04.16.06.48.41; Tue, 16 Apr 2019 06:48:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729684AbfDPNrf (ORCPT + 99 others); Tue, 16 Apr 2019 09:47:35 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:34248 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729660AbfDPNre (ORCPT ); Tue, 16 Apr 2019 09:47:34 -0400 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x3GDlCc9060519 for ; Tue, 16 Apr 2019 09:47:32 -0400 Received: from e06smtp04.uk.ibm.com (e06smtp04.uk.ibm.com [195.75.94.100]) by mx0b-001b2d01.pphosted.com with ESMTP id 2rwe3k5vg0-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 16 Apr 2019 09:47:22 -0400 Received: from localhost by e06smtp04.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 16 Apr 2019 14:46:49 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp04.uk.ibm.com (192.168.101.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 16 Apr 2019 14:46:38 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x3GDkbc850200614 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 16 Apr 2019 13:46:37 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 473624C04E; Tue, 16 Apr 2019 13:46:37 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A910F4C04A; Tue, 16 Apr 2019 13:46:35 +0000 (GMT) Received: from nimbus.lab.toulouse-stg.fr.ibm.com (unknown [9.101.4.33]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 16 Apr 2019 13:46:35 +0000 (GMT) From: Laurent Dufour To: akpm@linux-foundation.org, mhocko@kernel.org, peterz@infradead.org, kirill@shutemov.name, ak@linux.intel.com, dave@stgolabs.net, jack@suse.cz, Matthew Wilcox , aneesh.kumar@linux.ibm.com, benh@kernel.crashing.org, mpe@ellerman.id.au, paulus@samba.org, Thomas Gleixner , Ingo Molnar , hpa@zytor.com, Will Deacon , Sergey Senozhatsky , sergey.senozhatsky.work@gmail.com, Andrea Arcangeli , Alexei Starovoitov , kemi.wang@intel.com, Daniel Jordan , David Rientjes , Jerome Glisse , Ganesh Mahendran , Minchan Kim , Punit Agrawal , vinayak menon , Yang Shi , zhong jiang , Haiyan Song , Balbir Singh , sj38.park@gmail.com, Michel Lespinasse , Mike Rapoport Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, haren@linux.vnet.ibm.com, npiggin@gmail.com, paulmck@linux.vnet.ibm.com, Tim Chen , linuxppc-dev@lists.ozlabs.org, x86@kernel.org Subject: [PATCH v12 25/31] perf: add a speculative page fault sw event Date: Tue, 16 Apr 2019 15:45:16 +0200 X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190416134522.17540-1-ldufour@linux.ibm.com> References: <20190416134522.17540-1-ldufour@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 19041613-0016-0000-0000-0000026F727D X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19041613-0017-0000-0000-000032CBBD95 Message-Id: <20190416134522.17540-26-ldufour@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-04-16_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904160093 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a new software event to count succeeded speculative page faults. Acked-by: David Rientjes Signed-off-by: Laurent Dufour --- include/uapi/linux/perf_event.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h index 7198ddd0c6b1..3b4356c55caa 100644 --- a/include/uapi/linux/perf_event.h +++ b/include/uapi/linux/perf_event.h @@ -112,6 +112,7 @@ enum perf_sw_ids { PERF_COUNT_SW_EMULATION_FAULTS = 8, PERF_COUNT_SW_DUMMY = 9, PERF_COUNT_SW_BPF_OUTPUT = 10, + PERF_COUNT_SW_SPF = 11, PERF_COUNT_SW_MAX, /* non-ABI */ }; -- 2.21.0