Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4020204pxk; Tue, 22 Sep 2020 08:26:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw56DR7bZE5vNs3nBRzrCKoMJObVU/6j7tmFcKocPJ1jv7aSv586p8b8nqffEoIkJM8Euwy X-Received: by 2002:a50:e78f:: with SMTP id b15mr4549517edn.104.1600788379966; Tue, 22 Sep 2020 08:26:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600788379; cv=none; d=google.com; s=arc-20160816; b=ewkDK3d/BUIzboJ0/tAH3/svv5KNOa1wNO/SJUa+bmO/YPmiDALFo5X8v/JRonVVTq 43Cls0dFKDMt6hvauGLyMvtP9FPGrOMYHZaSse8fg/qbnBD9n+taMAi6yzBoXHsR//gq AIzn2EQvQsFCKELH3t3dE7BORDQz1EurW60ZstqlJHMnkyZxJaeF7G6TTsUV32WNfod9 TZAkLi6vsRt6OGpGBO3bY6jJoEqJZaheIbqZggXa6JLZlbzGD6EV/NtsJDJg8VA8VrWh iScnaj+fte0AdDQ4RlYiHXT4twmWse3Tw0HtMUPtTMJY4MJYDaihWiaDO3V9x1vmJDcu yZKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=cNCckvzlTdqjwl+oicO/xBiJeN0wO2cZAhGAjIHt9J4=; b=k2fdwN1HU8R9WeBsx3wMnWlOEOrnPtqR2c0ehjAhVBBayPmRcjbc5w5OPmbbvpEYwk qlHQHyg5YLb5hY6q6nJXt2aee0c1kOsoDp1jpP1l/+RHieq68bX3SSTKI4RT32jKyvQq eEx66ezIClMPHn1+HvZMgiTVlP/PGVctvJGonCJtrN9EkI/16hjpqkZfPw1i2E5BYplV Xc4vEFMZ3O8qfscr77nh/dhpknUN2/i5FsQYu2VGU5ACBLRZwVu61xdbdXqOAXOnQFrc 0QMskBPIaTFgK3duxTblzEodvoACcKtVrPu46/Kp6IUNu8eKeRbYKExjgAK753uf2tKv cVXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=n2Ypq+Ff; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f11si10545777edq.528.2020.09.22.08.25.54; Tue, 22 Sep 2020 08:26:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=n2Ypq+Ff; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726674AbgIVPYL (ORCPT + 99 others); Tue, 22 Sep 2020 11:24:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:53290 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726566AbgIVPYL (ORCPT ); Tue, 22 Sep 2020 11:24:11 -0400 Received: from mail-oi1-f173.google.com (mail-oi1-f173.google.com [209.85.167.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 306D523A1E for ; Tue, 22 Sep 2020 15:24:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600788250; bh=e5nNSXIlKC0+0HLOYhCcAxr1si+g6JGN4VtZFVkR9Vk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=n2Ypq+FfMntZF9CFO+lVW9VdkBYAGGOwNR6LVG/autyVLsvwaKEs6aBQhxojm2C2L UcMpQF197/hnT2hq7dXmV47ziO6bL9qn51Np4KjpK2bQa96soLAmg8rmNXiZGhOgWp CW9vVcM1iHdF9sfl7VArZ90sI3zk/sSJKLbDo4cY= Received: by mail-oi1-f173.google.com with SMTP id 185so21422406oie.11 for ; Tue, 22 Sep 2020 08:24:10 -0700 (PDT) X-Gm-Message-State: AOAM5303g2rScdENYu8YaZB8yxJu7iqt2ZQavNVRAJDFeEwWhqqkJxiT Wp2pr4Tn8R+Q4gZ71wUpKlHPNhdmEmNHYBaENg== X-Received: by 2002:aca:fc07:: with SMTP id a7mr2963229oii.106.1600788249510; Tue, 22 Sep 2020 08:24:09 -0700 (PDT) MIME-Version: 1.0 References: <20200911215118.2887710-1-robh@kernel.org> <20200912205317.GG1714160@krava> In-Reply-To: From: Rob Herring Date: Tue, 22 Sep 2020 09:23:58 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 0/10] libperf and arm64 userspace counter access support To: Itaru Kitayama Cc: Alexander Shishkin , Arnaldo Carvalho de Melo , Catalin Marinas , Honnappa Nagarahalli , Ian Rogers , Ingo Molnar , Jiri Olsa , Jonathan Cameron , Mark Rutland , Namhyung Kim , Peter Zijlstra , Raphael Gault , Will Deacon , linux-arm-kernel , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 19, 2020 at 1:22 AM Itaru Kitayama w= rote: > > Rob, > V3 fails to build on ThunderX2: > > $ make > BUILD: Doing 'make -j224' parallel build > > Auto-detecting system features: > ... dwarf: [ on ] > ... dwarf_getlocations: [ on ] > ... glibc: [ on ] > ... gtk2: [ OFF ] > ... libbfd: [ on ] > ... libcap: [ on ] > ... libelf: [ on ] > ... libnuma: [ on ] > ... numa_num_possible_cpus: [ on ] > ... libperl: [ on ] > ... libpython: [ on ] > ... libcrypto: [ on ] > ... libunwind: [ OFF ] > ... libdw-dwarf-unwind: [ on ] > ... zlib: [ on ] > ... lzma: [ on ] > ... get_cpuid: [ OFF ] > ... bpf: [ on ] > ... libaio: [ on ] > ... libzstd: [ on ] > ... disassembler-four-args: [ on ] > > Makefile.config:604: No libunwind found. Please install I believe this is an existing problem with your setup? > libunwind-dev[el] >=3D 1.1 and/or set LIBUNWIND_DIR > Makefile.config:730: GTK2 not found, disables GTK2 support. Please > install gtk2-devel or libgtk2.0-dev > Makefile.config:965: No libbabeltrace found, disables 'perf data' CTF > format support, please install > libbabeltrace-dev[el]/libbabeltrace-ctf-dev > Makefile.config:1009: No openjdk development package found, please > install JDK package, e.g. openjdk-8-jdk, java-1.8.0-openjdk-devel > CC arch/arm64/tests/user-events.o > CC arch/arm64/tests/arch-tests.o > In file included from arch/arm64/tests/arch-tests.c:4: > /home/users/itaru.kitayama/projects/linux/tools/perf/arch/arm64/include/a= rch-tests.h:10:5: > error: redundant redeclaration of =E2=80=98test__arch_unwind_sample=E2=80= =99 > [-Werror=3Dredundant-decls] > int test__arch_unwind_sample(struct perf_sample *sample, > ^~~~~~~~~~~~~~~~~~~~~~~~ > In file included from arch/arm64/tests/arch-tests.c:3: > /home/users/itaru.kitayama/projects/linux/tools/perf/tests/tests.h:134:5: > note: previous declaration of =E2=80=98test__arch_unwind_sample=E2=80=99 = was here > int test__arch_unwind_sample(struct perf_sample *sample, > ^~~~~~~~~~~~~~~~~~~~~~~~ > cc1: all warnings being treated as errors > make[6]: *** [/home/users/itaru.kitayama/projects/linux/tools/build/Makef= ile.build:97: > arch/arm64/tests/arch-tests.o] Error 1 > make[6]: *** Waiting for unfinished jobs.... > In file included from arch/arm64/tests/user-events.c:13: > /home/users/itaru.kitayama/projects/linux/tools/perf/arch/arm64/include/a= rch-tests.h:10:5: > error: redundant redeclaration of =E2=80=98test__arch_unwind_sample=E2=80= =99 > [-Werror=3Dredundant-decls] > int test__arch_unwind_sample(struct perf_sample *sample, > ^~~~~~~~~~~~~~~~~~~~~~~~ > In file included from arch/arm64/tests/user-events.c:12: > /home/users/itaru.kitayama/projects/linux/tools/perf/tests/tests.h:134:5: > note: previous declaration of =E2=80=98test__arch_unwind_sample=E2=80=99 = was here > int test__arch_unwind_sample(struct perf_sample *sample, > ^~~~~~~~~~~~~~~~~~~~~~~~ These are due to the above issue. > arch/arm64/tests/user-events.c: In function =E2=80=98perf_init=E2=80=99: > arch/arm64/tests/user-events.c:106:7: error: too few arguments to > function =E2=80=98perf_evsel__mmap=E2=80=99 > if (!perf_evsel__mmap(evsel)) { I forgot to update this test. Should be 'perf_evsel__mmap(evsel, SZ_4K)' here, but that's going to change to 'perf_evsel__mmap(evsel, 0)' with it changing from bytes to pages (minus 1). Rob