Received: by 10.192.165.148 with SMTP id m20csp862835imm; Wed, 2 May 2018 09:58:46 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqX8yEMg0e/JwlA1NLLx3Ts91uMU+Wwad4JpE0gNbAdiv1FpU3uyqXq+JpLYj6qrXS5UOol X-Received: by 2002:a17:902:b609:: with SMTP id b9-v6mr20441636pls.29.1525280325946; Wed, 02 May 2018 09:58:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525280325; cv=none; d=google.com; s=arc-20160816; b=sijw/rYlGGqSBUH+usWQM6tLPrmLtJV6aJR7UDsPREx7BXjz7qx11QOeWSiqSsCysj KSTinEm6qOJXXCUN4opiXu14ggeOiu0fCF9Y00gZjckK8wLr/z4ALdpysEWVpj/4O/1V JMPilwqBSZOkGr92byWeXKhZNK/ahbcdMkTslY4j+BbAb9FOAYtsYpOArxQro3BdGxfC 5u81kkkGRQq6wKSBWdyEc2BjavhY2dj1p5Xz/alKqX2WiXdDSY+U/C4VpNgrjAVUF7Nb Ofr4/lvLmVZHK8ijW9d0hQJD6c8BiTb3/4G0+4MReEWEMcMCW2dwiuljijdL0efB1MmT UCpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=fBADZfCnfY0qfVzVQjZ+OsJ50ZD2k72noSQggd3bbZk=; b=aILmnAmAxjTzxUk0sNxlFSs25j7o0c/rXIbgpvAbNWgoyGEcUD7wM4h9OxdYdprKB4 6mfb1yP7O7Ql1kVgLZ0G8buLjGPQEh+OJAOymsukXtwYI3O+o4JYaFcZuU+d4ee/JJdt NZsB0YFVCg5+Hwvxpw2O2paIRHLCaxueRNQFFpt+oiq8PqD6Y6tcnUvoWgc38jhXqU4Z /Kf39RtnPcfmTnGE3y9k81+xN7KjNS9B0fHM1fs9zsR+AWmA2Ez3+PApgIlOvx6Gal0E LLSweu65j+2feC7bPOFxA8p1tUK/toGkwSHMJojCMLcA2wv4ky00ypuouEJWCu8E3qS7 YpTA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q192si4755530pfq.307.2018.05.02.09.58.31; Wed, 02 May 2018 09:58:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751935AbeEBQ5l (ORCPT + 99 others); Wed, 2 May 2018 12:57:41 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:46336 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751344AbeEBQ5k (ORCPT ); Wed, 2 May 2018 12:57:40 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A21D2406C791; Wed, 2 May 2018 16:57:39 +0000 (UTC) Received: from krava (unknown [10.43.17.176]) by smtp.corp.redhat.com (Postfix) with SMTP id 2C32D2166BAD; Wed, 2 May 2018 16:57:38 +0000 (UTC) Date: Wed, 2 May 2018 18:57:37 +0200 From: Jiri Olsa To: Stephane Eranian Cc: LKML , Adrian Hunter , Arnaldo Carvalho de Melo , mingo@elte.hu, Peter Zijlstra Subject: Re: [RFC] perf record: dead code perf_event__synthesize_id_index() Message-ID: <20180502165737.GF11539@krava> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Wed, 02 May 2018 16:57:39 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Wed, 02 May 2018 16:57:39 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jolsa@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 02, 2018 at 04:38:33PM +0000, Stephane Eranian wrote: > Hi, > > It looks like perf_event__synthesize_id_index() is dead code in the current > tip > tree. I don't see any invocation of the function anywhere in perf.I > understand why > you'd want to keep the rest of the code related to PERF_RECORD_ID_INDEX > because some perf.data file may have this user-level record type. But the > synthesize code is not needed anymore, in my opinion. > > Shouldn't we remove this code? looks like there never was any user of it, probably some preparation for follow up that haven't happened yet.. Adrian? jirka