Skip to content

Commit 953931c

Browse files
committed
[roc] Update with o2- prefixed names in help dialogs
1 parent 390dee3 commit 953931c

21 files changed

+41
-41
lines changed

src/CommandLineUtilities/ProgramBarStress.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class ProgramBarStress : public Program
3434
virtual Description getDescription()
3535
{
3636
return { "Bar Stress", "Stress the Bar Accessor",
37-
"roc-bar-stress --id 04:00.0 --channel=1 --address=0x0f00040 --value=0x18 \n"
37+
"o2-roc-bar-stress --id 04:00.0 --channel=1 --address=0x0f00040 --value=0x18 \n"
3838
"\t--cycles 100000 --print-freq 10000 --sleep=1000" };
3939
}
4040

src/CommandLineUtilities/ProgramCleanup.cxx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ class ProgramCleanup : public Program
3535
public:
3636
virtual Description getDescription()
3737
{
38-
return { "Cleanup", "Cleans up ReadoutCard state", "roc-cleanup" };
38+
return { "Cleanup", "Cleans up ReadoutCard state", "o2-roc-cleanup" };
3939
}
4040

4141
virtual void addOptions(po::options_description& options)
4242
{
4343
options.add_options()("light",
4444
po::bool_switch(&mOptions.light)->default_value(false),
45-
"Flag to run a \"light\" roc-cleanup, skipping PDA module removal");
45+
"Flag to run a \"light\" o2-roc-cleanup, skipping PDA module removal");
4646
}
4747

4848
virtual void run(const po::variables_map&)
@@ -54,12 +54,12 @@ class ProgramCleanup : public Program
5454
std::cout << "Execution of this tool will:" << std::endl;
5555
std::cout << "1. Free PDA DMA buffers" << std::endl;
5656
std::cout << "2. Clean CRORC FIFO shared memory files under /dev/shm which match AliceO2_ROC_*" << std::endl;
57-
std::cout << "3. Clean all hugepage resources under /var/lib/hugetlbfs/global/pagesize-{2MB, 1GB}/ which match readout* and roc-bench-dma*" << std::endl;
57+
std::cout << "3. Clean all hugepage resources under /var/lib/hugetlbfs/global/pagesize-{2MB, 1GB}/ which match readout* and o2-roc-bench-dma*" << std::endl;
5858
if (!mOptions.light) {
5959
std::cout << "4. Remove and reinsert the uio_pci_dma kernel module" << std::endl;
6060
}
6161
std::cout << std::endl;
62-
std::cout << "In case instances of readout.exe or roc-bench-dma are running, they will fail." << std::endl;
62+
std::cout << "In case instances of readout.exe or o2-roc-bench-dma are running, they will fail." << std::endl;
6363
std::cout << std::endl;
6464
std::cout << "This tool is intended to be run with elevated privileges." << std::endl;
6565
std::cout << "Are you sure you want to continue? (yes/no)" << std::endl;
@@ -78,9 +78,9 @@ class ProgramCleanup : public Program
7878
sysCheckRet("rm /var/lib/hugetlbfs/global/pagesize-2MB/readout*");
7979
std::cout << "Removing readout 1GB hugepage mappings" << std::endl;
8080
sysCheckRet("rm /var/lib/hugetlbfs/global/pagesize-1GB/readout*");
81-
std::cout << "Removing roc-bench-dma 2MB hugepage mappings" << std::endl;
81+
std::cout << "Removing o2-roc-bench-dma 2MB hugepage mappings" << std::endl;
8282
sysCheckRet("rm /var/lib/hugetlbfs/global/pagesize-2MB/roc-bench-dma*");
83-
std::cout << "Removing roc-bench-dma 1GB hugepage mappings" << std::endl;
83+
std::cout << "Removing o2-roc-bench-dma 1GB hugepage mappings" << std::endl;
8484
sysCheckRet("rm /var/lib/hugetlbfs/global/pagesize-1GB/roc-bench-dma*");
8585

8686
if (!mOptions.light) {

src/CommandLineUtilities/ProgramConfig.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ class ProgramConfig : public Program
3939
virtual Description getDescription()
4040
{
4141
return { "Config", "Configure the ReadoutCard(s)",
42-
"roc-config --config-uri ini:///home/flp/roc.cfg\n"
43-
"roc-config --id 42:00.0 --links 0-23 --clock local --datapathmode packet --loopback --gbtmux ttc #CRU\n"
44-
"roc-config --id #0 --crorc-id 0x42 --dyn-offset --tf-length 255 #CRORC\n" };
42+
"o2-roc-config --config-uri ini:///home/flp/roc.cfg\n"
43+
"o2-roc-config --id 42:00.0 --links 0-11 --clock local --datapathmode packet --loopback --gbtmux ttc #CRU\n"
44+
"o2-roc-config --id #0 --crorc-id 0x42 --dyn-offset --tf-length 255 #CRORC\n" };
4545
}
4646

4747
virtual void addOptions(boost::program_options::options_description& options)
@@ -108,7 +108,7 @@ class ProgramConfig : public Program
108108
"Flag to enable the Time Frame Detection");
109109
options.add_options()("gen-cfg-file",
110110
po::value<std::string>(&mOptions.genConfigFile),
111-
"If set generates a configuration file from the command line options. [DOES NOT CONFIGURE]");
111+
"If set generates a CRU configuration file from the command line options. [DOES NOT CONFIGURE]");
112112
options.add_options()("no-gbt",
113113
po::bool_switch(&mOptions.noGbt),
114114
"Flag to switch off GBT");

src/CommandLineUtilities/ProgramCtpEmulator.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class ProgramCtpEmulator : public Program
3838
virtual Description getDescription()
3939
{
4040
return { "CTP Emulator", "Emulate CTP functionality",
41-
"roc-ctp-emulator --id 42:00.0 --trigger-mode continuous\n" };
41+
"o2-roc-ctp-emulator --id 42:00.0 --trigger-mode continuous\n" };
4242
}
4343

4444
virtual void addOptions(boost::program_options::options_description& options)
@@ -55,7 +55,7 @@ class ProgramCtpEmulator : public Program
5555
"Sets the number of Heartbeats to keep");
5656
options.add_options()("hbkeep",
5757
po::value<uint32_t>(&mOptions.hbKeep)->default_value(15000),
58-
"Sets the number Heartbeats to drop");
58+
"Sets the number of Heartbeats to drop");
5959
options.add_options()("init-orbit",
6060
po::value<std::string>(&mOptions.orbitInit)->default_value("0x0"),
6161
"Sets the initial orbit id");

src/CommandLineUtilities/ProgramDmaBench.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class ProgramDmaBench : public Program
113113
"README.md for more information.\n"
114114
"The options specifying a size take power-of-10 and power-of-2 unit prefixes. For example '--bytes=1T' "
115115
"(1 terabyte) or '--buffer-size=1Gi' (1 gibibyte)",
116-
"roc-bench-dma --verbose --id=42:0.0 --bytes=10G"
116+
"o2-roc-bench-dma --verbose --id=42:0.0 --bytes=10G"
117117
};
118118
}
119119

@@ -255,7 +255,7 @@ class ProgramDmaBench : public Program
255255
BOOST_THROW_EXCEPTION(ParameterException() << ErrorInfo::Message("Buffer size smaller than superpage size"));
256256
}
257257

258-
std::string bufferName = (b::format("roc-bench-dma_id=%s_chan=%s_pages") % map["id"].as<std::string>() % mOptions.dmaChannel).str();
258+
std::string bufferName = (b::format("o2-roc-bench-dma_id=%s_chan=%s_pages") % map["id"].as<std::string>() % mOptions.dmaChannel).str();
259259

260260
Utilities::HugepageType hugepageType;
261261
mMemoryMappedFile = Utilities::tryMapFile(mBufferSize, bufferName, !mOptions.noRemovePagesFile, &hugepageType);

src/CommandLineUtilities/ProgramFirmwareCheck.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ProgramFirmwareCheck : public Program
3232
virtual Description getDescription()
3333
{
3434
return { "Firmware Check", "Check firmware compatibility of the ReadoutCard(s)",
35-
"roc-fw-check\n" };
35+
"o2-roc-fw-check\n" };
3636
}
3737

3838
virtual void addOptions(boost::program_options::options_description&)

src/CommandLineUtilities/ProgramFlash.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class ProgramCrorcFlash : public Program
3434
public:
3535
virtual Description getDescription()
3636
{
37-
return { "Flash", "Programs the card's flash memory", "roc-flash --id=12345 --file=/dir/my_file" };
37+
return { "Flash", "Programs the card's flash memory", "o2-roc-flash --id=12345 --file=/dir/my_file" };
3838
}
3939

4040
virtual void addOptions(po::options_description& options)

src/CommandLineUtilities/ProgramFlashRead.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ProgramCrorcFlash : public Program
3333
virtual Description getDescription()
3434
{
3535
return { "Flash Read", "Reads card flash memory",
36-
"roc-flash-read --id=12345 --address=0 --words=32" };
36+
"o2-roc-flash-read --id=12345 --address=0 --words=32" };
3737
}
3838

3939
virtual void addOptions(po::options_description& options)

src/CommandLineUtilities/ProgramListCards.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ class ProgramListCards : public Program
4040
virtual Description getDescription()
4141
{
4242
return { "List Cards", "Lists installed cards and some basic information about them",
43-
"roc-list-cards\n"
44-
"roc-list-cards --json" };
43+
"o2-roc-list-cards\n"
44+
"o2-roc-list-cards --json" };
4545
}
4646

4747
virtual void addOptions(boost::program_options::options_description& options)

src/CommandLineUtilities/ProgramMetrics.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ class ProgramMetrics : public Program
3939
virtual Description getDescription()
4040
{
4141
return { "Metrics", "Return current RoC parameters",
42-
"roc-metrics \n"
43-
"roc-metrics --json \n"
44-
"roc-metrics --monitoring\n" };
42+
"o2-roc-metrics \n"
43+
"o2-roc-metrics --json \n"
44+
"o2-roc-metrics --monitoring\n" };
4545
}
4646

4747
virtual void addOptions(boost::program_options::options_description& options)

0 commit comments

Comments
 (0)