Received: by 10.213.65.68 with SMTP id h4csp3438085imn; Mon, 9 Apr 2018 21:50:47 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+tXtWzPZ4qDYMr3WUNgSaRF/l13qOH/kta9M6MfQBsJamYmAPEXKmRIMXQAHU/A4qFxOPs X-Received: by 10.98.246.25 with SMTP id x25mr1482119pfh.138.1523335847030; Mon, 09 Apr 2018 21:50:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523335847; cv=none; d=google.com; s=arc-20160816; b=Lho2LjBF5gWDrKCAoE/tXfLmOLynFBLLcdvcvyoeN7aQ4eFeKADU8FoIrKJsxyAdxd /Y+VT9w7I+WkRXBXEfBCDgoajah9+BqeCV7N/wvz2xsG8AtR72Uel8t3NR2SVGJOhQIr tSw9MFi4vrFGDbpBEQY5cFBEFLdUWDmvOh6VyffwqH77TRxeePIGSrwFbjTSt5dBdnA/ rY7h+LIwNIjZ1nQh4/Kk2dOD4nwjnM1IjXfvRvKxnH6vg1xCAmG/BdlWgSVrtcUiVgso yl4KqM/qOqNI08qA1loe9Lc+HU3sivaB62nG7brsNqFWnARITQbZDibV3/3Hr5XWnyBL xecg== 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-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :from:references:cc:to:subject:arc-authentication-results; bh=ejXIhqEoqRQ9NVBck4oZorSKV1gOpPeg2gZ43BL5mh8=; b=PLWETG2cMspXW4x6wqnACuWuEpglnOdYWzVza+bPgs/+gieSW99wcoiAm3unnC0vCb Max8GQKJtlSvYByMR0i48sAeVPkNdO6MetpUvN7/C+cwQkxuR+oHfWJR8vRB9PF65C/p OMYvtprqi8zrmSLAzJvaCRO1QgOJInyXiqd5KVfJNQFj89BU0vts2LVJDR/c1zW+Ilw/ ee/KvlXQJEuapsDKWazguhwhZBPrZkWJCGo95b6M+ibPkaHmJi2iGGZyEhsXXOLUDsgl tFRChvOrWF9VtWd5QFfvPnUnFnLVcH0JI+G9Lufd1Y8Y2rKd4XjiIiCdZmrGFPZXuc/q 3JEw== 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 k2-v6si1837312plt.406.2018.04.09.21.49.43; Mon, 09 Apr 2018 21:50:46 -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 S1751747AbeDJEpQ (ORCPT + 99 others); Tue, 10 Apr 2018 00:45:16 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:59206 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751427AbeDJEpP (ORCPT ); Tue, 10 Apr 2018 00:45:15 -0400 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3A4iMxK052648 for ; Tue, 10 Apr 2018 00:45:15 -0400 Received: from e06smtp10.uk.ibm.com (e06smtp10.uk.ibm.com [195.75.94.106]) by mx0b-001b2d01.pphosted.com with ESMTP id 2h8nych3hp-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Tue, 10 Apr 2018 00:45:14 -0400 Received: from localhost by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 10 Apr 2018 05:45:13 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp10.uk.ibm.com (192.168.101.140) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 10 Apr 2018 05:45:08 +0100 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w3A4j8uL7405840; Tue, 10 Apr 2018 04:45:08 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 305EBAE056; Tue, 10 Apr 2018 05:35:06 +0100 (BST) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5121FAE055; Tue, 10 Apr 2018 05:35:04 +0100 (BST) Received: from [9.124.31.106] (unknown [9.124.31.106]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 10 Apr 2018 05:35:04 +0100 (BST) Subject: Re: [PATCH v5 0/6] enable creating [k,u]probe with perf_event_open To: Song Liu Cc: peterz@infradead.org, rostedt@goodmis.org, mingo@redhat.com, davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, daniel@iogearbox.net, kernel-team@fb.com, Oleg Nesterov , "Naveen N. Rao" References: <20171206224518.3598254-1-songliubraving@fb.com> From: Ravi Bangoria Date: Tue, 10 Apr 2018 10:15:05 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20171206224518.3598254-1-songliubraving@fb.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-TM-AS-GCONF: 00 x-cbid: 18041004-0040-0000-0000-0000042C6522 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18041004-0041-0000-0000-0000263071F4 Message-Id: <97e2c641-9dfe-bf7c-9043-c79fa0c568f9@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-09_11:,, 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 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1804100049 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Song, On 12/07/2017 04:15 AM, Song Liu wrote: > With current kernel, user space tools can only create/destroy [k,u]probes > with a text-based API (kprobe_events and uprobe_events in tracefs). This > approach relies on user space to clean up the [k,u]probe after using them. > However, this is not easy for user space to clean up properly. > > To solve this problem, we introduce a file descriptor based API. > Specifically, we extended perf_event_open to create [k,u]probe, and attach > this [k,u]probe to the file descriptor created by perf_event_open. These > [k,u]probe are associated with this file descriptor, so they are not > available in tracefs. Sorry for being late. One simple question.. Will it be good to support k/uprobe arguments with perf_event_open()? Do you have any plans about that? Thanks, Ravi