Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp597725rdh; Wed, 7 Feb 2024 14:10:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU3HbkiSHp4PBD7qPrl02spXDWRlf0jurk9xuOYALfeyxQ49sJub986LXWaSQ4DgIEl0wMWtN4C2rQ4LRIQsKwTYG+gZu7e/IsVJKeaRQ== X-Google-Smtp-Source: AGHT+IFAEcXIA2kuWHSairXrsvho8hvti7xGF/xzpTmvivas9j7Y1kALpzmkbVaSaNVAxnWFYo/Z X-Received: by 2002:a05:620a:5645:b0:783:f7a8:21e4 with SMTP id vw5-20020a05620a564500b00783f7a821e4mr6431252qkn.40.1707343817087; Wed, 07 Feb 2024 14:10:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707343817; cv=pass; d=google.com; s=arc-20160816; b=OZI6rlwoXIcT70ddMHxNHooswShAsO2ZuAW+yEgS8uXbkExcjmoWFxL4PioYNhGJkL ZMx7lEmgOMv1mvx6w3H20SH7XKwNVsnOgrfmyuAXQR3MV1GkkG2cqxxwS4+nRYzCtu65 454z47M545vD/FY/cmxYLoNW9OZ6HygPEZfqGHK2m3rry3TRm52QexjlQYFoP1g4W835 1L9BG7TpdzP5qA5cVeOQ7M6oXtmSeeArkAswzoz2hirlU6IQ1/9JMgqmMa+uB7R/z/3R PNh+jWEf+ekpPfzi8R0QGOTYjtcUWKOw1BhDtQdGV4SPJUSd1i2sTtlygXwnYdM4q2jg Sq9A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5t8oHdj43HvWAnm0LTgz5p/xtchmO2b+GM6B+T+0/v4=; fh=All+RqFMFtg46MveKQvZ3SLp849Dx1Osz02ZPcSlKqQ=; b=OlDA8MmXj9WBHfc/oA4DeU9kbb41BeJMad6DtE/TLrifuyb0xSRg1jFnj02xeASvfi JJ36FIhRH1oG7wR1rpHc3vVPA8+XnMa/viqdIPm8JNiQOXYagfQEWdG9goZGX6qwHrHL h2s9jxcW5HTJPW6GWUYX67ocOWkXnSaeQ+uyK81nz0qc3P3FmHvxcpDTdZJ1EugfSdoC cFZwig6XdyGmDLykuL5/DWuxR66tKZfOPo/TFq+UgUMjjmExWxdZRethPfIankfh1SLC 8yPQq6vB0XxtNe9S1+QocwVeQUqJ4YzefKgjea4N92VB7Y0wnblOToUvMmCWUsmshZfH F5/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fromorbit-com.20230601.gappssmtp.com header.s=20230601 header.b=N0jswrwx; arc=pass (i=1 spf=pass spfdomain=fromorbit.com dkim=pass dkdomain=fromorbit-com.20230601.gappssmtp.com dmarc=pass fromdomain=fromorbit.com); spf=pass (google.com: domain of linux-kernel+bounces-57237-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57237-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fromorbit.com X-Forwarded-Encrypted: i=2; AJvYcCWL3OIhkVTe9/TNJfGSMK42pmdgmGDyaCW3HECCiBTlbnxLoE3dzDWvyNo3rwfiM2xf/RpofAd6dd0kVNnIauRLyQberFJD1V+XXxP4zg== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id k18-20020a05620a07f200b007853c74dd0fsi1962198qkk.154.2024.02.07.14.10.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 14:10:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57237-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@fromorbit-com.20230601.gappssmtp.com header.s=20230601 header.b=N0jswrwx; arc=pass (i=1 spf=pass spfdomain=fromorbit.com dkim=pass dkdomain=fromorbit-com.20230601.gappssmtp.com dmarc=pass fromdomain=fromorbit.com); spf=pass (google.com: domain of linux-kernel+bounces-57237-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57237-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fromorbit.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5B4DC1C22595 for ; Wed, 7 Feb 2024 22:10:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B53312EBCE; Wed, 7 Feb 2024 21:37:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fromorbit-com.20230601.gappssmtp.com header.i=@fromorbit-com.20230601.gappssmtp.com header.b="N0jswrwx" Received: from mail-oo1-f48.google.com (mail-oo1-f48.google.com [209.85.161.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2AE76127B5C for ; Wed, 7 Feb 2024 21:37:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707341855; cv=none; b=DZiOoFJvO45ycO5TVtvDXuqc/W2snDmp4HvbTe9SgMMOt+uM9Dn8TSqwmnuk4NfBRzst0dhrvFxi2ikPdWu2z7HzDranDxX6Y4pRZy12hdNx1W/DwFFdLVNjmYPANspllVo60bJPxU49w9qcnBKRFBYXXj919T1ZdZu6M7MpIzg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707341855; c=relaxed/simple; bh=MJ9tjUW3xcnRUT8N8amSJPFJmFefKIlDCMy8MipxXqE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SKWWUp6Pb3rcU3BCsch01d7ZkdGA6MGNGk3ruCn7YJ3F1MxQZqrRdZ/pX4t2Ezj1C+Khm4lDBZrLJGH5Y7MkmPXCnihz6khhtb47BwSBqZ9Imbp8+2Me4iC3igf97WsyfLxy5n9bF1RCLVCxrpPFTE51wK4Kc4lVUzDduBEi4A4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=fromorbit.com; spf=pass smtp.mailfrom=fromorbit.com; dkim=pass (2048-bit key) header.d=fromorbit-com.20230601.gappssmtp.com header.i=@fromorbit-com.20230601.gappssmtp.com header.b=N0jswrwx; arc=none smtp.client-ip=209.85.161.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=fromorbit.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fromorbit.com Received: by mail-oo1-f48.google.com with SMTP id 006d021491bc7-59a7682486aso394192eaf.2 for ; Wed, 07 Feb 2024 13:37:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fromorbit-com.20230601.gappssmtp.com; s=20230601; t=1707341853; x=1707946653; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=5t8oHdj43HvWAnm0LTgz5p/xtchmO2b+GM6B+T+0/v4=; b=N0jswrwxQQT4YcPXYv4ZUugehgcpncIM8mEyojEWXDGYTfFxLhgUnL7tazfQapgkqJ 74T2Iw71qddWRpHAo6sWGUMkvP2mOnCvvYG8gc1pezE5XN00XxG4OBTSkJoAmhCKKFmp x1sR9T2Jb7JJsbikOujRtWMHU4Y5po5mSmX6vTC+QWLb1TsMFCQFOmnwD+0v4QvDZZaV FdXKwhA/IrdQUkIvpr1jNToc/7NdiqDNVD4HgMV2PYVjl5pzaPM1AUG7mhWHemXcIbKj i0omi5NjLLaHRYebxQbAazYAuu1RTHar2rs2/EZP/FE9xmmxuOJWv48RVsBT5x4bZXHb sT5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707341853; x=1707946653; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=5t8oHdj43HvWAnm0LTgz5p/xtchmO2b+GM6B+T+0/v4=; b=oB+5BIsw3SJ3JDCOjOFGKYricD04QHl5YNwXB/nJvthT+yhNebccuwnbNvP9drYjRh 5tw3HYnO0/t9PjaWb++C8CQ7fSvn0lG09IvGMFVwt3sUHBse9KxMQYrfxiB1rFJbW2Ws OTS7alp/Vja1oKsYEispqzHVxK+i336wva1f3g6B4Vr0lujdH8+oOUR3ZMfDs408I5cv LNLcF85iXXvSZ7f7ut3obQnBYaBleGvpoC2+5HYLZJ4pvRMXJ+mQIf8LJ1lLZA7vzrO3 xzt8CF2Y92/lFmkHmaqHPw1AvGxDsTZ52mAi79LJ1Bdqms9gikNk3VjYZLOyndGFn/j5 g4Yg== X-Forwarded-Encrypted: i=1; AJvYcCX2q4Pab6rtdD+co45XSUqN14ToLXgHWysa9SKl9seg5ko8WwbhW6ls7vyE+yrVVT+lKfSUmxVFfNmoNKfSvvgQvDUECmTlZcGHiZ0R X-Gm-Message-State: AOJu0Yzv7nhnzQmrUQC9RUfgkXxmT5y1BYIcTTrJwqPRXqnp9c8h7BFE hH4GcVH0Dg3i8Dzh1U2xfNBLiP/4uP4SkOjqtL8kghRqmJAmyLZmqr8srMZpSVQ= X-Received: by 2002:a05:6358:1914:b0:178:f482:6e56 with SMTP id w20-20020a056358191400b00178f4826e56mr4157938rwm.12.1707341853161; Wed, 07 Feb 2024 13:37:33 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXnaI1yMTjyzyiORfE4wEG0c0EjfVS4eLq8k2NEdte69T9QU5xFLujYbaEkBr6CBLt5ZJ93jcGIqhoUtf376yA50qdtiwt1x8eFmjFbcB0wjN2SncXYHgmdh4NQbVk9Njweq8Rgg0cuC/4nRg== Received: from dread.disaster.area (pa49-181-38-249.pa.nsw.optusnet.com.au. [49.181.38.249]) by smtp.gmail.com with ESMTPSA id r5-20020a632b05000000b005d8e280c879sm2137667pgr.84.2024.02.07.13.37.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 13:37:32 -0800 (PST) Received: from dave by dread.disaster.area with local (Exim 4.96) (envelope-from ) id 1rXpbl-003Rb1-23; Thu, 08 Feb 2024 08:37:29 +1100 Date: Thu, 8 Feb 2024 08:37:29 +1100 From: Dave Chinner To: Miklos Szeredi Cc: lsf-pc , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [LSF/MM/BPF TOPIC] tracing the source of errors Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Feb 07, 2024 at 10:54:34AM +0100, Miklos Szeredi wrote: > [I'm not planning to attend LSF this year, but I thought this topic > might be of interest to those who will.] > > The errno thing is really ancient and yet quite usable. But when > trying to find out where a particular EINVAL is coming from, that's > often mission impossible. > > Would it make sense to add infrastructure to allow tracing the source > of errors? E.g. > > strace --errno-trace ls -l foo > ... > statx(AT_FDCWD, "foo", ...) = -1 ENOENT [fs/namei.c:1852] > ... > > Don't know about others, but this issue comes up quite often for me. ftrace using the function_graph tracer will emit the return values of the functions if you use it with the 'funcgraph-retval' option. Seems like a solved problem? -Dave. -- Dave Chinner david@fromorbit.com