Skip to content

Commit

Permalink
Simplify i915-perf parsing code
Browse files Browse the repository at this point in the history
The function read_i915_perf_file() is always present and it's content
is compiled out, so it's safe to always call it.
  • Loading branch information
llandwerlin-intel authored and mikesart committed Dec 30, 2020
1 parent e8dcea1 commit 15d8ea8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/gpuvis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -768,12 +768,8 @@ int MainApp::load_etl_file( loading_info_t *loading_info, TraceEvents &trace_eve

int MainApp::load_i915_perf_file( loading_info_t *loading_info, TraceEvents &trace_events, EventCallback trace_cb )
{
#ifdef USE_I915_PERF
return read_i915_perf_file( loading_info->filename.c_str(), trace_events.m_strpool,
trace_events.m_trace_info, &trace_events.i915_perf_reader, trace_cb );
#else
return 0;
#endif
}

int SDLCALL MainApp::thread_func( void *data )
Expand Down

0 comments on commit 15d8ea8

Please sign in to comment.