Received: by 10.192.165.148 with SMTP id m20csp844099imm; Wed, 2 May 2018 09:39:22 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoe5Os3P147Q7HkNM9QauvQ7FtdVwMD5wIrxdTXt6YLIKdlLe1bTKqE82UDVuoHY5s+HSZ7 X-Received: by 2002:a17:902:322:: with SMTP id 31-v6mr20561438pld.122.1525279162126; Wed, 02 May 2018 09:39:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525279162; cv=none; d=google.com; s=arc-20160816; b=Otf81UOTd7NUaMLYOhgO0xhtuumUnkrQvDNo02N8cvuAeUPpfQ48i6NBYqlGrOyhkB COBMpPzkOWAmshG7uKRrDLp0jdodEoRvTUV+eGTRs6dhJQ7mEFRQpgVCm497GG9AusR+ VKwm+rlxUUk9tcaa/3YAX0LvYMUYuHBDz9NdPMC95ycmIJisseZ2a+JaIBeaoXl4JVlW k302x6bzBUPMMN7v5Lb3bmshPARbNbVr2O0zq+1dQnGP00T1dOo+NJWUcDqNDPOPx4BG B4Hx6hSdUu6/8C/XP8O4Rb1ymTckJ5FI9VN9FQmvafMSs1bFitESFqFgkCY7WJWF7sVu Drrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :mime-version:dkim-signature:arc-authentication-results; bh=9+jLVAShQTS8MAhYS99V61ftqwU88Kuew7McMcNxxwI=; b=uiwmrgNi20kL3CFa2OJF/wauRpSfERg4hQEUDuiopyY+J9Gr4SyfXsJEfUvl9Kg4G7 5MkHsKpmj/C4ZCHoRrmPaF4e/EfH/KgQqd1EwzRoHrPIgP8LoF5iQR8vMIsLfAdWRTwn fqLZHrIbkzHKtBjwj3+Wp6+8oxu9aLmEI20kyDcc6JNVrleJLG1QP4dUL48JJ9hyfOMp 3nkgL+LAIdBNzqiwh1XxxbDKYl/bdIyzscx2nT6kdzokiR1Pgy3GjwqH7CeT8tURxsxK 05soillLa1t3h9d8RK2sOk1cPiwXE9tILHMUZwdJKmVq7UzvMCcYvowg0z+gR5theNhe YG/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=W3GqNePk; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s24si576251pfm.257.2018.05.02.09.39.08; Wed, 02 May 2018 09:39:22 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=W3GqNePk; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751747AbeEBQit (ORCPT + 99 others); Wed, 2 May 2018 12:38:49 -0400 Received: from mail-wr0-f178.google.com ([209.85.128.178]:33543 "EHLO mail-wr0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751174AbeEBQiq (ORCPT ); Wed, 2 May 2018 12:38:46 -0400 Received: by mail-wr0-f178.google.com with SMTP id o4-v6so14712036wrm.0 for ; Wed, 02 May 2018 09:38:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=9+jLVAShQTS8MAhYS99V61ftqwU88Kuew7McMcNxxwI=; b=W3GqNePke29W1GO7KjQjV5W2qQ28LDpZnHVWh6MRmlX0j+kvOCPGeaoutA78Lybd3c 4oF7UGfG1f5GeYXrMueC7/hpggiIrW0DjZO+QPx7vHpanMBo+szjg7QfI7qVYqVGw4N7 /ad+YOICzcLk4wNzBpA/+A4n6tRWKI6G7NDl2nkMlbqxMzchjaIeML4IQpOE7IVYezsQ jVgHbDC4UFjxGXtM2zyofPoL3jgrRECbPB9Q+pT/G15x3WCtYtZuQUtyppZCkpzBKfc/ JEIGLcKts2le+6WdPf2gAMHji3mElZ7/UYWUcxD9xwmI5eQALlNLJPqrk01PMzZ5wOO8 UNJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=9+jLVAShQTS8MAhYS99V61ftqwU88Kuew7McMcNxxwI=; b=iTsRjikDgO1O5lLm6egcvPNmlUIL/6sc+8M48ADYnOk6ztTRKWiYYtvmUsXuopfbJT qVHPvFfiUpUWBgmEP4f8b+GCbIxC0xgcHZ+GzSabopsbAxqnhNspGmrZHlCgzmvKovTH yp+FdirUsQVJX5PGmIEtni+LU1g8Y+jsrLIl5rea1bbRUdk6on0FrR06G516ZjTj/9Po 1Esmt8yWyXiJ6YJrotVEr/+AbW0oa0hmpKGtQqCk1gRdwPJqNJ6SwmqcxMIFXfdIqj+j Jcso8sVtLSg/I3CizEWWdQxm2Ck61+LZAodej64hY5Zg8WAZmHyRqG4W6CN+QRH3K1dD 4eKw== X-Gm-Message-State: ALQs6tDYxG1Q93ajl/4aPsO5ooYrLpYOsSog5T+30QwYjU9/oBjGwlll 5sDAnjLdIZSUi4UWGSM3QRVkz1XzFNj6INSmSK9ZeV6I X-Received: by 2002:adf:c412:: with SMTP id v18-v6mr16503382wrf.20.1525279125116; Wed, 02 May 2018 09:38:45 -0700 (PDT) MIME-Version: 1.0 From: Stephane Eranian Date: Wed, 02 May 2018 16:38:33 +0000 Message-ID: Subject: [RFC] perf record: dead code perf_event__synthesize_id_index() To: LKML Cc: Adrian Hunter , Arnaldo Carvalho de Melo , Jiri Olsa , mingo@elte.hu, Peter Zijlstra Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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?