Skip to content

Commit

Permalink
disable-perf-event
Browse files Browse the repository at this point in the history
  • Loading branch information
Dong Jun Woun committed Sep 12, 2024
1 parent 3f742aa commit b2baf11
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions src/configure
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,7 @@ with_perf_events
enable_perfevent_rdpmc
with_pe_incdir
enable_perf_event_uncore
enable_perf_event
with_components
enable_fortran
'
Expand Down Expand Up @@ -1438,6 +1439,7 @@ Optional Features:
Enable userspace rdpmc instruction on perf_event,
default: yes
--disable-perf-event-uncore
--disable-perf-event
Disable perf_event uncore component
--disable-fortran Whether to disable fortran bindings
Expand Down Expand Up @@ -5941,10 +5943,23 @@ if test "x$mic" = "xno"; then
perf_events=no
fi
perf_events=yes
force_perf_events=no
disable_uncore=yes
if test "${enable_perf_event+set}" = set; then
enableval=$enable_perf_event;
fi
if test "x$enable_perf_event" = "xno"; then
perf_events="no"
force_perf_events="no"
fi
# Check whether --with-perf_events was given.
if test "${with_perf_events+set}" = set; then :
withval=$with_perf_events; force_perf_events=yes
Expand Down Expand Up @@ -5982,18 +5997,20 @@ else
fi
# Check whether --enable-perf_event_uncore was given.
if test "${enable_perf_event_uncore+set}" = set; then :
enableval=$enable_perf_event_uncore;
fi
if test "x$enable_perf_event_uncore" != "xno"; then :
disable_uncore=no
fi
# Check for perf_event.h
if test "$force_perf_events" = "yes"; then
perf_events="yes"
Expand Down Expand Up @@ -6034,11 +6051,12 @@ fi
eval ac_res=\$$as_ac_File
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
if eval test \"x\$"$as_ac_File"\" = x"yes" && [ "$perf_events" != "no" ]; then
perf_events="yes"
fi
fi
fi
Expand Down Expand Up @@ -6600,7 +6618,11 @@ elif test "$MAKEVER" = "linux-generic"; then
elif test "$MAKEVER" = "linux-pe"; then
FILENAME=Rules.pfm4_pe
CPUCOMPONENT_NAME=perf_event
components="perf_event"
if test "$perf_events" = "no"; then
components=""
else
components="perf_event"
fi
if test "$disable_uncore" = "no"; then
components="$components perf_event_uncore"
fi
Expand Down

0 comments on commit b2baf11

Please sign in to comment.