From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 65F71C43331 for ; Thu, 7 Nov 2019 16:27:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2F79D2178F for ; Thu, 7 Nov 2019 16:27:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573144075; bh=6V33I/CbC9scqkL+yAKQkI5e5SvV8zhCoIW63U6j6pU=; h=From:To:Cc:Subject:Date:List-ID:From; b=GXUnfpeMy7waViDs6KAE+vzBqggmFqZ71/xSbrP23aeL9c1G1icSN4NeHOkPPN1TB ymC0xPThFV421/CubH52Xgiuzekf4gv5OZ23IK378PALUfisXtwLRx2ViBRH9DPZ40 g7pjmiqw+jC5Zc4AfEMldE52VSRgt+ArNwlYGnok= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730266AbfKGQ1y (ORCPT ); Thu, 7 Nov 2019 11:27:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:40726 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727606AbfKGQ1x (ORCPT ); Thu, 7 Nov 2019 11:27:53 -0500 Received: from localhost.localdomain (NE2965lan1.rev.em-net.ne.jp [210.141.244.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 33725214D8; Thu, 7 Nov 2019 16:27:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573144073; bh=6V33I/CbC9scqkL+yAKQkI5e5SvV8zhCoIW63U6j6pU=; h=From:To:Cc:Subject:Date:From; b=W99uIl/+aFt07anrqVOKd4U8Cv6kF2DNOiasnEfo+0MjHMgfriPvAPVQmkjHfYUI3 s0XqWE+OLR+w8fRn+Z/4UAhDTOQtmpDd6rkJjVy06bhZKThGckyJ3SJ5W31gvfHIy8 2wWA29qDB3ZVmmxIV+uZJX+hpMlz7lNPWFyrNUxU= From: Masami Hiramatsu To: Arnaldo Carvalho de Melo Cc: Masami Hiramatsu , Ingo Molnar , Steven Rostedt , linux-kernel@vger.kernel.org, Tom Zanussi , Ravi Bangoria , Namhyung Kim Subject: [PATCH v2 0/4] perf/probe: Support multiprobe and immediates Date: Fri, 8 Nov 2019 01:27:48 +0900 Message-Id: <157314406866.4063.16995747442215702109.stgit@devnote2> X-Mailer: git-send-email 2.20.1 User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This is the 2nd version of the multiprobe support on perf probe. This can be applied on top of perf/core. Inlined functions or the lines which have multiple statements can be compiled in multiple addresses. Current perf probe generates different events for each address, but this is not useful for users. Since ftrace multiprobe per event support is on upstream kernel, it is a time to push this series. In this version, I have updated the [1/4] not to add suffix _L* if user doesn't specify the line number for the function or the line number is 0. And also, [4/4] is updated according to [1/4] change. The previous version is here. https://lkml.kernel.org/r/157291299825.19771.5190465639558208592.stgit@devnote2 Thank you, --- Masami Hiramatsu (4): perf probe: Generate event name with line number perf probe: Support multiprobe event perf probe: Support DW_AT_const_value constant value perf probe: Trace a magic number if variable is not found tools/perf/util/probe-event.c | 19 +++++++++- tools/perf/util/probe-event.h | 3 ++ tools/perf/util/probe-file.c | 14 ++++++++ tools/perf/util/probe-file.h | 2 + tools/perf/util/probe-finder.c | 73 ++++++++++++++++++++++++++++++++++++++-- tools/perf/util/probe-finder.h | 1 + 6 files changed, 105 insertions(+), 7 deletions(-) -- Masami Hiramatsu (Linaro)