Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2178231pxb; Fri, 25 Mar 2022 12:29:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5olrtIfS/err+2DDW+mbhfQqAqQltX0k5Bo5kqWrMLuELqD4hU0MYmxj/D1ad6q58pYdi X-Received: by 2002:a17:902:ce90:b0:154:3029:97e6 with SMTP id f16-20020a170902ce9000b00154302997e6mr13276922plg.111.1648236563755; Fri, 25 Mar 2022 12:29:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648236563; cv=none; d=google.com; s=arc-20160816; b=LJFI2AJKAkrHPe+Ia2bKJfjfeoMPk6rd8lR7zVEhBhoAqIlJblk7JbObpJRrpDRydS 6PBRPeV8AJJ2HWTSzKH8qbELi03r8nNCd07zK2BVh71uWDcSjA8onX2eAnZ53BoGyBon CubbNb6J/S8PZcIeR19h5PB8sV3fefchVjKmljF4MUEMYNoex/hFwGpAetvfGYypZdfR NSOb6I1pyyrbVrI3S7xhISGFLO6xaw62oEMrYs/geziGZkYoLKH+V/DG4aEeXjxktxVX SdYL6oOxYwF7b0Dhl/faTnAK+qfaWv1xmEYTrD+2LGZ8cXumNiSNTGLq2w698NRRlYxd pRFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=WWNNb/PA88lHxiO0UiGi9BGlWMjAzl8VpxXqTLSP07I=; b=EI1jTpToIYBXw3K/gKTM+G5ZICJpc/yTJclaIDONgdIo0uCNtxzHBEXv9dU8yqkI3/ pDWx39f/OAr/XP+RlCMAzRJY9VpuQDSHBAiHqlZrMTM8r1k8oo5ykD3gbDJKgvqjXkMu i3hKeDyfIDq22Nt9iMH76vmKXSvoXz7Lqu4zAAwmgfnMeRLEUrmPWC3MKfheVYxE3Fe+ mCd6DnpEz0o56S4ohLi9nz56r2MOFotC2+7yws8bi1z/gHr39vLj0mahDGuLMO/Hlp5M RCqKwmbr0jnhuCX7kHp7jJY5uaQRmjKWXK9wt+p37JrsGfPosZKgSDHisN1Iqio+Mg2a w3xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=dKDJpdjZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id nn17-20020a17090b38d100b001bd14e0303csi3528902pjb.20.2022.03.25.12.29.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 12:29:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=dKDJpdjZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 84C8729A54F; Fri, 25 Mar 2022 11:40:56 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348439AbiCXOY7 (ORCPT + 99 others); Thu, 24 Mar 2022 10:24:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242197AbiCXOY6 (ORCPT ); Thu, 24 Mar 2022 10:24:58 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0E545D5C4; Thu, 24 Mar 2022 07:23:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1648131806; x=1679667806; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=WWNNb/PA88lHxiO0UiGi9BGlWMjAzl8VpxXqTLSP07I=; b=dKDJpdjZypM6pU4tXT85uQtCTWt/hGL8wiQfZs/+EA230h0yXLw7+luT Pw9wsul3tqu2u0CldCMUv67MDxz+SH/+tGpDg6UMat3Ge8m2EkZVe4LYu WNxoeoM/i7S7U+Ma8/yqSMohN3/+xre5jyi9ToLNddDrZLgL4Os1Jrk0J 8=; Received: from unknown (HELO ironmsg03-sd.qualcomm.com) ([10.53.140.143]) by alexa-out-sd-02.qualcomm.com with ESMTP; 24 Mar 2022 07:23:26 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg03-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Mar 2022 07:23:25 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Thu, 24 Mar 2022 07:23:25 -0700 Received: from [10.253.74.197] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Thu, 24 Mar 2022 07:23:21 -0700 Message-ID: Date: Thu, 24 Mar 2022 22:23:19 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: [PATCH v4 01/10] Use IDR to maintain all the enabled sources' paths. Content-Language: en-US To: Greg Kroah-Hartman CC: Mathieu Poirier , Suzuki K Poulose , Alexander Shishkin , Mike Leach , Leo Yan , , , , Tingwei Zhang , Yuanfang Zhang , Tao Zhang , Trilok Soni , Hao Zhang , References: <20220324121734.21531-1-quic_jinlmao@quicinc.com> <20220324121734.21531-2-quic_jinlmao@quicinc.com> From: Jinlong Mao In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, Thanks for your review. On 3/24/2022 8:26 PM, Greg Kroah-Hartman wrote: > On Thu, Mar 24, 2022 at 08:17:25PM +0800, Mao Jinlong wrote: >> Use hash length of the source's device name to map to the pointer >> of the enabled path. Using IDR will be more efficient than using >> the list. And there could be other sources except STM and CPU etms >> in the new HWs. It is better to maintain all the paths together. >> >> Signed-off-by: Mao Jinlong >> --- >> drivers/hwtracing/coresight/coresight-core.c | 75 +++++++------------- >> 1 file changed, 26 insertions(+), 49 deletions(-) > Your subject line is odd. Please put back the driver subsystem in the > subject line so that it makes more sense. I will update the subject in next version. > > And how have you measured "more efficient"? Using IDR would be better than doing a sequential search as there will be much more deviceĀ  in future. > > thanks, > > greg k-h Thanks Jinlong Mao