Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3592398ybb; Mon, 23 Mar 2020 04:06:36 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvyP8INXuYXk+puwWxCGQnGXaBlmW3ENxaiEG2WLDGZJWObAFBsaYFQTjKW9tHRW7JqMeSQ X-Received: by 2002:a9d:228:: with SMTP id 37mr18299241otb.52.1584961595910; Mon, 23 Mar 2020 04:06:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584961595; cv=none; d=google.com; s=arc-20160816; b=P0DOc6nZ+OXFVmVsZs1DcZ4nEo7Ak+onc/28hEeo6uFI+EGFtmt1/O6o7Y1vctugaq /eoc24qSra4AAFG+TytQYAo0mHl6+iPKZa7D3faFNZg4VxeifNr+1NDqWdDdFWJlB+6N +XeHdZx11G5ic7HKtP6reY/U0+oCzbAOj6kuGPPl+Q37tjJu23MhYAL9B3RN7oeJVt/1 BZ9Ww9KkH/GKk3h14jdcpCpk7f4M+MuYzq6qa8g4EmEpMWJDhrtL6ziBP4voII+r/zGr Rn56BnsARw6Pjd44N96yYyHHbrNX7FZm02/Kogr58eovDHZ1wWJUTaDW19VfAWduUC98 owaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=00MKPbXZ63cfOilQO8B9I2vlOri+Kk2uF23onL/zrT4=; b=WQT9ffGXfbYAq3xX+nmdwTd03mDSIuhGO0NM8RrCQKMClafs/y4zjh3jioWddN6syG YjAwz+4nZkEOELXVjX7OIQ+cK86038wxUWCgfGU3WeCMxyp5bpUD8xiJ2vLnfbANsqcK h9vFrqCm7Sm/RzUFhBxg4ChOUHiGD65SPoJNQGcQnFjwds+HlHScJMuDEMdY02VtJa2D bpHQlrnfvaDz9xbztUWdh/tLizayt1qt99u2M2jVtsK9knxnkmmugvoYDZBgG4y+BRYs DaIzWKVAq2+bz2VVLMBgf6dmohAi+If38UkMyjsufdVMKIbkY2gFafs2EpQfis4NZrVJ FeRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Q81ARYit; 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=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 i132si7201073oih.249.2020.03.23.04.06.22; Mon, 23 Mar 2020 04:06:35 -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=@redhat.com header.s=mimecast20190719 header.b=Q81ARYit; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728021AbgCWLF0 (ORCPT + 99 others); Mon, 23 Mar 2020 07:05:26 -0400 Received: from us-smtp-delivery-74.mimecast.com ([63.128.21.74]:40949 "EHLO us-smtp-delivery-74.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727987AbgCWLF0 (ORCPT ); Mon, 23 Mar 2020 07:05:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1584961525; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=00MKPbXZ63cfOilQO8B9I2vlOri+Kk2uF23onL/zrT4=; b=Q81ARYitEhExoJZrAJuvIYYP09AUG2QEMm8j6e3OGpPDUvVIRVjelMvP3xKmZzBevGxK8f Smc+HspILiPbdSwo4vAW6Nv0q+jHGdkbqepqzObwocA4Rko/qrU9N0ej1ARPPkZNLJQwsY PJkqEdpnaPMJJZigXdygq1xN2FN0TnQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-214-lAwfkKudMR29QrahG7uVmA-1; Mon, 23 Mar 2020 07:05:21 -0400 X-MC-Unique: lAwfkKudMR29QrahG7uVmA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EC61F1137840; Mon, 23 Mar 2020 11:05:19 +0000 (UTC) Received: from krava (unknown [10.40.192.119]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B845119C70; Mon, 23 Mar 2020 11:05:17 +0000 (UTC) Date: Mon, 23 Mar 2020 12:05:14 +0100 From: Jiri Olsa To: Jin Yao Cc: acme@kernel.org, jolsa@kernel.org, peterz@infradead.org, mingo@redhat.com, alexander.shishkin@linux.intel.com, Linux-kernel@vger.kernel.org, ak@linux.intel.com, kan.liang@intel.com, yao.jin@intel.com Subject: Re: [PATCH v2 00/14] perf: Stream comparison Message-ID: <20200323110514.GG1534489@krava> References: <20200313071118.11983-1-yao.jin@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200313071118.11983-1-yao.jin@linux.intel.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 13, 2020 at 03:11:04PM +0800, Jin Yao wrote: > Sometimes, a small change in a hot function reducing the cycles of > this function, but the overall workload doesn't get faster. It is > interesting where the cycles are moved to. I'm getting compilation fail: BUILD: Doing 'make -j1' parallel build CC util/srclist.o util/srclist.c: In function =E2=80=98srclist__node_new=E2=80=99: util/srclist.c:388:35: error: =E2=80=98%s=E2=80=99 directive output may = be truncated writing up to 4095 bytes into a region of size 4091 [-Werror= =3Dformat-truncation=3D] 388 | snprintf(cmd, sizeof(cmd), "diff %s %s", | ^~ ...... 456 | ret =3D init_src_info(b_path, a_path, rel_path, &node->info); | ~~~~~~ =20 In file included from /usr/include/stdio.h:867, from util/srclist.c:8: /usr/include/bits/stdio2.h:67:10: note: =E2=80=98__builtin___snprintf_ch= k=E2=80=99 output between 7 and 8197 bytes into a destination of size 409= 6 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL= - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors mv: cannot stat 'util/.srclist.o.tmp': No such file or directory make[4]: *** [/home/jolsa/kernel/linux-perf/tools/build/Makefile.build:9= 7: util/srclist.o] Error 1 make[3]: *** [/home/jolsa/kernel/linux-perf/tools/build/Makefile.build:1= 39: util] Error 2 make[2]: *** [Makefile.perf:617: perf-in.o] Error 2 make[1]: *** [Makefile.perf:225: sub-make] Error 2 make: *** [Makefile:70: all] Error 2 [jolsa@krava ~]$ gcc --version gcc (GCC) 9.3.1 20200317 (Red Hat 9.3.1-1) jirka