From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DF592C3F6B0 for ; Tue, 2 Aug 2022 07:07:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235648AbiHBHHR (ORCPT ); Tue, 2 Aug 2022 03:07:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235738AbiHBHGu (ORCPT ); Tue, 2 Aug 2022 03:06:50 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06744491F3; Tue, 2 Aug 2022 00:06:48 -0700 (PDT) From: Kurt Kanzenbach DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1659424006; 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: in-reply-to:in-reply-to:references:references; bh=tAdw5PAie7dR2rW+68+HHxt7ehKp+AayklL8k0nymhM=; b=QXwOSd8d5AHmPeyPL9f/yDH28NMjHF80aZwbr+TMSiGR9kzsFRlqwXUV6TOrtUrg5YIuHM RuV0qtyNz02QMrzDTTLPzSW9dCUx/J7XTMo1r7sQJaa2MpupTpY/Y5Cl0md1dN7365uMjz f6KHchHr5IILDoTyVSiobqiUQ5BAlwXyNT4uQ1zgY/mR3MOUZMoZ3yefeAqnzO1pMeDHeh ukhfd1w3GYpKlSpx4Wk0MH3GYBBTFnE08FB40Af7fQZlwf7wH4DeVA6DSCO9cXuybY8DFQ mR4bIvZjTH4xQsbWCm6DjESbOGeD5+btKZz4PTgkI3dGmVvXsCMdT2BZbLNfIg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1659424006; 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: in-reply-to:in-reply-to:references:references; bh=tAdw5PAie7dR2rW+68+HHxt7ehKp+AayklL8k0nymhM=; b=eu9kQ392QLiVoA1eEm0Lb59RVAT3nn2RMJY3mEbxlnxo7jDmV5ZrEQCvFJkyzuxVTwQUAT rYNxUPmT1PetgVDQ== To: Alexei Starovoitov , Jesper Dangaard Brouer Cc: Thomas Gleixner , Jesper Dangaard Brouer , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Joanne Koong , Jiri Olsa , Dave Marchevsky , Lorenzo Bianconi , Geliang Tang , Jakub Sitnicki , Network Development , bpf Subject: Re: [PATCH bpf-next] bpf: Add BPF-helper for accessing CLOCK_TAI In-Reply-To: References: <20220606103734.92423-1-kurt@linutronix.de> <875ylc6djv.ffs@tglx> Date: Tue, 02 Aug 2022 09:06:44 +0200 Message-ID: <87pmhj15vf.fsf@kurt> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org --=-=-= Content-Type: text/plain Hi Alexei, On Tue Jun 07 2022, Alexei Starovoitov wrote: > Anyway I guess new helper bpf_ktime_get_tai_ns() is ok, since > it's so trivial, but selftest is necessary. So, I did write a selftest [1] for testing bpf_ktime_get_tai_ns() and verifying that the access to the clock works. It uses AF_XDP sockets and timestamps the incoming packets. The timestamps are then validated in user space. Since AF_XDP related code is migrating from libbpf to libxdp, I'm wondering if that sample fits into the kernel's selftests or not. What kind of selftest are you looking for? Thanks, Kurt [1] - https://github.com/shifty91/xdp-timestamping/tree/master/src --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJHBAEBCgAxFiEEvLm/ssjDfdPf21mSwZPR8qpGc4IFAmLozQQTHGt1cnRAbGlu dXRyb25peC5kZQAKCRDBk9HyqkZzgt3bD/0cPNL9DF0UocuUq/aYcJwAr132MSSt GPbregF7Q7HtI41B0nbqfj3Zz3zYB4GYcMzen8ApbpTKIcnrxTQ2lRbyMoElfe3e 9KKCVh6ALl8RzzHiCPfvFqwJClfdWZhyLr5IZ98K2cxIRPp/HdrPEBpK2LxcBXPu 5Pi585ymkWZM/0dk6/NvmvDWPgMhPTbtwdQUGl85/q++2zUFGPNc6Sd7DO7f1bm9 7mVZTZAp/OKj1W0Ul5/o+AA+7zIVbFnd7+s9Ezg908QqlW45Civy9dZpVCtsNvmX oa6jjipmU8tAUxRM8S8zuoR74o4TLthRNi481jKROGN6PHQpIQOGBlj9Mw1INnM7 DjA//xYFYcjpPoG2ozvICZeWUNcqEIyuc+Ka5RlcGCpYw5WNHq+2XZLR6K6QhQ4k eZjCZK7jPLbM7zvm+M7pCMqGzG+nuddW2OcS+N2g4LgkKlK2xQ9Acp1KMyScXkaP RXEzPZkr9HcEVqd5KlzyFiqM4OFHOmQvZ4eyKxaNjAZwA9wwrVqiWI8xnp+PlpNF Gg2MVYYITQ4YWkepK3XieusPhINJARSNgBFRyRIG++2nm+1UDJ7RE6gI5vyLfpl0 NwtwXBUMEM4JNog+7j/YHeF76pwHs9wCecplm2CdISZ+2RbWORS+Ox1i5/WnU9Mt MANw9OXx70nesA== =NcTj -----END PGP SIGNATURE----- --=-=-=--