Usage and Options#

The emc_log utility has the following basic syntax:

emc_log [options]

The emc_log Options#

The following table describes the available options:

Option

Description

-group

Collects statistics for all clients in <group_name>. If the group contains two or more clients, emc_log samples two clients at a time in a round-robin fashion.

-client

Collects statistics for the clients. You can specify multiple ‑‑client options in one command. If more than two clients are specified, the clients are sampled two at a time in a round-robin fashion.

-window

Samples every <ms> milliseconds. The default is 1000.

-startdelay

Specifies a delay for <s> seconds before sampling the counters. The default is 1.

-length

Samples for at least <s> seconds. The default is 1.

-period

Specifies the period that a client is sampled in a round-robin fashion. The default is 1.

For example, if four clients and a period of 3 are specified, the sampling order is:

First sampling: client 1 and client 2

Second sampling: client 1 and client 2

Third sampling: client 1 and client 2

Fourth sampling: client 3 and client 4

Fifth sampling: client 3 and client 4

Sixth sampling: client 3 and client 4

Seventh sampling: client 1 and client 2.

-total

Collects total statistics for all the specified clients.

-o

Outputs data to <file_name> if the option is specified; otherwise, outputs data to stdout.

-help

Prints descriptions for the supported command-line options. Also lists all supported client names, client IDs, and group names on the platform.

Note : Clients and groups (listed in the table) are platform-specific. Enter emc_log help to obtain a list of the supported groups and clients for your platform.

Restrictions#

The emc_log utility does not function if either the hypervisor restrictions are in place or the MC/EMC firewall is fully operational. To relax the MC/EMC firewall settings, remove dts nodes before creating images for flashing.

The dts nodes to remove are in this file:

${NV_WORKSPACE}/hardware/nvidia/platform/t264/common/bct/mb2-bct/firewalls/tegra264-firewall-config-base.dtsi

reg@10476 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_MC0_BLF, CTL_SETTING */
};
reg@10481 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_MC1_BLF, CTL_SETTING */
};
reg@10516 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_MC2_BLF, CTL_SETTING */
};
reg@10521 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_MC3_BLF, CTL_SETTING */
};
reg@10526 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_MC4_BLF, CTL_SETTING */
};
 reg@10531 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_MC5_BLF, CTL_SETTING */
};
reg@10536 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_MC6_BLF, CTL_SETTING */
};
reg@10541 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_MC7_BLF, CTL_SETTING */
};
reg@10546 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_MC8_BLF, CTL_SETTING */
};
reg@10551 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_MC9_BLF, CTL_SETTING */
};
reg@10561 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_MCB_BLF, CTL_SETTING */
};
reg@10486 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_MC10_BLF, CTL_SETTING */
};
reg@10491 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_MC11_BLF, CTL_SETTING */
};
reg@10496 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_MC12_BLF, CTL_SETTING */
};
reg@10501 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_MC13_BLF, CTL_SETTING */
};
reg@10506 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_MC14_BLF, CTL_SETTING */
};
reg@10511 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_MC15_BLF, CTL_SETTING */
};
reg@9966 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_EMC0_CORE_BLF, CTL_SETTING */
};
reg@10141 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_EMC1_CORE_BLF, CTL_SETTING */
};
reg@10166 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_EMC2_CORE_BLF, CTL_SETTING */
};
reg@10191 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_EMC3_CORE_BLF, CTL_SETTING */
};
reg@10216 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_EMC4_CORE_BLF, CTL_SETTING */
};
reg@10241 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_EMC5_CORE_BLF, CTL_SETTING */
};
reg@10266 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_EMC6_CORE_BLF, CTL_SETTING */
};
reg@10291 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_EMC7_CORE_BLF, CTL_SETTING */
};
reg@10316 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_EMC8_CORE_BLF, CTL_SETTING */
};
reg@10341 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_EMC9_CORE_BLF, CTL_SETTING */
};
reg@10366 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_EMCB_CORE_BLF, CTL_SETTING */
};
reg@9991 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_EMC10_CORE_BLF, CTL_SETTING */
};
reg@10016 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_EMC11_CORE_BLF, CTL_SETTING */
};
reg@10041 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_EMC12_CORE_BLF, CTL_SETTING */
};
reg@10066 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_EMC13_CORE_BLF, CTL_SETTING */
};
reg@10091 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_EMC14_CORE_BLF, CTL_SETTING */
};
reg@10116 { /* CBB_CENTRAL_CBB_FIREWALL, CBB_FIREWALL_EMC15_CORE_BLF, CTL_SETTING */