Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1204671ybl; Fri, 6 Dec 2019 13:07:12 -0800 (PST) X-Google-Smtp-Source: APXvYqxhcbe79Nc+SnCI2xqsDGTxWlUtRRTSEBngxYApumtucJZmu5P1bb7fbwjbS5aGG4lr/EKY X-Received: by 2002:aca:d544:: with SMTP id m65mr14509297oig.177.1575666432499; Fri, 06 Dec 2019 13:07:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575666432; cv=none; d=google.com; s=arc-20160816; b=pncy+HrMy3C7Q7eZKBH/A5bGZvakUjupoc/lH3t6AXmnkuzMA0i8yHPeBkezYMoULl m/lhFFl4s/a5zO26ZhEm1rhxz3Z/2DyHVT55T6hOgyPOWiDdNxleOhJMrSxsqi2HplwT K4VDBuiHz5EDbJw6Xf6h1YyJbNDxLuNbvAJK8IMYy3wraDou3fsE85FTQhOvcknV/o0t 84Kuuwr+bqpKGKvceooyKwxzDj4KpX+p2gdzao+YV/fAWzZ+MKqB8/zo+XLfWGD6962V UhgihetYI8YELV8VO/U3Fg6fqs29IaOffmoBeaDC5YnMkq8GOM+yXcEDcQCyBaQCj+h6 ZNSg== 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:mime-version :message-id:date:subject:cc:to:from; bh=Tlr8BPyxqI2c3Xj/mAbZ9C7biEQ0hOalLGTUKU+x/MA=; b=ExNx/v+bWlSQSQJ1P0UGRppkC/EoyIFTf5jtCS8e5P+xU/DAcZzQ61iHrFWUrci7jX ohZcZ7vToOlS8+OB3Jd9l0HPaLRgZPjFnaX4BXgycRbzKwxaFf7xUjDMEpY27EvmnPTC smZbSE/a/T+Svu5Wj/CzQUpGnxTuJUZ945rqfKZY0BoPw7zcjvNQzOQhs+mjhhdpn75F 7DHW8PuYG/97w/UPiEqO6j7+KxhwWYToGNKlN/EPfvh7LsIVKqO3LH+ypVtBMRtWpJvq vKks66vRJzQRDMMFOz9CL3GwoxaQRu9Z7sIpofkNt/5tbkGEvieYcmpLAkEosCHUZD+s oZNw== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u14si8009281oiv.185.2019.12.06.13.06.59; Fri, 06 Dec 2019 13:07:12 -0800 (PST) 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726388AbfLFVGW convert rfc822-to-8bit (ORCPT + 99 others); Fri, 6 Dec 2019 16:06:22 -0500 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:35822 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726325AbfLFVGW (ORCPT ); Fri, 6 Dec 2019 16:06:22 -0500 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-357-vu14INaPMZq1fJITPI9wwA-1; Fri, 06 Dec 2019 16:06:17 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 26B63107ACC7; Fri, 6 Dec 2019 21:06:16 +0000 (UTC) Received: from krava.redhat.com (ovpn-204-89.brq.redhat.com [10.40.204.89]) by smtp.corp.redhat.com (Postfix) with ESMTP id A34A6600C6; Fri, 6 Dec 2019 21:06:13 +0000 (UTC) From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Michael Petlan Subject: [PATCHv2 0/2] perf/libperf move Date: Fri, 6 Dec 2019 22:06:10 +0100 Message-Id: <20191206210612.8676-1-jolsa@kernel.org> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-MC-Unique: vu14INaPMZq1fJITPI9wwA-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org hi, this patchset moves libperf under tools/lib. It's now possible to build and install it with: $ cd tools/lib/perf $ make prefix=/tmp/libperf install INSTALL libperf.a INSTALL libperf.so INSTALL libperf.so.0 INSTALL libperf.so.0.0.1 INSTALL headers INSTALL libperf.pc INSTALL man INSTALL html INSTALL examples $ find /tmp/libperf/ -not -type d /tmp/libperf/share/doc/libperf/examples/sampling.c /tmp/libperf/share/doc/libperf/examples/counting.c /tmp/libperf/share/doc/libperf/html/libperf-sampling.html /tmp/libperf/share/doc/libperf/html/libperf-counting.html /tmp/libperf/share/doc/libperf/html/libperf.html /tmp/libperf/share/man/man7/libperf-sampling.7 /tmp/libperf/share/man/man7/libperf-counting.7 /tmp/libperf/share/man/man3/libperf.3 /tmp/libperf/include/perf/mmap.h /tmp/libperf/include/perf/event.h /tmp/libperf/include/perf/evsel.h /tmp/libperf/include/perf/evlist.h /tmp/libperf/include/perf/threadmap.h /tmp/libperf/include/perf/cpumap.h /tmp/libperf/include/perf/core.h /tmp/libperf/lib64/pkgconfig/libperf.pc /tmp/libperf/lib64/libperf.so.0.0.1 /tmp/libperf/lib64/libperf.so.0 /tmp/libperf/lib64/libperf.so /tmp/libperf/lib64/libperf.a There are few obvious fixes added like include path changes. Plus adding Documentation changes to have the man page base for more additions. I switched man pages to asciidoc and added 3 man pages: libperf.3 - overall description libperf-counting.7 - counting basics explained on simple example libperf-sampling.7 - sampling basics explained on simple example The plan is to add more man pages to cover the basic API. I put the html pages in here for you to check: http://people.redhat.com/~jolsa/libperf/libperf.html http://people.redhat.com/~jolsa/libperf/libperf-counting.html http://people.redhat.com/~jolsa/libperf/libperf-sampling.html It's also available in here: git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git perf/lib NOTE we are still able to change any libperf ABI, nothing is committed by this move ;-) NOTE 'make perf-targz-src-pkg' works nicely with this change, but is currently failing because of recent bpf changes, I have a fix for that and will send it shortly v2 changes: - squash 'fixes' patch with the move, so we don't break bisect thanks, jirka --- Jiri Olsa (2): libperf: Move libperf under tools/lib/perf libperf: Add man pages tools/{perf/lib => lib/perf}/Build | 0 tools/lib/perf/Documentation/Makefile | 156 +++++++++++++ tools/lib/perf/Documentation/asciidoc.conf | 120 ++++++++++ tools/lib/perf/Documentation/examples/sampling.c | 119 ++++++++++ tools/lib/perf/Documentation/libperf-counting.txt | 211 ++++++++++++++++++ tools/lib/perf/Documentation/libperf-sampling.txt | 243 ++++++++++++++++++++ tools/lib/perf/Documentation/libperf.txt | 246 +++++++++++++++++++++ tools/lib/perf/Documentation/manpage-1.72.xsl | 14 ++ tools/lib/perf/Documentation/manpage-base.xsl | 35 +++ .../perf/Documentation/manpage-bold-literal.xsl | 17 ++ tools/lib/perf/Documentation/manpage-normal.xsl | 13 ++ .../lib/perf/Documentation/manpage-suppress-sp.xsl | 21 ++ tools/{perf/lib => lib/perf}/Makefile | 7 +- tools/{perf/lib => lib/perf}/core.c | 0 tools/{perf/lib => lib/perf}/cpumap.c | 0 tools/{perf/lib => lib/perf}/evlist.c | 0 tools/{perf/lib => lib/perf}/evsel.c | 0 .../lib => lib/perf}/include/internal/cpumap.h | 0 .../lib => lib/perf}/include/internal/evlist.h | 0 .../lib => lib/perf}/include/internal/evsel.h | 0 .../{perf/lib => lib/perf}/include/internal/lib.h | 0 .../{perf/lib => lib/perf}/include/internal/mmap.h | 0 .../lib => lib/perf}/include/internal/tests.h | 0 .../lib => lib/perf}/include/internal/threadmap.h | 0 .../lib => lib/perf}/include/internal/xyarray.h | 0 tools/{perf/lib => lib/perf}/include/perf/core.h | 0 tools/{perf/lib => lib/perf}/include/perf/cpumap.h | 0 tools/{perf/lib => lib/perf}/include/perf/event.h | 0 tools/{perf/lib => lib/perf}/include/perf/evlist.h | 0 tools/{perf/lib => lib/perf}/include/perf/evsel.h | 0 tools/{perf/lib => lib/perf}/include/perf/mmap.h | 0 .../lib => lib/perf}/include/perf/threadmap.h | 0 tools/{perf/lib => lib/perf}/internal.h | 0 tools/{perf/lib => lib/perf}/lib.c | 0 tools/{perf/lib => lib/perf}/libperf.map | 0 tools/{perf/lib => lib/perf}/libperf.pc.template | 0 tools/{perf/lib => lib/perf}/mmap.c | 0 tools/{perf/lib => lib/perf}/tests/Makefile | 2 +- tools/{perf/lib => lib/perf}/tests/test-cpumap.c | 0 tools/{perf/lib => lib/perf}/tests/test-evlist.c | 0 tools/{perf/lib => lib/perf}/tests/test-evsel.c | 0 .../{perf/lib => lib/perf}/tests/test-threadmap.c | 0 tools/{perf/lib => lib/perf}/threadmap.c | 0 tools/{perf/lib => lib/perf}/xyarray.c | 0 tools/perf/MANIFEST | 1 + tools/perf/Makefile.config | 2 +- tools/perf/Makefile.perf | 2 +- tools/perf/lib/Documentation/Makefile | 7 - tools/perf/lib/Documentation/man/libperf.rst | 100 --------- tools/perf/lib/Documentation/tutorial/tutorial.rst | 123 ----------- 50 files changed, 1204 insertions(+), 235 deletions(-) rename tools/{perf/lib => lib/perf}/Build (100%) create mode 100644 tools/lib/perf/Documentation/Makefile create mode 100644 tools/lib/perf/Documentation/asciidoc.conf create mode 100644 tools/lib/perf/Documentation/examples/sampling.c create mode 100644 tools/lib/perf/Documentation/libperf-counting.txt create mode 100644 tools/lib/perf/Documentation/libperf-sampling.txt create mode 100644 tools/lib/perf/Documentation/libperf.txt create mode 100644 tools/lib/perf/Documentation/manpage-1.72.xsl create mode 100644 tools/lib/perf/Documentation/manpage-base.xsl create mode 100644 tools/lib/perf/Documentation/manpage-bold-literal.xsl create mode 100644 tools/lib/perf/Documentation/manpage-normal.xsl create mode 100644 tools/lib/perf/Documentation/manpage-suppress-sp.xsl rename tools/{perf/lib => lib/perf}/Makefile (96%) rename tools/{perf/lib => lib/perf}/core.c (100%) rename tools/{perf/lib => lib/perf}/cpumap.c (100%) rename tools/{perf/lib => lib/perf}/evlist.c (100%) rename tools/{perf/lib => lib/perf}/evsel.c (100%) rename tools/{perf/lib => lib/perf}/include/internal/cpumap.h (100%) rename tools/{perf/lib => lib/perf}/include/internal/evlist.h (100%) rename tools/{perf/lib => lib/perf}/include/internal/evsel.h (100%) rename tools/{perf/lib => lib/perf}/include/internal/lib.h (100%) rename tools/{perf/lib => lib/perf}/include/internal/mmap.h (100%) rename tools/{perf/lib => lib/perf}/include/internal/tests.h (100%) rename tools/{perf/lib => lib/perf}/include/internal/threadmap.h (100%) rename tools/{perf/lib => lib/perf}/include/internal/xyarray.h (100%) rename tools/{perf/lib => lib/perf}/include/perf/core.h (100%) rename tools/{perf/lib => lib/perf}/include/perf/cpumap.h (100%) rename tools/{perf/lib => lib/perf}/include/perf/event.h (100%) rename tools/{perf/lib => lib/perf}/include/perf/evlist.h (100%) rename tools/{perf/lib => lib/perf}/include/perf/evsel.h (100%) rename tools/{perf/lib => lib/perf}/include/perf/mmap.h (100%) rename tools/{perf/lib => lib/perf}/include/perf/threadmap.h (100%) rename tools/{perf/lib => lib/perf}/internal.h (100%) rename tools/{perf/lib => lib/perf}/lib.c (100%) rename tools/{perf/lib => lib/perf}/libperf.map (100%) rename tools/{perf/lib => lib/perf}/libperf.pc.template (100%) rename tools/{perf/lib => lib/perf}/mmap.c (100%) rename tools/{perf/lib => lib/perf}/tests/Makefile (93%) rename tools/{perf/lib => lib/perf}/tests/test-cpumap.c (100%) rename tools/{perf/lib => lib/perf}/tests/test-evlist.c (100%) rename tools/{perf/lib => lib/perf}/tests/test-evsel.c (100%) rename tools/{perf/lib => lib/perf}/tests/test-threadmap.c (100%) rename tools/{perf/lib => lib/perf}/threadmap.c (100%) rename tools/{perf/lib => lib/perf}/xyarray.c (100%) delete mode 100644 tools/perf/lib/Documentation/Makefile delete mode 100644 tools/perf/lib/Documentation/man/libperf.rst delete mode 100644 tools/perf/lib/Documentation/tutorial/tutorial.rst