@@ -45,10 +45,23 @@ using namespace bolt;
4545namespace opts {
4646
4747static cl::opt<bool >
48- BasicAggregation (" nl " ,
49- cl::desc (" aggregate basic samples (without brstack info)" ),
48+ BasicAggregation (" basic-events " ,
49+ cl::desc (" aggregate basic events (without brstack info)" ),
5050 cl::cat(AggregatorCategory));
5151
52+ static cl::alias BasicAggregationAlias (" ba" ,
53+ cl::desc (" Alias for --basic-events" ),
54+ cl::aliasopt(BasicAggregation));
55+
56+ static cl::opt<bool > DeprecatedBasicAggregationNl (
57+ " nl" , cl::desc(" Alias for --basic-events (deprecated. Use --ba)" ),
58+ cl::cat(AggregatorCategory), cl::ReallyHidden,
59+ cl::callback([](const bool &Enabled) {
60+ errs ()
61+ << " BOLT-WARNING: '-nl' is deprecated, please use '--ba' instead.\n " ;
62+ BasicAggregation = Enabled;
63+ }));
64+
5265cl::opt<bool > ArmSPE (" spe" , cl::desc(" Enable Arm SPE mode." ),
5366 cl::cat(AggregatorCategory));
5467
@@ -1433,7 +1446,7 @@ std::error_code DataAggregator::printLBRHeatMap() {
14331446 " Cannot build heatmap." ;
14341447 } else {
14351448 errs () << " HEATMAP-ERROR: no brstack traces detected in profile. "
1436- " Cannot build heatmap. Use -nl for building heatmap from "
1449+ " Cannot build heatmap. Use -ba for building heatmap from "
14371450 " basic events.\n " ;
14381451 }
14391452 exit (1 );
@@ -1629,8 +1642,8 @@ std::error_code DataAggregator::parseBranchEvents() {
16291642 << " PERF2BOLT-WARNING: all recorded samples for this binary lack "
16301643 " brstack. Record profile with perf record -j any or run "
16311644 " perf2bolt "
1632- " in non-brstack mode with -nl (the performance improvement in "
1633- " -nl "
1645+ " in non-brstack mode with -ba (the performance improvement in "
1646+ " -ba "
16341647 " mode may be limited)\n " ;
16351648 else
16361649 errs ()
0 commit comments