libperf cpumap: Replace usage of perf_cpu_map__new(NULL) with perf_cpu_map__new_online_cpus()Passing NULL to perf_cpu_map__new() performsperf_cpu_map__new_online_cpus(), just directly callperf_cp
libperf cpumap: Replace usage of perf_cpu_map__new(NULL) with perf_cpu_map__new_online_cpus()Passing NULL to perf_cpu_map__new() performsperf_cpu_map__new_online_cpus(), just directly callperf_cpu_map__new_online_cpus() to be more intention revealing.Reviewed-by: James Clark <james.clark@arm.com>Signed-off-by: Ian Rogers <irogers@google.com>Cc: Adrian Hunter <adrian.hunter@intel.com>Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>Cc: Alexandre Ghiti <alexghiti@rivosinc.com>Cc: Andrew Jones <ajones@ventanamicro.com>Cc: André Almeida <andrealmeid@igalia.com>Cc: Athira Jajeev <atrajeev@linux.vnet.ibm.com>Cc: Atish Patra <atishp@rivosinc.com>Cc: Changbin Du <changbin.du@huawei.com>Cc: Darren Hart <dvhart@infradead.org>Cc: Davidlohr Bueso <dave@stgolabs.net>Cc: Huacai Chen <chenhuacai@kernel.org>Cc: Ingo Molnar <mingo@redhat.com>Cc: Jiri Olsa <jolsa@kernel.org>Cc: John Garry <john.g.garry@oracle.com>Cc: K Prateek Nayak <kprateek.nayak@amd.com>Cc: Kajol Jain <kjain@linux.ibm.com>Cc: Kan Liang <kan.liang@linux.intel.com>Cc: Leo Yan <leo.yan@linaro.org>Cc: Mark Rutland <mark.rutland@arm.com>Cc: Mike Leach <mike.leach@linaro.org>Cc: Namhyung Kim <namhyung@kernel.org>Cc: Nick Desaulniers <ndesaulniers@google.com>Cc: Paolo Bonzini <pbonzini@redhat.com>Cc: Paran Lee <p4ranlee@gmail.com>Cc: Peter Zijlstra <peterz@infradead.org>Cc: Ravi Bangoria <ravi.bangoria@amd.com>Cc: Sandipan Das <sandipan.das@amd.com>Cc: Sean Christopherson <seanjc@google.com>Cc: Steinar H. Gunderson <sesse@google.com>Cc: Suzuki Poulouse <suzuki.poulose@arm.com>Cc: Thomas Gleixner <tglx@linutronix.de>Cc: Will Deacon <will@kernel.org>Cc: Yang Jihong <yangjihong1@huawei.com>Cc: Yang Li <yang.lee@linux.alibaba.com>Cc: Yanteng Si <siyanteng@loongson.cn>Cc: bpf@vger.kernel.orgCc: coresight@lists.linaro.orgCc: linux-arm-kernel@lists.infradead.orgLink: https://lore.kernel.org/r/20231129060211.1890454-5-irogers@google.comSigned-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
show more ...
libperf: Add counting exampleCurrent libperf man pages mention file counting.c "coming with libperf package",however, the file is missing. Add the file then.Fixes: 81de3bf37a8b ("libperf: Add ma
libperf: Add counting exampleCurrent libperf man pages mention file counting.c "coming with libperf package",however, the file is missing. Add the file then.Fixes: 81de3bf37a8b ("libperf: Add man pages")Signed-off-by: Michael Petlan <mpetlan@redhat.com>Acked-by: Jiri Olsa <jolsa@redhat.com>Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>Cc: Namhyung Kim <namhyung@kernel.org>Cc: Peter Zijlstra <peterz@infradead.org>LPU-Reference: 20200227194424.28210-1-mpetlan@redhat.comSigned-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
libperf: Add man pagesChange the man page generation to asciidoc, because it's easier to useand has been more commonly used in related projects. Remove the currentrst pages.Add 3 man pages to h
libperf: Add man pagesChange the man page generation to asciidoc, because it's easier to useand has been more commonly used in related projects. Remove the currentrst pages.Add 3 man pages to have a base for more additions: libperf.3 - overall description libperf-counting.7 - counting basics explained on simple example libperf-sampling.7 - sampling basics explained on simple exampleThe plan is to add more man pages to cover the basic API.The build generates html and man pages: $ cd tools/lib/perf/Documentation $ make ASCIIDOC libperf.xml XMLTO libperf.3 ASCIIDOC libperf-counting.xml XMLTO libperf-counting.7 ASCIIDOC libperf-sampling.xml XMLTO libperf-sampling.7 ASCIIDOC libperf.html ASCIIDOC libperf-counting.html ASCIIDOC libperf-sampling.htmlAdd the following install targets: install-man - man pages install-html - html version of man pages install-examples - examples mentioned in the man pagesSigned-off-by: Jiri Olsa <jolsa@kernel.org>Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>Cc: Michael Petlan <mpetlan@redhat.com>Cc: Namhyung Kim <namhyung@kernel.org>Cc: Peter Zijlstra <peterz@infradead.org>Link: http://lore.kernel.org/lkml/20191206210612.8676-3-jolsa@kernel.orgSigned-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>