Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp773710yba; Thu, 9 May 2019 05:50:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxEh0DjtipHc4YBsdQbIfQeUHqTT1HG9Y/arvTbS523FJdlG7oz47HSFQ/r99XLelrG95kH X-Received: by 2002:a17:902:9002:: with SMTP id a2mr4763914plp.43.1557406247354; Thu, 09 May 2019 05:50:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557406247; cv=none; d=google.com; s=arc-20160816; b=E1mRWpROcG4jBcXki8xU+v7VEriiqUZmPxS/A+zNbH0+pFLOka+QlkWQZIol5OJyN9 O7AWRoTKPuJrdgl/N22UtHemEm5h8EjU9bK3k/zDmctntknK7kztY4kUOJauT+w555Eu ItuPPfMY6TBA2qeKTcDghjSdS2kBpF5oTt9c3KjlvMrt7wUkOyU6zvN/XKIM5t4w0uaI xzQhheajMx5K5qCXDpXM2xYKNWdtNgkdKhDCS+XFX2+pWoqPOtX3VsNXnEe3PBzP+fbp qqCUCxnsAcEY71mypRNbhL+FqrjQjJeCeJLFU03oqgUhnsNCxB8gRstc74aUjlOAvym3 42qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:cc:to:from:thread-topic:subject:dkim-signature; bh=4fc1f++NYOc4ek7kSR+69t4mZpnJKy8FkBK+stS0owM=; b=o1HSTK2EJQ9KRXZJpqWeMKOySsEuPe/Ay5C/T6d7VOaeAkQU2mf4GgjW4uhEbviLs8 SvLFKm0fA/3m0qQ9Av9DNFJ9pzRmtmUpc9yQpdMZ8nlwZ9RF1FwoL0feqn3yYnaREl8R V+tAQ2Fj+ONtPCaITFka1jrEsv/omCCBpmRDYRBhQRjj5A25weZz/ARlfF5/IEoFBLhN JOIP1+G5pcBcv3ldXV/FvodtRk5W+gGfbQs/Fv63kRaORwGke6ncpUAPwTLKY2CFxdQ4 ENIhMDL0sDmZZHw/+0sunNCfyfv0CAoM+ApAxMgoB/2FSkDAf+VJjBdawLXn84zPnTJG O38A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@qti.qualcomm.com header.s=qcdkim header.b=JPGYPryd; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=qti.qualcomm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i35si2823157plb.115.2019.05.09.05.50.24; Thu, 09 May 2019 05:50:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@qti.qualcomm.com header.s=qcdkim header.b=JPGYPryd; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=qti.qualcomm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726438AbfEIMsW (ORCPT + 99 others); Thu, 9 May 2019 08:48:22 -0400 Received: from alexa-out-sd-01.qualcomm.com ([199.106.114.38]:61468 "EHLO alexa-out-sd-01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726054AbfEIMsW (ORCPT ); Thu, 9 May 2019 08:48:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qti.qualcomm.com; i=@qti.qualcomm.com; q=dns/txt; s=qcdkim; t=1557406102; x=1588942102; h=from:to:cc:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version:subject; bh=SKID5TCyxAGDDUGYeYZBi3xY0FA8rMIto6YleasEpqQ=; b=JPGYPrydtapHjJIAh1C4pcgJHnzZm63hjY8DNOJ/jKsu6f6q1v8i+PHq cQVId/uyY6kFKag3MKoS2nRkhiP1WnTz9BuJpkT4EXbrZHkMCD9nAiBb3 NOxFHYGH/U4+d1V9zqmjEgImPOW5VfoRMN225z/yDpa6ZtBeU/41T92bb s=; Subject: RE: [PATCHv2] ath10k: Add wrapper function to ath10k debug Thread-Topic: [PATCHv2] ath10k: Add wrapper function to ath10k debug Received: from unknown (HELO ironmsg05-sd.qualcomm.com) ([10.53.140.145]) by alexa-out-sd-01.qualcomm.com with ESMTP; 09 May 2019 05:48:21 -0700 X-IronPort-AV: E=McAfee;i="5900,7806,9251"; a="249705051" Received: from nasanexm01g.na.qualcomm.com ([10.85.0.33]) by ironmsg05-sd.qualcomm.com with ESMTP/TLS/AES256-SHA; 09 May 2019 05:48:14 -0700 Received: from APSANEXR01F.ap.qualcomm.com (10.85.0.39) by NASANEXM01G.na.qualcomm.com (10.85.0.33) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 9 May 2019 05:48:14 -0700 Received: from APSANEXR01F.ap.qualcomm.com (10.85.0.39) by APSANEXR01F.ap.qualcomm.com (10.85.0.39) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 9 May 2019 05:48:11 -0700 Received: from APSANEXR01F.ap.qualcomm.com ([10.85.0.39]) by APSANEXR01F.ap.qualcomm.com ([10.85.0.39]) with mapi id 15.00.1395.000; Thu, 9 May 2019 05:48:11 -0700 From: Venkateswara Naralasetty To: =?iso-8859-2?Q?Micha=B3_Kazior?= , "Venkateswara Naralasetty" CC: Kan Yan , linux-wireless , "ath10k@lists.infradead.org" Thread-Index: AQHU/DZRZsxSuuAgfEynIothPCgWB6Zixe8A Date: Thu, 9 May 2019 12:48:10 +0000 Message-ID: References: <1556283505-29539-1-git-send-email-vnaralas@codeaurora.org> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.80.80.8] Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org > -----Original Message----- > From: ath10k On Behalf Of Michal > Kazior > Sent: Friday, April 26, 2019 7:15 PM > To: Venkateswara Naralasetty > Cc: Kan Yan ; linux-wireless wireless@vger.kernel.org>; ath10k@lists.infradead.org > Subject: [EXT] Re: [PATCHv2] ath10k: Add wrapper function to ath10k debug >=20 > On Fri, 26 Apr 2019 at 14:58, Venkateswara Naralasetty > wrote: > > > > ath10k_dbg() is called in ath10k_process_rx() with huge set of > > arguments which is causing CPU overhead even when debug_mask is not > set. > > Good improvement was observed in the receive side performance when > > call to ath10k_dbg() is avoided in the RX path. > [...] >=20 > > +/* Avoid calling __ath10k_dbg() if debug_mask is not set and tracing > > + * disabled. > > + */ > > +#define ath10k_dbg(ar, dbg_mask, fmt, ...) \ > > +do { \ > > + if ((ath10k_debug_mask & dbg_mask) || \ > > + trace_ath10k_log_dbg_enabled()) \ > > + __ath10k_dbg(ar, dbg_mask, fmt, ##__VA_ARGS__); \ } > > +while (0) >=20 > Did you consider using jump labels (see include/linux/jump_label.h)? > It's what tracing uses under the hood. I wonder if you could squeeze out = a bit > more performance with that? I guess you'd need to add `struct static_key > ath10k_dbg_mask_keys[ATH10K_DBG_MAX]` and re-do > ath10k_debug_mask enum a bit. >=20 I could not observe any significant Throughput/CPU improvement after using = jump labels. For now shall we go with my patch? Thanks, Venkatesh. >=20 > Michal >=20 > _______________________________________________ > ath10k mailing list > ath10k@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/ath10k