Received: by 10.192.165.148 with SMTP id m20csp8202imm; Fri, 4 May 2018 05:57:01 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqcSftoo9K+LihQdYEGz1BWcHjKhCayM8Ld4RRlsyMeEOei04IDIx/FuNiZkMaHE+q4iiQr X-Received: by 2002:a63:79ce:: with SMTP id u197-v6mr22745187pgc.242.1525438621451; Fri, 04 May 2018 05:57:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525438621; cv=none; d=google.com; s=arc-20160816; b=n+Ow4DCX3dGLA+MSrDaHD0/CEQSRxRYHualoMyA+h1FpULozM6EDXCf5gbX5eu5lcF 0o2d+n6Z8JlOZ2jDick8ILYE8GcCJD/Cm+T0pFcTqfUyMu037+tk7mdmrkXtMj4QT/v1 Ds2fAUKlrXnLRwKi2W/GGnqQDv2xTN7Td56jeGkvGBjbmL7hhvvfC0kKTKny/tXLEGZv uIjJDIoXXAy9edaV7IkZ966r/YwTcUsXbTC35b9JMcgxIxyLsU94VE3Fi8AvcMHdg3wu r6abdKrMZZp2Vh16ILyUPd3r4kzx0+ByX1U4Na6UfpKK7ia+jDTu0M+OkX5YEa9+l9F5 rQyg== 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=wip4++JC61esXFkV+c8kBlDygljNNp2JVosnoLiCUJ0=; b=bIqT01c5HIvLQ1lXFd/OJ6NFDFrJhGLJvLv//TzygKDZqKHrFmXhMBRi81nd3JOiAY DS9Sjlq5YtOC5fVaoBqtoiKL9lLrmlos+iIpwrh5QJrQHtUFU4UB5Nel2BuQ68MqlldV YfIp/BgX7C9CYew5Y5g/BR2IMZNkK4aWZIJepg7SaUD2SWZ6FKruY3sLnbOR87yCdoqV em6jjJWyunoWm4TCSuENIJ/rFXIq6s3QH2hxXC/BxSQhkXTQCsXGOZRuuTWLObLgvHxK U8pn1E2gMgDlv2AONXQ4WZ4Fty+kasqR9cN2x1yMXvfJtC5ATXnAeDG+ckSsdFeA5ws2 IYVQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w6-v6si8818775pgo.116.2018.05.04.05.56.40; Fri, 04 May 2018 05:57:01 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751268AbeEDM4b (ORCPT + 99 others); Fri, 4 May 2018 08:56:31 -0400 Received: from eddie.linux-mips.org ([148.251.95.138]:42836 "EHLO cvs.linux-mips.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751001AbeEDM4a (ORCPT ); Fri, 4 May 2018 08:56:30 -0400 Received: from localhost.localdomain ([127.0.0.1]:33986 "EHLO linux-mips.org" rhost-flags-OK-OK-OK-FAIL) by eddie.linux-mips.org with ESMTP id S23991819AbeEDM41r5t49 (ORCPT ); Fri, 4 May 2018 14:56:27 +0200 Received: from h7.dl5rb.org.uk (localhost [127.0.0.1]) by h7.dl5rb.org.uk (8.15.2/8.14.8) with ESMTP id w44Cu9WJ036196; Fri, 4 May 2018 14:56:09 +0200 Received: (from ralf@localhost) by h7.dl5rb.org.uk (8.15.2/8.15.2/Submit) id w44Cu1gb036195; Fri, 4 May 2018 14:56:01 +0200 Date: Fri, 4 May 2018 14:56:01 +0200 From: Ralf Baechle To: Robert Richter Cc: Matt Redfearn , James Hogan , linux-mips@linux-mips.org, Huacai Chen , linux-kernel@vger.kernel.org, Jiaxun Yang , Krzysztof Kozlowski , oprofile-list@lists.sf.net Subject: Re: [RFC PATCH] MIPS: Oprofile: Drop support Message-ID: <20180504125601.GA30595@linux-mips.org> References: <1524574554-7451-1-git-send-email-matt.redfearn@mips.com> <20180424130511.GB28813@saruman> <5e464a40-4e4d-dde4-b5b5-ceb637dc5f38@mips.com> <20180504093002.GC4493@rric.localdomain> <20180504102600.GD4493@rric.localdomain> <294858af-9164-f0c3-62d3-d6b643e89e09@mips.com> <20180504122750.GE4493@rric.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180504122750.GE4493@rric.localdomain> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 04, 2018 at 02:27:51PM +0200, Robert Richter wrote: > On 04.05.18 12:03:12, Matt Redfearn wrote: > > >As said, oprofile version 0.9.x is still available for cpus that do > > >not support perf. What is the breakage? > > > > The breakage I originally set out to fix was the MT support in perf. > > https://www.linux-mips.org/archives/linux-mips/2018-04/msg00259.html > > > > Since the perf code shares so much copied code from oprofile, those same > > issues exist in oprofile and ought to be addressed. But as newer oprofile > > userspace does not use the (MIPS) kernel oprofile code, then we could, > > perhaps, just remove it (as per the RFC). That would break legacy tools > > (0.9.x) though... > > Those support perf: > > (CPU_MIPS32 || CPU_MIPS64 || CPU_R10000 || CPU_SB1 || CPU_CAVIUM_OCTEON || CPU_XLP || CPU_LOONGSON3) > > Here is the total list of CPU_*: > > $ git grep -h config.CPU_ arch/mips/ | sort -u | wc -l > 79 > > The comparisation might not be accurate, but at least gives a hint > that there are many cpus not supporting perf. You would drop profiling > support at al to them. The grep results are a bit missleading. We have many symbols such as CPU_MIPS32_R1 which describe a particular architecture revision supported by a CPU. Others CPU_* symbols are describing particular features or options so in reality there are far fewer CPU to be supported. Also many of the older processors or embedded cores don't have performance counters at all; for yet other cores presence, number and a few other details can be configured when synthesizing the RTL so relying on the CONFIG_* alone won't help. > If it is too hard to also fix the oprofile code (code duplication > seems the main issue here), then it would be also ok to blacklist > newer cpus to enable oprofile kernel code (where it is broken). Ralf