From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751388AbbKCI4L (ORCPT ); Tue, 3 Nov 2015 03:56:11 -0500 Received: from mail-pa0-f41.google.com ([209.85.220.41]:33688 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750788AbbKCI4H (ORCPT ); Tue, 3 Nov 2015 03:56:07 -0500 Date: Tue, 3 Nov 2015 17:55:55 +0900 From: Namhyung Kim To: Tom Zanussi Cc: rostedt@goodmis.org, daniel.wagner@bmw-carit.de, masami.hiramatsu.pt@hitachi.com, josh@joshtriplett.org, andi@firstfloor.org, mathieu.desnoyers@efficios.com, peterz@infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v11 22/28] tracing: Add enable_hist/disable_hist triggers Message-ID: <20151103085555.GC20951@danjae.kornet> References: <4dac5a3f26463f69c361ac68cbc992a5d227f553.1445530672.git.tom.zanussi@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4dac5a3f26463f69c361ac68cbc992a5d227f553.1445530672.git.tom.zanussi@linux.intel.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 22, 2015 at 01:14:26PM -0500, Tom Zanussi wrote: > Similar to enable_event/disable_event triggers, these triggers enable > and disable the aggregation of events into maps rather than enabling > and disabling their writing into the trace buffer. > > They can be used to automatically start and stop hist triggers based > on a matching filter condition. > > If there's a paused hist trigger on system:event, the following would > start it when the filter condition was hit: > > # echo enable_hist:system:event [ if filter] > event/trigger > > And the following would disable a running system:event hist trigger: > > # echo disable_hist:system:event [ if filter] > event/trigger What about named hist triggers? Maybe worth adding "enable/disable_hist_name" too? Thanks, Namhyung > > See Documentation/trace/events.txt for real examples. > > Signed-off-by: Tom Zanussi > Tested-by: Masami Hiramatsu