From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757492AbdJKOOJ (ORCPT ); Wed, 11 Oct 2017 10:14:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:55576 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751689AbdJKOOH (ORCPT ); Wed, 11 Oct 2017 10:14:07 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 70346218BC Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=goodmis.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=rostedt@goodmis.org Date: Wed, 11 Oct 2017 10:14:04 -0400 From: Steven Rostedt To: Jason Baron Cc: LKML , Ingo Molnar , Peter Zijlstra , Thomas Gleixner , Andrew Morton Subject: Re: [RFC][PATCH] tracing/jump-labels: Add message when a trace event has no instances Message-ID: <20171011101404.42ce47ab@gandalf.local.home> In-Reply-To: References: <20171010185630.78053ea9@gandalf.local.home> X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 11 Oct 2017 10:00:48 -0400 Jason Baron wrote: > > I'm wondering if this can be checked at build time, without adding > run-time paths? Can we look in the tracepoint section for the static key > address and then use that to search the jump label section if there are > any branches that use that key. Possibly, and I thought about that too. This was just easier to implement. I could look into doing that too, it shouldn't be that hard. It will require another elf parser, but I've done that before. -- Steve