Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1696921pxb; Tue, 26 Oct 2021 14:06:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNubf5IWgjoiCjIjz47O0y0RB0IUzEz4pNA0b9D12BhjhBbZPCyAK0wX9APZrl3bZQMOm8 X-Received: by 2002:a17:902:708a:b0:140:e30:a48b with SMTP id z10-20020a170902708a00b001400e30a48bmr24154217plk.54.1635282360648; Tue, 26 Oct 2021 14:06:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635282360; cv=none; d=google.com; s=arc-20160816; b=PgD4YJe0FxA/xYnmZde3QfLT3drHwiEhCslHF6VrALuoP7FWg9SN7HBj9ZKxoz0qku 9gRMt+a8CWpasxmBsB8WkPGFE5oaYwWLwcTBQ3k+nXXbAHKECC2KpZa0uCJmZRbjCOQv Asr7DYwPwpNYXrer+MLPIiyP9VaL5aQFjzy0XbQObiH9G0zQrzMKzx43I8UGTwdk4zzD jBcXOjuHW8HE6ib2W9eLWdKUZEMlHCuaolfMEyIXreP2OifTwJ12RqHzcnBPxzwUlJfz oWvZWzFnhroDB9bE63AoH4iTTApQdnyjFbTDUPSQd8oRSVAfh871bd5nENQ+KTpraO+2 VvpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=dUgS9Y4fMOzgJpmk7w2+JRjUE5WuS3GPbfLhh8XPpf4=; b=fmzaILQ58nUbCU78Z7DKYCZ11DhJK9QfizAzobOzpnQSCB68IRbPwjrPzF19dS+/ad RPMuEnO19YIn/gmI6qqLb3DtA+dvQzZDHWzQM60pwBWFw8XaiG3war8ctkHSog9xseSr oNtJDK/+YRaVJMSlnsqAauArPhJD77G32rbiD+HmqRC/qUabI1UttrwS9tZ/oG+ipcRa 2Gd8RzORNzKDlT3YqSw4c0adsAzSxS89oGMIrcNxZimyPLUgJzFFD6c+bM21WY5LuR4X 7JpFoYUHFiiaixqUadeDs/P5uIYdg2c9XgSrCPktmFzjZZwMu8uBIzQf+krIqYbR9kTv mFpw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g14si1734257pfb.368.2021.10.26.14.05.40; Tue, 26 Oct 2021 14:06:00 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235852AbhJZPrC (ORCPT + 99 others); Tue, 26 Oct 2021 11:47:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:49244 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231580AbhJZPrB (ORCPT ); Tue, 26 Oct 2021 11:47:01 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 215D961078; Tue, 26 Oct 2021 15:44:37 +0000 (UTC) Date: Tue, 26 Oct 2021 11:44:35 -0400 From: Steven Rostedt To: Huan Xie Cc: Masami Hiramatsu , mingo@redhat.com, chenhuacai@kernel.org, linux-kernel@vger.kernel.org, Tom Zanussi Subject: Re: [RFC PATCH v2] trace: Add trace any kernel object Message-ID: <20211026114435.682fe060@gandalf.local.home> In-Reply-To: References: <20211021185335.380810-1-xiehuan09@gmail.com> <20211022180752.0ed07b35@gandalf.local.home> <20211026104720.03ad26c2@gandalf.local.home> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > > > 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