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.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,UNPARSEABLE_RELAY autolearn=ham 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 BF232C43381 for ; Tue, 26 Feb 2019 07:31:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 909CA217F9 for ; Tue, 26 Feb 2019 07:31:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726900AbfBZHbd (ORCPT ); Tue, 26 Feb 2019 02:31:33 -0500 Received: from out30-132.freemail.mail.aliyun.com ([115.124.30.132]:53037 "EHLO out30-132.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725901AbfBZHbc (ORCPT ); Tue, 26 Feb 2019 02:31:32 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01f04391;MF=joseph.qi@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0TLKsoem_1551166274; Received: from JosephdeMacBook-Pro.local(mailfrom:joseph.qi@linux.alibaba.com fp:SMTPD_---0TLKsoem_1551166274) by smtp.aliyun-inc.com(127.0.0.1); Tue, 26 Feb 2019 15:31:29 +0800 From: Joseph Qi To: "linux-kernel@vger.kernel.org" , gregkh@linuxfoundation.org, luto@kernel.org Cc: Jiufei Xue , Xu Yu , peterz@infradead.org, mingo@redhat.com, acme@kernel.org Subject: [bug report][stable] perf probe: failed to add events Message-ID: <1a4240a8-288b-45d0-073d-d5cb8f0c63eb@linux.alibaba.com> Date: Tue, 26 Feb 2019 15:31:14 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I'm using kernel v4.19.24 and have found that there is an issue when using perf probe to define a new dynamic tracepoint. $ perf probe -a handle_mm_fault Failed to write event: Numerical result out of range Error: Failed to add events. I've also tried kernel v4.20, and it can pass. So I've bisected and finally found the first good commit is: bf904d2762ee x86/pti/64: Remove the SYSCALL64 entry trampoline which is based on another commit: 98f05b5138f0 Use the TSS sp2 slot for SYSCALL/SYSRET scratch space Once I've backpoted these two commits into 4.19.24, the above case can pass, though I'm not sure how it is fixed. So is there any plan to let them go into stable as well? Thanks, Joseph