From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Subject: Re: newbie question: tracing userspace call/return sequences Date: Sat, 7 Jan 2017 11:08:36 -0800 Message-ID: <20170107190835.GA26852@two.firstfloor.org> References: <87zij4nhvk.fsf@firstfloor.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from one.firstfloor.org ([193.170.194.197]:55363 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750978AbdAGTIj (ORCPT ); Sat, 7 Jan 2017 14:08:39 -0500 Content-Disposition: inline In-Reply-To: Sender: linux-perf-users-owner@vger.kernel.org List-ID: To: Namhyung Kim Cc: Christian Convey , Andi Kleen , linux-perf-users > You can use uftrace for function tracing. It doesn't have a hardware dependency > but you need to rebuild your program with instrumentation enabled (like -pg > or -finstrument-functions in gcc). > > https://github.com/namhyung/uftrace I have a similar tool here. http://github.com/andikleen/ftracer But it's really far inferior to hardware tracing. Use the right tool for the job. -Andi