Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp75116iob; Wed, 27 Apr 2022 19:32:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySqqUhIissSnBVkqM9OBKfyZftS0KUnOZquvJz1irSoKNzRWnnjNqXh4AjO2wZCfHb2Kq6 X-Received: by 2002:a17:90b:4c44:b0:1d9:f9e1:25a with SMTP id np4-20020a17090b4c4400b001d9f9e1025amr10193071pjb.39.1651113160590; Wed, 27 Apr 2022 19:32:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651113160; cv=none; d=google.com; s=arc-20160816; b=BniWFmwJsZfFaZji5z8lVL0KOExCIxPpxMcOxlMuRM6CmgbrMjb6dnOTo2/WmUy/T+ MlcL4pfeTGFX7QRjiDW5qJdUvCwcj5FGfCtTbkKLydWtve0l5xQds2/GjOuB63zym11a 2ENh4oWESVltBX97loShIARRR+cU1mYzts7fla7DyJIXYodN8aLdyE2gB04I18sOx4nV VO96QmMkRIsH0XZKFicruQGMhayooWR47PQZ59h0Lzr1XM9brlMzXu4n+MaCS59KA2kZ /QDLmJxdesgYEvqWQmmw7kWOzl03/+ShFys9srmcJNvfA1iWJQpiVjOFwABA6Nue+K9u 8a5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=J+PADB9F5WqUqK6GNU+Fxyjymg7zexYWmAXBuu5DB9g=; b=C+gUAvg/DZc0RNLxspw4XkdEucReFYCLA3+MKSip/AnRft+z2c1fHE5AS4NSM6qJqc U2Efplv+jvztwzkNiIr/v2ExouWGtzbpg90g/wb/La3Z5Ry/mM3i+ZCbS02L0ZYSyUOl aWL12QdPHfugBY0BBix9qB+xUTQ9m4T0UmtYZmXZtC7tcmtqez+sdJFvwPKhYSUuMwbU CTgo26FP0zzlteQ32nMKTXk65Drc0bM8hk9cPVpsOF6l2Oe9PlmKdFWhDUqjUAb+twZh dkoHQqm3imaY8uukT6cLjbfdPyNvrheok1aJHSAfk06Kwbf3uZEQrjwTdNFyTdXcm3AP 2KUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=U7azQ2bU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f2-20020aa782c2000000b0050a9399f21csi2864302pfn.135.2022.04.27.19.32.24; Wed, 27 Apr 2022 19:32:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=U7azQ2bU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236805AbiD0XbY (ORCPT + 99 others); Wed, 27 Apr 2022 19:31:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235668AbiD0XbX (ORCPT ); Wed, 27 Apr 2022 19:31:23 -0400 Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C41C5186E6; Wed, 27 Apr 2022 16:28:10 -0700 (PDT) Received: by mail-io1-xd2a.google.com with SMTP id 125so4838002iov.10; Wed, 27 Apr 2022 16:28:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=J+PADB9F5WqUqK6GNU+Fxyjymg7zexYWmAXBuu5DB9g=; b=U7azQ2bUah5mgLR/JEX/N2A3mspp3zwA+qStLEeStwS/w5mOfeanqxTJ1Z7BpA7t77 sZ0ei5lKcGnDWrRQDT3q33zjz86xpbg5Rmq1Qq8gw4iA/FaZE9vx6qGrhS4mtTlrk6T9 B+XVrTVRwAryBUF+e1GO9yoNSwkP2HEhwXth1LBTj0wvToNjx9VyRqtyQm0Md/nR//vN rkmpHlaE2fKHvCMdXR9OMwX6CcD+KVKBdR1mIq77GAGa3hYM2xzCqMmznRpl5j4X68wY rMuThzJzcNs75oXtKDvpHctRzmFNKb14YbU5Gr3w+N7O+N8ZuUTgZqgmTqUdfN5d1pDG sUJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=J+PADB9F5WqUqK6GNU+Fxyjymg7zexYWmAXBuu5DB9g=; b=zm1lG4HUgLS+WHpKIJsR9rxFLhjv23BYl8d5+v76BeHsGU+8lkl0MwvLm7uPLf5XrX W4JG3MwbihToR7P+L3GcO+fpyD0be6RfEql0j1ipEI/HkY1MMHtl6Njle6I91+ALSeKU IXBgMPyrjnF+d5CtM8YaNHGY4/QTrlwneOwg4orMWYhAkfqe4NkzxvY55ytGXRt7T+2w HEc/nLFnFW/IaJzUCsRB7InEXE6UgI0t+VPQSEFoxIl0XEMv1vGRu/y1u7rcWyzcTfVF 2FJSmeI6DGFktT3jE0xl1Em4JJ6SxabAAc3DZlEmxxpadRGf61X4GED0WfVKqEXWhc3M qEng== X-Gm-Message-State: AOAM533reNHTqa8rYaSo/ewOTBL4XV4ffQ81FYxkVq2PfIuwIAD9/Uq1 ZUQaF1oUy8Gpulfqxbu+cn2UvwztJsrVulx0CmI= X-Received: by 2002:a05:6638:533:b0:32a:d418:b77b with SMTP id j19-20020a056638053300b0032ad418b77bmr9771567jar.237.1651102090204; Wed, 27 Apr 2022 16:28:10 -0700 (PDT) MIME-Version: 1.0 References: <20220427210345.455611-1-jolsa@kernel.org> <20220427210345.455611-6-jolsa@kernel.org> In-Reply-To: <20220427210345.455611-6-jolsa@kernel.org> From: Andrii Nakryiko Date: Wed, 27 Apr 2022 16:27:59 -0700 Message-ID: Subject: Re: [PATCHv3 bpf-next 5/5] selftests/bpf: Add attach bench test To: Jiri Olsa Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Masami Hiramatsu , Networking , bpf , lkml , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Steven Rostedt Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 27, 2022 at 2:04 PM Jiri Olsa wrote: > > Adding test that reads all functions from ftrace available_filter_functions > file and attach them all through kprobe_multi API. > > It also prints stats info with -v option, like on my setup: > > test_bench_attach: found 48712 functions > test_bench_attach: attached in 1.069s > test_bench_attach: detached in 0.373s > > Signed-off-by: Jiri Olsa > --- LGTM. Acked-by: Andrii Nakryiko > .../bpf/prog_tests/kprobe_multi_test.c | 133 ++++++++++++++++++ > .../selftests/bpf/progs/kprobe_multi_empty.c | 12 ++ > 2 files changed, 145 insertions(+) > create mode 100644 tools/testing/selftests/bpf/progs/kprobe_multi_empty.c > [...]