auxtrace.c (0aea30a07ec6b50de0fc5f5b2ec34a68ead86b61) auxtrace.c (024b3b42adc07f6292adcfbae50c6f2db0546b60)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * auxtrace.c: AUX area trace support
4 * Copyright (c) 2013-2015, Intel Corporation.
5 */
6
7#include <inttypes.h>
8#include <sys/types.h>

--- 622 unchanged lines hidden (view full) ---

631
632 if (itr && itr->parse_snapshot_options)
633 return itr->parse_snapshot_options(itr, opts, str);
634
635 pr_err("No AUX area tracing to snapshot\n");
636 return -EINVAL;
637}
638
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * auxtrace.c: AUX area trace support
4 * Copyright (c) 2013-2015, Intel Corporation.
5 */
6
7#include <inttypes.h>
8#include <sys/types.h>

--- 622 unchanged lines hidden (view full) ---

631
632 if (itr && itr->parse_snapshot_options)
633 return itr->parse_snapshot_options(itr, opts, str);
634
635 pr_err("No AUX area tracing to snapshot\n");
636 return -EINVAL;
637}
638
639static int evlist__enable_event_idx(struct evlist *evlist, struct evsel *evsel, int idx)
640{
641 bool per_cpu_mmaps = !perf_cpu_map__empty(evlist->core.user_requested_cpus);
642
643 if (per_cpu_mmaps)
644 return perf_evsel__enable_cpu(&evsel->core, idx);
645
646 return perf_evsel__enable_thread(&evsel->core, idx);
647}
648
639int auxtrace_record__read_finish(struct auxtrace_record *itr, int idx)
640{
641 struct evsel *evsel;
642
643 if (!itr->evlist || !itr->pmu)
644 return -EINVAL;
645
646 evlist__for_each_entry(itr->evlist, evsel) {

--- 2147 unchanged lines hidden ---
649int auxtrace_record__read_finish(struct auxtrace_record *itr, int idx)
650{
651 struct evsel *evsel;
652
653 if (!itr->evlist || !itr->pmu)
654 return -EINVAL;
655
656 evlist__for_each_entry(itr->evlist, evsel) {

--- 2147 unchanged lines hidden ---