• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2022 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15export class CmdConstant {
16    static CMD_TRACE_FILE_SIZE = "hdc_std shell  stat --format=%s "
17    static CMD_SHELL = "hdc_std shell "
18    static CMD_MOUNT = "hdc_std shell mount -o remount,rw /"
19    static CMD_GET_PROCESS = "hdc_std shell ps -A -opid,cmd"
20    static CMD_GET_CPU_COUNT = "hdc_std shell grep -c 'processor' /proc/cpuinfo"
21    static CMD_GET_HIPERF_EVENTS = "hdc_std shell hiperf list"
22    static CMD_HDC_DEVICES = "hdc_std list targets"
23    static CMD_MOUNT_DEVICES =  "hdc_std -t {0} shell mount -o remount,rw /"
24    static CMD_GET_PROCESS_DEVICES = "hdc_std -t {0} shell ps -A -opid,cmd"
25    static CMD_GET_CPU_COUNT_DEVICES =  "hdc_std -t {0} shell grep -c 'processor' /proc/cpuinfo"
26    static CMD_GET_HIPERF_EVENTS_DEVICES = "hdc_std -t {0} shell hiperf list"
27    static CMD_FIEL_RECV_DEVICES = "hdc_std -t {0} file recv {1} ./"
28    static CMS_HDC_STOP = "hdc_std -t {0} shell killall hiprofilerd hiprofiler_plugins native_daemon hiperf hiebpf" +
29        " hiprofiler_cmd"
30    static CMS_STOP = "hdc_std shell killall hiprofilerd hiprofiler_plugins native_daemon hiperf hiebpf hiprofiler_cmd"
31}