Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp587247rwi; Thu, 20 Oct 2022 02:41:47 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6wzaUeBUZjkgIq4A4UO95gI7rob60BEwb0Aa77jlanb9Xe+OxdFKjRb1RBkwJsSzeOxhmq X-Received: by 2002:a05:6402:7d0:b0:459:d35c:8563 with SMTP id u16-20020a05640207d000b00459d35c8563mr11687167edy.229.1666258907523; Thu, 20 Oct 2022 02:41:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666258907; cv=none; d=google.com; s=arc-20160816; b=qww9GROnyNLEirXSwtJMcgKeRoZI6w5WUsJT9n5oNF8IPGfv7otR8BX3NvklCPOC4c ipq9YVUEu6NHoYMRLRb1fCIDhrNMcA644dgdODamRonqhWMOH7Zbuog3mKUjea92tVL9 9hzbRkhbjWOjuJsWLJk9s16k+3HLBEEeYkqH+ziThYDblW7K5CFrBVt+sy0qFPRiiH1x SKK80i+7XZkeFDQjFl0Xxq0lumBmwzpLlxRJ1TayHU9qq5BLGCF5ZdouATdWwiWS5Ttz stQdQaDEFRR/hsC6PqaDeLgVUgmcs5orjEjVdxH7x8wrIaOLMojBEOQ3q91f55u/3VpE /IWA== 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:mime-version :dkim-signature; bh=QM8xkj32OoGOO0dMFriK7QKceoHG9G7kAZT7+VWERlE=; b=huq3ss1JBjxyYL1MKVM+a8DlqDGaK5kD5CdpQr31bMBRjgPuHR3FkXMdsmQDPrWQUs ehRn8x1UFyWUKMEROHEeR9+ShhPAETcmGIeoeMrEjAkUasnxKa4/OcF6opjCEG4eecVN 3JH2knrNR+ZQygDdkhCHeK/UUUKoBVGxoHWtw83+yFj92rODgVkCWHIneierYOr8s1zt V7j4rPfqIzts7+ugmnap9fSRXojs8RDwY+z6RufjaPbl0mGyNTqTUs+vPCDArUCWI9km /GUUuPDhmYah2rPhTt2t66gFLtFQgYi+uJ3ptYK8CuJYhyi8YVIZuMz5jRowltFoQW8y FYIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=b6mbfCz4; 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 nd33-20020a17090762a100b007879bc7eacfsi16694743ejc.93.2022.10.20.02.41.20; Thu, 20 Oct 2022 02:41:47 -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=b6mbfCz4; 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 S230323AbiJTJdT (ORCPT + 99 others); Thu, 20 Oct 2022 05:33:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231226AbiJTJdK (ORCPT ); Thu, 20 Oct 2022 05:33:10 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1051F578AC; Thu, 20 Oct 2022 02:33:10 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id j7so33416237wrr.3; Thu, 20 Oct 2022 02:33:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=QM8xkj32OoGOO0dMFriK7QKceoHG9G7kAZT7+VWERlE=; b=b6mbfCz45LcmmxbeztESys81fAArj5s822v0D1SUZhcWCuLKKpHfcHleX6kSYJo1Cr Vi1zHKDHnMBXPty87cd/vxRpSIof/lfchrLXfujxHCHxQOurynErRPCJIkpVLeaJ7nvi nfyQCUrOHYwQ5IlN9kMnbl28I3lmILkTC5rfpfjj6e5cbCImzYULVGZAigYFZbFkm+Yt JilcA5Rhu3K38iF2+ihglsbtMRpfnADeZDt7bzvUs98g0JFAqhhOVveUbgUmB2sVuNVs yS0K9qkz+h6ijEW0NLRjz+smBoUtmkbEG3oTMUBYeTvfgVozKIPSV+9FUH9dkQ8xszi7 oRnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=QM8xkj32OoGOO0dMFriK7QKceoHG9G7kAZT7+VWERlE=; b=oIaPqReh9MJL7lgpDYCEosvlIy/jiAnBnUH18Fv19n6dX0Zev7Qt3Dkk9p180t8vh3 O15syV+SAElsULKl0UNn1PfNtqnqiJplq765HdQQgh1wff2Q+/bi1E5aK5gKHw3+ilpB bkzCtym0CmklmL3N7FfhR/4bFbfEudC0qTMX7mAUBq3LF5RQeERf/RKDBehkogowsH6O hOxhPGkMNzchyUkxtGvMYDheRkmpD9CVmHsi6+bKZHYEM+c5jLMTLavG2mSCNcnOIOMO 7EnsONTSDNN8B1fGaEDKonx/2ufsEYzdIiFOQPiiLqgSOx0Paf4boIDbpxBs+bFc9kdD 9dGw== X-Gm-Message-State: ACrzQf1/r37HxQONY9Es/4kNTpJOXRLrh4s1qP8sDfc0Z9mFspEIX+SH 3BH3pGr+YOvA7hf7ywrAfG+Qo/dtDDMnUeVEJd4= X-Received: by 2002:a5d:6901:0:b0:22f:b097:7de6 with SMTP id t1-20020a5d6901000000b0022fb0977de6mr8264466wru.373.1666258388437; Thu, 20 Oct 2022 02:33:08 -0700 (PDT) MIME-Version: 1.0 From: richard clark Date: Thu, 20 Oct 2022 17:32:57 +0800 Message-ID: Subject: Question about 'for_each_kernel_tracepoint(...)' function To: rostedt@goodmis.org, bristot@kernel.org Cc: linux-trace-devel@vger.kernel.org, linux-kernel@vger.kernel.org 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 Hi, Can this function only find the trace points defined in the kernel image? I want to define a trace event in my kernel module A, then B module to register a probe callback function for that event TP in A. I want to kick off a timer in A and call the traced function periodically, thus I can monitor the events happening in A from B. Can I do that, is it possible? Richard