Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp78216pxt; Wed, 4 Aug 2021 06:21:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2AhbSuyCyMUiykEY7p1+p9kgftxiEqOQHToG2VO8rJo4KbtM2/rhRmtv5G8jfZi92Oxj8 X-Received: by 2002:a05:6402:60b:: with SMTP id n11mr33236256edv.235.1628083290793; Wed, 04 Aug 2021 06:21:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628083290; cv=none; d=google.com; s=arc-20160816; b=jPrng0ZvJXpapd1l1U8tINKXNiKR/Zaq6jIyYC9sHZ1UV2DkimiQBZNUSPo1+S8msq YdK6n6fZajqktixiK+wNAtj5lRSjMi1mzhSAunXXIE9UQi/9d1nNiUpL1Z6Zd66HOm/y mmboeiKNZxbX11CcGYBZoWihB3CXKeHSsn2CJztsJYBc9acWkmmP6itZtPKZ1mtD4qQP 6ydQrqt/67Uqm1RH0H443vHkMAY1uZ5XkI4UKPy+JBLIu//SHJkzSJrC4+MQdl5kvft9 9wK38E/yx9F4274OQZYs4PTOsC1ql63aYs4rxwVzz3m5wxHPmifFdgG9AB0qOr5bJhCt ACYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature :dkim-signature:date; bh=Wge5H3ohVu9KXZ7XjLIwa/xxD3n3Ba0yHl81R3u0frA=; b=VnkafvURZszAYmEaepLQYtFt9e4T0INWEJ6ruiD/fo9QtAzvTrMSCdeWAtlOBMDe36 JUZ9fWusBiTH4P2ttbAxSlR+ZlxgMu0CEYyw3dg1y/AtjjR7osbXxbDlt4AqkIPdcjkx kAvp3gjBNHQwJqsfYncOP+2EqdU5zSclg3g5WHnS2+/BUvGEjnY2/dBeVr6cM1A+x/nu B9vForL4mNhPmqMXLeI7HrJjQfQQsF+OrfpLzqrIoqoRjPUEXB/Enn6TjwBVtkzPC/B+ 8OmHeyTmJ1NhgDzmrSx6WRfp41wFFaPqDM+uxbresGepdk8GNV5737l6EM9/4swjK/+M x2ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=MOh7k18u; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=HLf7HfrL; 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=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p18si1953975edr.531.2021.08.04.06.21.04; Wed, 04 Aug 2021 06:21:30 -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=@linutronix.de header.s=2020 header.b=MOh7k18u; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=HLf7HfrL; 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=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237459AbhHDM2H (ORCPT + 99 others); Wed, 4 Aug 2021 08:28:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236758AbhHDM2G (ORCPT ); Wed, 4 Aug 2021 08:28:06 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CDDCC0613D5; Wed, 4 Aug 2021 05:27:53 -0700 (PDT) Date: Wed, 4 Aug 2021 14:27:49 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1628080071; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Wge5H3ohVu9KXZ7XjLIwa/xxD3n3Ba0yHl81R3u0frA=; b=MOh7k18uhCf+MgMnNnUIHRYL5O8XUW5VqzJ8lNWxFnJN11YbJBaMGSiiJwiCA7o2e30sLR tMR69cRX1CZL312mDITZuGx/j8EoB14c8PMB1CO23kblozN06AcR0ZcrX070tuTy5ud9Yf mBpAhZBtCLZPK/PVHMNm+gmaevz9hSkwZJzDZATZBx0mv03/6Xr9RkKxgFG7fjXY+c6Pf0 HdY0YO2EXNi7hsUUCgGDtCgp+vLzWJBjNub6RZMcL2oWDYfBJsWLlhBoNGGywF2apsxaA1 RU3kqSRbChkznr23W6u8imITLNQRX8DLD7oNo4lamfiwfZPz9IgfywWMW+Dr2w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1628080071; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Wge5H3ohVu9KXZ7XjLIwa/xxD3n3Ba0yHl81R3u0frA=; b=HLf7HfrLeP6rzmVeqro9DbhiKXsH2RvNuNcn93Kb8lcfxBtaEasCaOEARSTvn1rz4bR8UB EI1HBnpOqGOg7oDQ== From: "Ahmed S. Darwish" To: Steven Rostedt Cc: linux-trace-devel@vger.kernel.org, linux-kernel@vger.kernel.org, Tom Zanussi , Daniel Bristot de Oliveira , Masami Hiramatsu , Namhyung Kim , linux-rt-users , Clark Williams Subject: Re: [PATCH 17/17] libtracefs: Add man page for tracefs_sql() Message-ID: References: <20210730221824.595597-1-rostedt@goodmis.org> <20210730221824.595597-18-rostedt@goodmis.org> <20210801182916.689a84a8@rorschach.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210801182916.689a84a8@rorschach.local.home> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 01, 2021, Steven Rostedt wrote: > On Sun, 1 Aug 2021 15:39:25 +0200 > "Ahmed S. Darwish" wrote: > > > On Fri, Jul 30, 2021, Steven Rostedt wrote: > > > + > > > +The SQL format is as follows: > > > + > > > +*SELECT* FROM JOIN ON WHERE > > > + > > > +Note, although the examples show the SQL commands in uppercase, they are not required to > > > +be so. That is, you can use "SELECT" or "select" or "sElEct". > > > + > > > > Maybe it would be helpful to mention that, unlike normal SELECT queries, > > the JOIN and ON parts above are _not_ optional? > > > > That is, generic "one event source" queries: > > > > SELECT common_pid,msr,val FROM write_msr WHERE msr=72 > > > > are not supported. (I wish they were though ;-)) > > Actually, the sql parser should support it, but it will fail on the > creation of events. That's because I started trying to make this create > normal histograms. The problem is, that it can't really do a 1 to 1 on > histograms and selects, so I gave up. But perhaps for the subset it can > create, maybe I can still have it do so. That may require changing the > API slightly. > > I'm not a big SQL person, so I don't know all the magic and I have no > idea how to add the "values" part of the hist trigger. > Thanks! I've replied at the v2 thread. (Discovered after-the-fact that a v3 was already sent, sorry..) -- Ahmed S. Darwish Linutronix GmbH