From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756367AbbCCN7e (ORCPT ); Tue, 3 Mar 2015 08:59:34 -0500 Received: from mail.kernel.org ([198.145.29.136]:47222 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751273AbbCCN7d (ORCPT ); Tue, 3 Mar 2015 08:59:33 -0500 Date: Tue, 3 Mar 2015 10:59:30 -0300 From: Arnaldo Carvalho de Melo To: Namhyung Kim Cc: Ingo Molnar , Peter Zijlstra , Jiri Olsa , LKML , Frederic Weisbecker , Adrian Hunter , Stephane Eranian , Andi Kleen , David Ahern Subject: Re: [PATCH 10/38] perf tools: Pass session arg to perf_event__preprocess_sample() Message-ID: <20150303135930.GG5187@kernel.org> References: <1425352070-1115-1-git-send-email-namhyung@kernel.org> <1425352070-1115-11-git-send-email-namhyung@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1425352070-1115-11-git-send-email-namhyung@kernel.org> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Mar 03, 2015 at 12:07:22PM +0900, Namhyung Kim escreveu: > The perf_event__preprocess_sample() translates a given ip into a > matching symbol. To do that, it first finds a corresponding thread > and map in the current thread tree. But for indexed data files, it > needs to find a thread (and map) with slightly different APIs using > timestamp. So it needs a way to know whether this session deals with > an indexed data file or not. I need to look into this, but in general, I'm trying to _remove_ accesses to perf_session :-) - Arnaldo