Revision b5462cc377748181af2b05729c69f5faecec3717 authored by Zhang Xiaoxu on 16 November 2020, 14:35:40 UTC, committed by Rodrigo Vivi on 16 November 2020, 23:06:28 UTC
If intel context create failed, the perf_request_latency() will return 0
rather than error, because we doesn't initialize the return value.

Fixes: 25c26f18ea79 ("drm/i915/selftests: Measure dispatch latency")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhang Xiaoxu <zhangxiaoxu5@huawei.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20201116143540.3648870-1-zhangxiaoxu5@huawei.com
(cherry picked from commit 19384452052a1e0525e663bfbdd62ac1399bb647)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
1 parent 2106edb
History
File Mode Size
Kconfig -rw-r--r-- 27.5 KB
Makefile -rw-r--r-- 3.2 KB
blktrace.c -rw-r--r-- 47.6 KB
bpf_trace.c -rw-r--r-- 57.6 KB
bpf_trace.h -rw-r--r-- 633 bytes
fgraph.c -rw-r--r-- 16.9 KB
ftrace.c -rw-r--r-- 178.5 KB
ftrace_internal.h -rw-r--r-- 1.5 KB
kprobe_event_gen_test.c -rw-r--r-- 5.6 KB
power-traces.c -rw-r--r-- 505 bytes
preemptirq_delay_test.c -rw-r--r-- 4.2 KB
ring_buffer.c -rw-r--r-- 152.8 KB
ring_buffer_benchmark.c -rw-r--r-- 10.8 KB
rpm-traces.c -rw-r--r-- 510 bytes
synth_event_gen_test.c -rw-r--r-- 13.7 KB
trace.c -rw-r--r-- 233.6 KB
trace.h -rw-r--r-- 66.9 KB
trace_benchmark.c -rw-r--r-- 5.2 KB
trace_benchmark.h -rw-r--r-- 871 bytes
trace_boot.c -rw-r--r-- 8.3 KB
trace_branch.c -rw-r--r-- 10.1 KB
trace_clock.c -rw-r--r-- 3.6 KB
trace_dynevent.c -rw-r--r-- 11.9 KB
trace_dynevent.h -rw-r--r-- 4.6 KB
trace_entries.h -rw-r--r-- 8.2 KB
trace_event_perf.c -rw-r--r-- 12.0 KB
trace_events.c -rw-r--r-- 86.9 KB
trace_events_filter.c -rw-r--r-- 55.8 KB
trace_events_filter_test.h -rw-r--r-- 1.1 KB
trace_events_hist.c -rw-r--r-- 141.7 KB
trace_events_inject.c -rw-r--r-- 6.4 KB
trace_events_synth.c -rw-r--r-- 50.1 KB
trace_events_trigger.c -rw-r--r-- 41.0 KB
trace_export.c -rw-r--r-- 5.2 KB
trace_functions.c -rw-r--r-- 18.1 KB
trace_functions_graph.c -rw-r--r-- 32.5 KB
trace_hwlat.c -rw-r--r-- 16.8 KB
trace_irqsoff.c -rw-r--r-- 17.6 KB
trace_kdb.c -rw-r--r-- 3.5 KB
trace_kprobe.c -rw-r--r-- 51.2 KB
trace_kprobe_selftest.c -rw-r--r-- 353 bytes
trace_kprobe_selftest.h -rw-r--r-- 313 bytes
trace_mmiotrace.c -rw-r--r-- 8.6 KB
trace_nop.c -rw-r--r-- 2.2 KB
trace_output.c -rw-r--r-- 30.7 KB
trace_output.h -rw-r--r-- 1.2 KB
trace_preemptirq.c -rw-r--r-- 3.6 KB
trace_printk.c -rw-r--r-- 8.7 KB
trace_probe.c -rw-r--r-- 26.4 KB
trace_probe.h -rw-r--r-- 14.6 KB
trace_probe_tmpl.h -rw-r--r-- 5.6 KB
trace_sched_switch.c -rw-r--r-- 3.1 KB
trace_sched_wakeup.c -rw-r--r-- 19.6 KB
trace_selftest.c -rw-r--r-- 26.4 KB
trace_selftest_dynamic.c -rw-r--r-- 270 bytes
trace_seq.c -rw-r--r-- 10.4 KB
trace_stack.c -rw-r--r-- 14.6 KB
trace_stat.c -rw-r--r-- 7.6 KB
trace_stat.h -rw-r--r-- 992 bytes
trace_synth.h -rw-r--r-- 868 bytes
trace_syscalls.c -rw-r--r-- 20.4 KB
trace_uprobe.c -rw-r--r-- 37.7 KB
tracing_map.c -rw-r--r-- 29.8 KB
tracing_map.h -rw-r--r-- 11.3 KB

back to top