Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp801934rwl; Fri, 4 Nov 2022 06:36:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6+otrLEUyGHnETxHL6WnwBne5QuGqj0Qs31ohf+Bu+av4pyMA2pTQKr2DnntfTaRQgEWKV X-Received: by 2002:a50:ed82:0:b0:461:ab45:df1a with SMTP id h2-20020a50ed82000000b00461ab45df1amr35813636edr.295.1667568988991; Fri, 04 Nov 2022 06:36:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667568988; cv=none; d=google.com; s=arc-20160816; b=ME1gpOB8V+uU4X6Z5nLfuqyqn1HPZQ8vOEH9EiwalhyrIiUZiUo6Vs5gVPWrtuqXjX EuVROC9uthNEtTDw8QcEeN7D6O/ZImVO8eYleM8E+knCbpQuam4gcsBHolqaUjDS42Rm vQh6rQdoVIa+vDdej0DaoySoJkn0ehxlNgR1QIL3Fu9EQttCnlJpOuXfGscuExs/Utnl Ta1lwJHQr/Y2lNp9QXKnRX80/3kCqLA9gYI44znqW6xLFm53sHZlDXivaVF4VBiATdbX NOndSmZwwu5iYpLBtjVznYdwyNnV7jhYhMUtWnWz4jw4eqHukqeTJgAhHMb3kIQp4Bsd l/Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:mime-version :content-transfer-encoding:subject:to:from:date:dkim-signature; bh=E+XzMKU05SBCjZ1akHyN80VngofkywOG1jO+qLwFMRQ=; b=u3XfbabYqWpdQFOlqUecXd8+lQbmqbS65RNyoYPh78yZA8cBrB/wBWdjea+JtrPlXc Y2QiM1dUH4R6cOkIkGJw5YppO6gYwNLdK1RBKYhAxIfDvleXj6+gfun1PNcK6NWg2PLa i7K0jyGE3khJDpSZvcbBD5FN3JYUz7UZebvhrp0JE+9jm8jh8bHFgsB6E4wS9rUEIzvJ 2kulSAOr3+mW0lyqLh4GF5Mf35XUED6a+/NRyLpzvZtC9OqCgJtxD2d2iJfEqwZzZl8A 4BVuraTfGhM+zUGRZfqqEDdXTHMlwk0yKIMjKqOLmAzOUTAPDVqMkOghp4/K7qF/lZAO CIJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@163.com header.s=s110527 header.b="Yp/+ETeK"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb18-20020a170907961200b007ae24f7774bsi4197859ejc.168.2022.11.04.06.36.04; Fri, 04 Nov 2022 06:36:28 -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=neutral (body hash did not verify) header.i=@163.com header.s=s110527 header.b="Yp/+ETeK"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230205AbiKDNHl (ORCPT + 96 others); Fri, 4 Nov 2022 09:07:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230021AbiKDNHj (ORCPT ); Fri, 4 Nov 2022 09:07:39 -0400 Received: from m13134.mail.163.com (m13134.mail.163.com [220.181.13.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 89F142E6B9 for ; Fri, 4 Nov 2022 06:07:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:From:Subject:MIME-Version:Message-ID; bh=M9PbT Gakjv/3zqqgp2j3iH+TiftOFmtoxz74GES9Wdo=; b=Yp/+ETeK6T2LXqYxNALmY CjF/byF4HURdXx4RLah+6zhP35r5VkVwOboxj1jrufD3Huwl3mLjk2nmx5qKIukL jH4Wm9IVgMZ82BCTNoxEw7M2dmVa305eNgdRcpXK/+l17Guqna9gmuaoq4IT3hmJ RsPUcQbRcv+LsrJ3c2keeM= Received: from 00107082$163.com ( [222.64.157.165] ) by ajax-webmail-wmsvr134 (Coremail) ; Fri, 4 Nov 2022 21:07:35 +0800 (CST) X-Originating-IP: [222.64.157.165] Date: Fri, 4 Nov 2022 21:07:35 +0800 (CST) From: "David Wang" <00107082@163.com> To: "linux-kernel@vger.kernel.org" Subject: [PATCH] trace/trace_uprobe: Only invoke uprobe ebpf handler when event matches. X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT5.0.13 build 20220113(9671e152) Copyright (c) 2002-2022 www.mailtech.cn 163com X-NTES-SC: AL_QuydBfmduEou4yWfZekZnEoUjug3W8K5v/kk3Y9VOp80iivC1Q4adlVPLEL4686kOQeHmjKpQSRf6PtgR4pKcqx5q1y7eiLUqlPJsufzuHT5 Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=GBK MIME-Version: 1.0 Message-ID: <41828b90.5798.18442c10017.Coremail.00107082@163.com> X-Coremail-Locale: zh_CN X-CM-TRANSID: hsGowACH_t2XDmVjmj5cAA--.49235W X-CM-SenderInfo: qqqrilqqysqiywtou0bp/1tbiEAivql8YLKr7GgABs8 X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2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