summaryrefslogtreecommitdiff
path: root/tools/lib/perf/Documentation/libperf-sampling.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lib/perf/Documentation/libperf-sampling.txt')
-rw-r--r--tools/lib/perf/Documentation/libperf-sampling.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/perf/Documentation/libperf-sampling.txt b/tools/lib/perf/Documentation/libperf-sampling.txt
index d6ca24f6ef78..2378980fab8a 100644
--- a/tools/lib/perf/Documentation/libperf-sampling.txt
+++ b/tools/lib/perf/Documentation/libperf-sampling.txt
@@ -97,7 +97,7 @@ In this case we will monitor all the available CPUs:
[source,c]
--
- 42 cpus = perf_cpu_map__new(NULL);
+ 42 cpus = perf_cpu_map__new_online_cpus();
43 if (!cpus) {
44 fprintf(stderr, "failed to create cpus\n");
45 return -1;