Received: by 10.192.165.148 with SMTP id m20csp1573298imm; Thu, 3 May 2018 01:33:19 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpAfyCFqO5UuFqxc0yx/46Lxg5T4C5BhyhUNzE0od09EO/448eCDM47YZ9hxeoqQkYtTQjU X-Received: by 2002:a17:902:8d81:: with SMTP id v1-v6mr22359596plo.383.1525336399839; Thu, 03 May 2018 01:33:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525336399; cv=none; d=google.com; s=arc-20160816; b=MLoXJctJm6FNcYMxFhMEiM6JlVOP0Pno/POZfyjEyqfU+IuMwuUHVVx2fvgDOnJzTh 4XOkez4zwvUYkLXZgE9IzKv4hBZYaUwybkhybAzZWJ+/daq4CzS6a1r3isBPKu1+TjWh MbIf5z6RS5GPM6TM0wFaQouGg1Ylt5uPwxeKjhCrPU4lStrRcM/wcrgzMnI2KQEHg96g iC9OQ2ByI81LNoxXAPnzh86FsooIBPSpn4FvvUT/QSx5Frj+d8KhhO2FLDJyR4nuvAIQ Hn6VQZjD0cEBiu9tPuEKSHk289Orl9LpExJFMo3RNpoRNchMfF37f0uAvf66a4swMT3i kusA== 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=3gj0iNZo3rJ1OdTPKoxbR1rcGCsXoSGRh0ot5Goms9s=; b=wokarrBNrbw3KZX0AqyVuBgsFXAZA9L1rpRK2kKM1tKm3YeDDj0P9IBwRpUagiyluP A1rIVGt6r1glkcAzWHYv9CBJGCi/pQj7TEXCh6jdQok9M8xW8DZzvWkGsQo/6GeIMNF7 e0c12dqVqlCsg5ufHR3pqLwKX/ZVTZJ3Qkars3iqCqArURrYc2KEJBGll7CBBHeitXC6 1qLl476IqE7R/AVAiIdoWnJMgjFMpsFNrMH2NbDIhbJU96feC/2q/0e+S7qilIRo0CQN d6MCSpDfEHo4/6gHrvLZvWv48nFicYgEQL2Cwk3YetjALIFYUgzz1hEL3GzqQf4awVCH bl7A== 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 p25-v6si10886503pgd.395.2018.05.03.01.33.05; Thu, 03 May 2018 01:33:19 -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 S1751336AbeECIcU (ORCPT + 99 others); Thu, 3 May 2018 04:32:20 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:47206 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751127AbeECIcQ (ORCPT ); Thu, 3 May 2018 04:32:16 -0400 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w438TasZ124662 for ; Thu, 3 May 2018 04:32:15 -0400 Received: from e06smtp15.uk.ibm.com (e06smtp15.uk.ibm.com [195.75.94.111]) by mx0b-001b2d01.pphosted.com with ESMTP id 2hqubaqhna-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 03 May 2018 04:32:15 -0400 Received: from localhost by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 3 May 2018 09:32:13 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp15.uk.ibm.com (192.168.101.145) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 3 May 2018 09:32:06 +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 w438W51C42467510; Thu, 3 May 2018 08:32:05 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 64DDA4C04A; Thu, 3 May 2018 09:24:14 +0100 (BST) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D497B4C046; Thu, 3 May 2018 09:24:09 +0100 (BST) Received: from [9.124.31.122] (unknown [9.124.31.122]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 3 May 2018 09:24:09 +0100 (BST) Subject: Re: [PATCH v3 0/9] trace_uprobe: Support SDT markers having reference count (semaphore) To: mhiramat@kernel.org, oleg@redhat.com Cc: Ravi Bangoria , peterz@infradead.org, srikar@linux.vnet.ibm.com, rostedt@goodmis.org, acme@kernel.org, ananth@linux.vnet.ibm.com, akpm@linux-foundation.org, alexander.shishkin@linux.intel.com, alexis.berlemont@gmail.com, corbet@lwn.net, dan.j.williams@intel.com, jolsa@redhat.com, kan.liang@intel.com, kjlx@templeofstupid.com, kstewart@linuxfoundation.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, milian.wolff@kdab.com, mingo@redhat.com, namhyung@kernel.org, naveen.n.rao@linux.vnet.ibm.com, pc@us.ibm.com, tglx@linutronix.de, yao.jin@linux.intel.com, fengguang.wu@intel.com, jglisse@redhat.com References: <20180417043244.7501-1-ravi.bangoria@linux.vnet.ibm.com> From: Ravi Bangoria Date: Thu, 3 May 2018 14:02:00 +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: <20180417043244.7501-1-ravi.bangoria@linux.vnet.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-TM-AS-GCONF: 00 x-cbid: 18050308-0020-0000-0000-0000041872DA X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18050308-0021-0000-0000-000042AD934F Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-03_04:,, 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=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1805030081 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/17/2018 10:02 AM, Ravi Bangoria wrote: > Userspace Statically Defined Tracepoints[1] are dtrace style markers > inside userspace applications. Applications like PostgreSQL, MySQL, > Pthread, Perl, Python, Java, Ruby, Node.js, libvirt, QEMU, glib etc > have these markers embedded in them. These markers are added by developer > at important places in the code. Each marker source expands to a single > nop instruction in the compiled code but there may be additional > overhead for computing the marker arguments which expands to couple of > instructions. In case the overhead is more, execution of it can be > omitted by runtime if() condition when no one is tracing on the marker: > > if (reference_counter > 0) { > Execute marker instructions; > } > > Default value of reference counter is 0. Tracer has to increment the > reference counter before tracing on a marker and decrement it when > done with the tracing. Hi Oleg, Masami, Can you please review this :) ? Thanks.