From: Degremont, Aurelien Date: Thu, 25 Jul 2019 08:07:59 +0000 Subject: [lustre-devel] [PATCH 10/11] lustre: ldlm: checkpatch cleanup In-Reply-To: References: <1563760338-806-1-git-send-email-jsimmons@infradead.org> <1563760338-806-11-git-send-email-jsimmons@infradead.org> <87tvbdjwa7.fsf@notabene.neil.brown.name> <1BDF7232-853F-4B2D-AC0B-AC49E78F6884@amazon.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lustre-devel@lists.lustre.org ?Le 25/07/2019 03:54, ? James Simmons ? a ?crit : > Le 24/07/2019 05:38, ? lustre-devel au nom de James Simmons ? a ?crit : > > From checkpatch - "ENOSYS means 'invalid syscall nr' and nothing else" > So using ENOSYS is no no. We get away with this because people rarely > actually handle each error code individually. > . > > As a general comment about this, I think we should improve this in the futur. Some people asked me "what's the error code when this or that happens in Lustre?". And I've got no real answer for that. > Indeed people, most of the time, only checks returned code against 0. That does not help when looking at specific Lustre issues. perf probe 'lustre_function%return $retval' Does the same thing as lctl set_param debug=+trace except dynamic probes can work on any kernel function without code modification!!! I mean from userspace. When some applications want to adapt its behaviour depending on what is happening in Lustre.