Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1751943pxb; Tue, 26 Oct 2021 15:19:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrZEJm/NNqvhVtSFv3OWNmRXLnvaDxQAByhdyZLNroKlOmIpybcYLlwbvaWgxHmIWSZa3B X-Received: by 2002:a17:90b:1a84:: with SMTP id ng4mr1704044pjb.80.1635286752725; Tue, 26 Oct 2021 15:19:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635286752; cv=none; d=google.com; s=arc-20160816; b=OUvXyjCcT+earacLg48Xj20wa1gXYSmuPI2eoyeAY8RKuV7ip9LGSLjRep/pcEGCmG gz6J0YFcpE1104y/R8XAruRgGKKy973iunaFFTkYjMja0ImuP0H24IAKazon2PuRRqN2 hxh0/SHM/m0VLqh0vMMcEV4vjEA+Q5Rncxp8piCTg/mpovzgzHEJ6Cl6uCxlwn769QoV cSNMe02oqaDNz6tOITYllJMv2xZ1yTE13mhnJ5YAAR29ETdNsMGUCsOp7lpNWZXP1yFL Rus4tCbl7YGKMWQq602P3kF/aNuWfBE2l+ObBL1XgWxzbzkZ0eU1DZB4ZJPn4HvKzI2A EG9w== 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=tNvhvS+omTapD0lmRTOHfCi+rtlERIM+Ep5FDBCLxiw=; b=B7A3qewQgIDaW03XaVgLOHClSm9QB0zXw0lCtRL2jLGni2PhtYd3g6zXgDy+H7uQGq VKeeJUQF51AbPz7DjocRv5EoEF+PywXwy5l3ZuDC/xkHWHiTuVpTwaDg2DUz9qr/+75V LxYXXRTEIc1/+EobWsHEuswAlGwailqLxJXv/OJsHyngjC9//tB62/8+Lp89GGARCckt vK4nRZDSH1iOHnE7umpBQNDPOFnpa28K+21F7+2cNSOj8Mbm4KUbHDLNthmLXDByuzFC wsDMg128fWMZyqT7Czzd4xhqJHpNeS37k5tTFBNvX5BttO9TBBXTMSdy0T3P/FBTs/I6 6WIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=V10uwXBb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 72si2049987pgb.441.2021.10.26.15.18.34; Tue, 26 Oct 2021 15:19:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=V10uwXBb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S235440AbhJZQNj (ORCPT + 99 others); Tue, 26 Oct 2021 12:13:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235165AbhJZQNh (ORCPT ); Tue, 26 Oct 2021 12:13:37 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5C20C061745 for ; Tue, 26 Oct 2021 09:11:13 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id g141so14626913wmg.4 for ; Tue, 26 Oct 2021 09:11:13 -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=tNvhvS+omTapD0lmRTOHfCi+rtlERIM+Ep5FDBCLxiw=; b=V10uwXBbPFCW4DIAj09kz/W2rvsCVSHTbss1G3lQ4vq/iZwPq3NCT3p4v9Xc0kG4yD Z95BB9lR3KDVX3iB6PMjItUIkFtDJhwFOuIzhshSnWpiIX4m0JYAFos+OkQaP7UwxY2t DdffPWWYCEmKZE8OAyPUYNzzimRVna3axdnr6P9Ql9WnJ1QUr4egcS+wmVPxOYRlflzT c/TTJVrx5hymjXDaOr9qk9/IHWTlo19vtaXFmX872LwDlTBfh7dsRIzZWozfPqvaFYS8 L4g1TgxLfGyvVzry3xLr5uUTwxws+41DYQexRnO9v/koq55//dHq92ajjr4o0wrIUmsf j1IA== 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=tNvhvS+omTapD0lmRTOHfCi+rtlERIM+Ep5FDBCLxiw=; b=kojvRy4SHE06WWRMaiwFBtSCI9Yo+dzuwPL6XVdOhu7FS+aynlZQXBRoP2oCJVMVN5 raPou2VURlklzcPExp0MVYDXxpn/cVDYGtYYKFY1Pi8rMyVzzn2i6SD6CeuYuiqjQ93P B+X4Axu8LnAXGfT6JQ/qKLVTOtsh13DyxEWCaoLEsOQ2HYrkEVGF/VF+wDwahHxGsoMu cY28gvjiTCGWwJ7KcHoD6ibAXjr+9uNyHv4gRshinoapctHhqnrqmZFNK4dZ8uJxiete bLzMquRkay9sJHZYUwrdlJR3vZ7zpLHb9ghHx+AX963khPp/mqI4kQ9P3Ry+J54PfIBN 3grA== X-Gm-Message-State: AOAM533vqqYlhA8GUMYMzpRBeedE51K977dFtrwE82dkacZ7RujF+ivm gLtE2CsAifColarbkG1IOTTbSqqhvVrtXbyB4Js= X-Received: by 2002:a1c:f316:: with SMTP id q22mr41990131wmq.55.1635264672402; Tue, 26 Oct 2021 09:11:12 -0700 (PDT) MIME-Version: 1.0 References: <20211021185335.380810-1-xiehuan09@gmail.com> <20211022180752.0ed07b35@gandalf.local.home> <20211026104720.03ad26c2@gandalf.local.home> <20211026114435.682fe060@gandalf.local.home> In-Reply-To: <20211026114435.682fe060@gandalf.local.home> From: Huan Xie Date: Wed, 27 Oct 2021 00:11:00 +0800 Message-ID: Subject: Re: [RFC PATCH v2] trace: Add trace any kernel object To: Steven Rostedt Cc: Masami Hiramatsu , mingo@redhat.com, chenhuacai@kernel.org, linux-kernel@vger.kernel.org, Tom Zanussi Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 26, 2021 at 11:44 PM Steven Rostedt wrote: > > On Tue, 26 Oct 2021 23:40:03 +0800 > Huan Xie wrote: > > > > > static void trace_object_trigger(struct event_trigger_data *data, > > > > struct trace_buffer *buffer, void *rec, > > > > struct ring_buffer_event *event) > > > > > > > > > OK, so let me ask this question. What is it that you want to see? > > > > Thanks, I got your point now, my original idea was to just track the > > flow of objects. > > Well, the current patch set doesn't really show any flow of objects, as it > only records a value that never changes until the next kprobe is hit, and > we get that from the kprobe itself. My original purpose was to track which functions the (struct bio) passed through for the linux block subsystem. and which functions the (struct page) passed through for the linux memory subsystem. ;-) and I feel this help will be great for learning and developing the linux kernel. > > > > > > > And let's say I want to monitor that __bi_cnt while functions are being > > > traced. What would be *really cool*, is to mark that value! > > > > This is really cool to get the change of the value. And is a good > > feature enhancement. > > > > Right, and this is what I thought the purpose of your patch was! :-) > > And why I got really excited about it. So I don't see this as a feature > enhancement to your patch, but the feature enhancement that your patch can > give us. > > -- Steve -- JeffXie