Received: by 10.213.65.68 with SMTP id h4csp1872991imn; Thu, 29 Mar 2018 12:40:23 -0700 (PDT) X-Google-Smtp-Source: AIpwx48kmLRAI3xaA1znuaUSQtpv68KJ1QlloBnbEukqfBaChC1jIfVVE/aqn7DR9v/t5dgWZMRA X-Received: by 2002:a17:902:6b45:: with SMTP id g5-v6mr4607406plt.171.1522352423249; Thu, 29 Mar 2018 12:40:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522352423; cv=none; d=google.com; s=arc-20160816; b=uehfPlwAyCVhta4zOmt5J57schKf0uNYKZpaEUkIt4OTcZuWudCqtW+82/+D12CY1X nKz2h/dyC4UfaIRbtc6WvrRK1BSoCj+uZ5L9gOoUtm9MkPC5Y6Qft/vsBinVje+6pxcM 0mb66CwhbUEe1amrG8JCjKoKEhKLedhh9OyJN85W+vXdpgKWYSyMKObzQYYPtq1pW0rr s2TuHQPKaatJaVXUqV7Zl1aOu5b29C4S1nl1I7O/hxJVp9lJJ2oDrS+Idzb/Vxg6WIH5 38PO28xcmS/8NPliZO3NUpY2gFM6tsRw5NEK5awrRfVJ/r0vSbRD7hp5MjcS1UgEACeC LfXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=H15xesfv5v6lh8YYUNyNnj33UpKxcOxDXotP6sAAt6Q=; b=qf67RCxY8N4hkTIvg0PYse7QQsF5Hwg3j6UHiApr8dyPswyz5IX6bpCLcb418xmrPY gkUPd/cbLJMV8/jkIvLG8y+cTnTu0exjW2RKyvDa9H0n18SUiicszC3LPnzbOtQ8G1nN n7vQVbmLXCDt6rbcTv8MrAdXv6PRUZZ2AchFTnnY6UzHUxx5Jy71IIHMcaHPzqK/b8dW pIEeHT5QgSJLrl36x48mImOF5z5sDuzYkuCruE7Uj3wds2oSGcapbK5xaTp5BSLDXQq/ 0S9oz9d1rXsQEVyirtTgdKl1iUvDV2MYOBEpBCD0u26ZXARfkIq7nUu18bPuGKCfLt4p q19A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=q/HjalZs; 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=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c136si4497620pga.318.2018.03.29.12.40.07; Thu, 29 Mar 2018 12:40:23 -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; dkim=pass header.i=@riseup.net header.s=squak header.b=q/HjalZs; 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=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751199AbeC2Tin (ORCPT + 99 others); Thu, 29 Mar 2018 15:38:43 -0400 Received: from mx1.riseup.net ([198.252.153.129]:32888 "EHLO mx1.riseup.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750735AbeC2Tim (ORCPT ); Thu, 29 Mar 2018 15:38:42 -0400 Received: from piha.riseup.net (piha-pn.riseup.net [10.0.1.163]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id A52561A0A4F; Thu, 29 Mar 2018 12:38:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1522352321; bh=Q9PT24dLfNwL/Q6ukH75XClrA/BDJpnasUMkM8niNAw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=q/HjalZsrWBMM1JR5j2rJs9chFI40S+zcmAEBUuvqmcMO2z59kz7n+z9wUmE/stM3 gnkY4DnQUrIipH5TuuBNOaQxL8H0FH4tvLmhMVg7BiEI6tR6BFbzOA76QLjMl6SX2q DdrBq4wPLAlco2K89Q2wWMrw3Mx468VMTrCcQbC4= X-Riseup-User-ID: 3780616662E890B2D718A54AFD63E9B0018A4E6E0955F48ED345B1E748139578 Received: from [127.0.0.1] (localhost [127.0.0.1]) by piha.riseup.net with ESMTPSA id 98B39201EA; Thu, 29 Mar 2018 12:38:39 -0700 (PDT) From: Francisco Jerez To: Fabio Estevam , Julia Lawall Cc: linux-pm@vger.kernel.org, Viresh Kumar , "Rafael J. Wysocki" , linux-kernel , kbuild-all@01.org, Srinivas Pandruvada , 0day robot , Len Brown Subject: Re: [kbuild-all] [PATCH] OPTIONAL: cpufreq/intel_pstate: fix debugfs_simple_attr.cocci warnings In-Reply-To: References: Date: Thu, 29 Mar 2018 12:23:10 -0700 Message-ID: <87a7uqofdt.fsf@riseup.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Fabio Estevam writes: > Hi Julia, > > On Thu, Mar 29, 2018 at 4:12 PM, Julia Lawall wrote: >> Use DEFINE_DEBUGFS_ATTRIBUTE rather than DEFINE_SIMPLE_ATTRIBUTE >> for debugfs files. >> >> Semantic patch information: >> Rationale: DEFINE_SIMPLE_ATTRIBUTE + debugfs_create_file() >> imposes some significant overhead as compared to >> DEFINE_DEBUGFS_ATTRIBUTE + debugfs_create_file_unsafe(). > > Just curious: could you please expand on what "imposes some > significant overhead" means? > Probably negligible given that this code will only be run once at system boot and then never used again in production systems. But I guess the micro-optimization doesn't hurt either. > Thanks --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEAREIAB0WIQST8OekYz69PM20/4aDmTidfVK/WwUCWr09HgAKCRCDmTidfVK/ W156AP9KZh/1SG7KxnlAfAXBy4IFoLtoupi3W4fh4IIxGcK1YwD7BIGdIlJON3UW /gQFirlZ4u8XIdHmrxC+uOk+gj14SRQ= =/l9F -----END PGP SIGNATURE----- --==-=-=--