mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull perf fixes from Ingo Molnar: "Two hw-enablement patches, two race fixes, three fixes for regressions of semantics, plus a number of tooling fixes" * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: perf/x86/intel: Add proper condition to run sched_task callbacks perf/core: Fix locking for children siblings group read perf/core: Fix scheduling regression of pinned groups perf/x86/intel: Fix debug_store reset field for freq events perf/x86/intel: Add Goldmont Plus CPU PMU support perf/x86/intel: Enable C-state residency events for Apollo Lake perf symbols: Accept zero as the kernel base address Revert "perf/core: Drop kernel samples even though :u is specified" perf annotate: Fix broken arrow at row 0 connecting jmp instruction to its target perf evsel: State in the default event name if attr.exclude_kernel is set perf evsel: Fix attr.exclude_kernel setting for default cycles:p
This commit is contained in:
commit
bbcdea658f
9 changed files with 221 additions and 42 deletions
|
|
@ -704,7 +704,7 @@ static void __ui_browser__line_arrow_down(struct ui_browser *browser,
|
|||
ui_browser__gotorc(browser, row, column + 1);
|
||||
SLsmg_draw_hline(2);
|
||||
|
||||
if (row++ == 0)
|
||||
if (++row == 0)
|
||||
goto out;
|
||||
} else
|
||||
row = 0;
|
||||
|
|
|
|||
|
|
@ -273,7 +273,7 @@ struct perf_evsel *perf_evsel__new_cycles(void)
|
|||
struct perf_event_attr attr = {
|
||||
.type = PERF_TYPE_HARDWARE,
|
||||
.config = PERF_COUNT_HW_CPU_CYCLES,
|
||||
.exclude_kernel = 1,
|
||||
.exclude_kernel = geteuid() != 0,
|
||||
};
|
||||
struct perf_evsel *evsel;
|
||||
|
||||
|
|
@ -298,8 +298,10 @@ struct perf_evsel *perf_evsel__new_cycles(void)
|
|||
goto out;
|
||||
|
||||
/* use asprintf() because free(evsel) assumes name is allocated */
|
||||
if (asprintf(&evsel->name, "cycles%.*s",
|
||||
attr.precise_ip ? attr.precise_ip + 1 : 0, ":ppp") < 0)
|
||||
if (asprintf(&evsel->name, "cycles%s%s%.*s",
|
||||
(attr.precise_ip || attr.exclude_kernel) ? ":" : "",
|
||||
attr.exclude_kernel ? "u" : "",
|
||||
attr.precise_ip ? attr.precise_ip + 1 : 0, "ppp") < 0)
|
||||
goto error_free;
|
||||
out:
|
||||
return evsel;
|
||||
|
|
|
|||
|
|
@ -2209,7 +2209,7 @@ int machine__get_kernel_start(struct machine *machine)
|
|||
machine->kernel_start = 1ULL << 63;
|
||||
if (map) {
|
||||
err = map__load(map);
|
||||
if (map->start)
|
||||
if (!err)
|
||||
machine->kernel_start = map->start;
|
||||
}
|
||||
return err;
|
||||
|
|
|
|||
Loading…
Reference in a new issue