Merge remote-tracking branch 'torvalds/master' into perf/core
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 18 Jul 2022 13:36:11 +0000 (10:36 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 18 Jul 2022 13:36:11 +0000 (10:36 -0300)
To update the perf/core codebase.

Fix conflict by moving arch__post_evsel_config(evsel, attr) to the end
of evsel__config(), after what was added in:

  49c692b7dfc9b6c0 ("perf offcpu: Accept allowed sample types only")

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1  2 
tools/perf/builtin-inject.c
tools/perf/util/evsel.c
tools/perf/util/header.c
tools/perf/util/header.h
tools/perf/util/synthetic-events.c

Simple merge
@@@ -1372,7 -1373,8 +1378,10 @@@ void evsel__config(struct evsel *evsel
        if (evsel__is_dummy_event(evsel))
                evsel__reset_sample_bit(evsel, BRANCH_STACK);
  
+       if (evsel__is_offcpu_event(evsel))
+               evsel->core.attr.sample_type &= OFFCPU_SAMPLE_TYPES;
++
 +      arch__post_evsel_config(evsel, attr);
  }
  
  int evsel__set_filter(struct evsel *evsel, const char *filter)
Simple merge
Simple merge
Simple merge