Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1212515imu; Wed, 16 Jan 2019 14:56:26 -0800 (PST) X-Google-Smtp-Source: ALg8bN7j5sk1A7IoGPSUL9F4uoMud2PRvC7EbLp/Hs6ax7isG4CqZ4lLSPw3c4sQ0D/tBt3/MZGI X-Received: by 2002:a63:fe0a:: with SMTP id p10mr10978626pgh.265.1547679386159; Wed, 16 Jan 2019 14:56:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547679386; cv=none; d=google.com; s=arc-20160816; b=rO64pFKfEODQr1AXGIxnSakFNM1GHR+20Lg04AbgrI/dq8xboHHP+titoh1AVEXmTE ILgk2OwKLEu3TlzvNNaQH12p03+EUumYKwAjP5X6UvtGc/Hy7xDKKDEVQlpMxsEQKq8x zz5XiBMZMvSH0tXlAESSoB2litGv9j41oLAdQm0pAwgHz+DCNJWIe7gtQGIemLV67upy h8BBrj7l5WvfqqMuqaHjbMzMI9he6QJmcpplwfYBdfZFiMr81FaEGTFbBCiCx6PWbB4e 1khzJHi/R/DEn8aPkHbfNtlaz+yS9jHCjYMw0OQOeDLQvA9LB8EJV3eM1fdk0qrEY+ya 2VHw== 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 :content-language:in-reply-to:mime-version:date:from:references:cc :to:subject; bh=LK5nAabVDRq9NsnWAISlKHuFPznfX4lvaPI9Tu7ZmdA=; b=pegqnrJMXrLCEMoMSQ2ktTppAA09ng5xPxiDUM22WTY2FXRDp4xuY5V5xOShYf4ikm i3f8fD18O9D970U3ySGpl7E62VaSppyAV3W1P1NPi0deNRbel65pse2D3gh1ikybD0jx YQGLgb9qAg6e3EEYygftvSER/p7eIaqudamzK38aWheRgKo5wO7b9Vpv8UJx3MnWQ4wg 2aSLfpqeT882FnPdHip53QlENWNr35ZMpnGAbBYjYcJaPYNJHXYk2o2qYSZ4pb9q+JEh VPvmLNj/RSE35oAWqyQplaGt6L1ZUt3Ol7fHKY0T0+ZybgDKRQdxYD3P+vIvZ/uYzB3u OewQ== 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 w190si7009572pgd.338.2019.01.16.14.56.08; Wed, 16 Jan 2019 14:56:26 -0800 (PST) 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 S1728022AbfAPQOK (ORCPT + 99 others); Wed, 16 Jan 2019 11:14:10 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:34392 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726825AbfAPQOJ (ORCPT ); Wed, 16 Jan 2019 11:14:09 -0500 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id x0GG4AT5045544 for ; Wed, 16 Jan 2019 11:14:08 -0500 Received: from e06smtp04.uk.ibm.com (e06smtp04.uk.ibm.com [195.75.94.100]) by mx0a-001b2d01.pphosted.com with ESMTP id 2q25vx6gnn-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 16 Jan 2019 11:14:07 -0500 Received: from localhost by e06smtp04.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 16 Jan 2019 16:14:06 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) 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) Wed, 16 Jan 2019 16:14:04 -0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x0GGE31c61669532 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 16 Jan 2019 16:14:03 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EA9F4A4065; Wed, 16 Jan 2019 16:14:02 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 85647A4069; Wed, 16 Jan 2019 16:14:02 +0000 (GMT) Received: from [9.83.224.254] (unknown [9.83.224.254]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 16 Jan 2019 16:14:02 +0000 (GMT) Subject: Re: [PATCH 3/4] gcov: clang: link/unlink profiling data set. To: Tri Vo Cc: ghackmann@android.com, ndesaulniers@google.com, linux-kernel@vger.kernel.org, kernel-team@android.com, Trilok Soni , Prasad Sodagudi References: <20190114210426.177543-1-trong@android.com> <20190114210426.177543-4-trong@android.com> From: Peter Oberparleiter Date: Wed, 16 Jan 2019 17:14:03 +0100 MIME-Version: 1.0 In-Reply-To: <20190114210426.177543-4-trong@android.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 19011616-0016-0000-0000-000002465358 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19011616-0017-0000-0000-000032A0717D Message-Id: <03d3a8d0-b9cd-28e9-6365-d74adcd4db59@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-01-16_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=957 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901160130 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14.01.2019 22:04, Tri Vo wrote: > From: Nick Desaulniers > > gcov.h defines an interface to access gcov_info data. > > Add Clang implementation of gcov_info_link/gcov_info_unlink interfaces. > > Signed-off-by: Nick Desaulniers > Signed-off-by: Tri Vo > Tested-by: Trilok Soni > Tested-by: Prasad Sodagudi > Tested-by: Tri Vo > --- > kernel/gcov/clang.c | 33 ++++++++++++++++++++++++++++----- > 1 file changed, 28 insertions(+), 5 deletions(-) Please merge this patch into patch 2 as it fixes a number of problems in that patch. > > diff --git a/kernel/gcov/clang.c b/kernel/gcov/clang.c > index b00795d28137..ea42deb852f7 100644 > --- a/kernel/gcov/clang.c > +++ b/kernel/gcov/clang.c [...] > +/** > + * gcov_info_unlink - unlink/remove profiling data set from the list > + * @prev: previous profiling data set > + * @info: profiling data set > + */ > +void gcov_info_unlink(struct gcov_info *prev, struct gcov_info *info) > +{ > + if (prev) > + list_del(&prev->head); This is incorrect - gcov_info_unlink should remove info from the list, not its predecessor prev. -- Peter Oberparleiter Linux on Z Development - IBM Germany