From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-182.mta1.migadu.com (out-182.mta1.migadu.com [95.215.58.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8EFBC21ADB7 for ; Sun, 15 Feb 2026 17:24:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771176244; cv=none; b=Y5aHt8Ia0DNK0duBeDzJQQLFBYprIh2MSABrvngO1VzRE+sWQSqWvIVia0NA39MoKRPKA0NskcuEJ2YFdf2/BGLphZb2Zd0z65wo9m+vthexZR1sV+iRYZbKWc9KczcxttQfx+kg0GNt6UW5tf94rNKzNIbRfk/bUEXcHkaoHjY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771176244; c=relaxed/simple; bh=+ug8N3fxEfTk+pQ9LJQE6hT4szdAZOuh+GFrSyVeg70=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=muDlfdToBV+jYLH3ZV1A0pyj+AVkxYILcptYdIqFD0/Yzo4lyQAg2DcnDsdXwC14i7fwqHAkeSM3fbkQSgA8nwUkkTintUKSXOdDf2OY7jScdpBNAQKfQLiAP5IXKot0bi65r1U9xQkWmmQ3F3CvsO7Lv45kPMylRDp3NdAML3A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=oDkwR+25; arc=none smtp.client-ip=95.215.58.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="oDkwR+25" Message-ID: <42c8552c-eb41-43f5-bea5-fdd46edba65a@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1771176240; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pdA1Jaae8a2MfjyiVKe/3SRJSLjIuuoFOptEXjGwN64=; b=oDkwR+25EZ3Ryt/bVs8Na3V77FeE0fJ2N5G7OsvQV/Swz++6po39iMYdX3csMeDCBKngWe Ply+5SpmkwNIJ0VpBcNo7WUXcAnx1xFHDvvjpITYyFG58cg3bGXwTOaA2bQxYcjwr0JsKT 6Q1fEcyu48W935LR6GwZRO7ghhME37c= Date: Sun, 15 Feb 2026 19:23:41 +0200 Precedence: bulk X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH for-next] RDMA/efa: Add AH usage counter with sysfs exposure To: Leon Romanovsky , Michael Margolin Cc: Jason Gunthorpe , Tom Sela , linux-rdma@vger.kernel.org, sleybo@amazon.com, matua@amazon.com, Yonatan Nachum References: <20260211131048.36217-1-tomsela@amazon.com> <20260211131338.GA1218606@nvidia.com> <20260212163628.GG12887@unreal> <20260215134122.GA18825@dev-dsk-mrgolin-1c-b2091117.eu-west-1.amazon.com> <20260215171543.GB12989@unreal> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Gal Pressman Content-Language: en-US In-Reply-To: <20260215171543.GB12989@unreal> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 15/02/2026 19:15, Leon Romanovsky wrote: >> Stats also doesn't seem as the right place >> for this. Because? > > How can the kernel and this new counter report a different number of AH > objects? > >> >> In a followup series we will suggest netlink counters extension to >> support driver specific resources. > > bpftrace is generally the right tool, unless you can detail why it does not > fit your specific debugging scenario. I don't understand, how do you use bpftrace for this use case? Once you get to debug a system in a certain state, bpftrace won't help you see events that happened in the past. You won't be able to know how many AH were created.