Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754561AbdLFDGr (ORCPT ); Tue, 5 Dec 2017 22:06:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:36092 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754350AbdLFDGp (ORCPT ); Tue, 5 Dec 2017 22:06:45 -0500 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1445E21882 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=mhiramat@kernel.org From: Masami Hiramatsu To: Arnaldo Carvalho de Melo Cc: Masami Hiramatsu , bhargavb , linux-kernel@vger.kernel.org, Paul Clarke , linux-rt-users@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: [PATCH 0/5] perf-probe: Improve probing on versioned symbols Date: Wed, 6 Dec 2017 12:06:20 +0900 Message-Id: <151252958056.12861.954203514347167563.stgit@devbox> X-Mailer: git-send-email 2.13.6 User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1938 Lines: 49 Hi, Here is the series for probing on versioned symbols in libraries. This includes 5 patches to fix the issues discussed on perf-users ML (https://www.spinics.net/lists/linux-perf-users/msg04637.html) [1/5] Warn if the event name is invalid. This notices user that there is internal error which caused by unexpected input. [2/5] Cut off the version suffix when making event name from symbol name. This fixes a issue when a wildcard hits versioned symbol. [3/5] Add "__return" suffix to the event name automatically for the return probe, so that user can easily identify which event is on function return. [4/5] Find versioned symbol from map without wildcard. This allows user to specify a symbol without version suffix nor wildcard. Anyway, at this point we have no way to specify version suffix, because parser recognizes "@" is a separator of "function@file" syntax. This is fixed in next patch. [5/5] Allow user to use backslash-escaped characters on command line. This has 2 effects, user can specify version suffix directly, and we can use special characters in source file. Thanks, --- Masami Hiramatsu (5): perf-probe: Add warning message if there is unexpected event name perf-probe: Cut off the version suffix from event name perf-probe: Add __return suffix for return events perf-probe: Find versioned symbols from map perf-probe: Support escaped character in parser tools/perf/arch/powerpc/util/sym-handling.c | 8 +++ tools/perf/util/probe-event.c | 81 +++++++++++++++++++-------- tools/perf/util/string.c | 46 +++++++++++++++ tools/perf/util/string2.h | 2 + tools/perf/util/symbol.c | 5 ++ tools/perf/util/symbol.h | 1 6 files changed, 120 insertions(+), 23 deletions(-) -- Masami Hiramatsu (Linaro Ltd.)