| |
|
开发:
C++知识库
Java知识库
JavaScript
Python
PHP知识库
人工智能
区块链
大数据
移动开发
嵌入式
开发工具
数据结构与算法
开发测试
游戏开发
网络协议
系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程 数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁 |
-> 系统运维 -> 【LTTng】LTTng通过网络发送Trace数据 -> 正文阅读 |
|
[系统运维]【LTTng】LTTng通过网络发送Trace数据 |
将Trace数据通过TCP发送走而不是保存在目标板上。 如果虚拟机作为上位机,需要网卡配置成桥接模式。 在上位机上打开 LTTng relay daemon: lttng-relayd 在目标板上开启record session 的时候,指定远程url: lttng create my-session --set-url=net://remote-system 具体的: Create a network streaming mode recording session: lttng [GENERAL OPTIONS] create [SESSION] [--shm-path=DIR] ??????(--set-url=URL | --ctrl-url=URL --data-url=URL) URL formatThe argument of the?--set-url=URL,?--ctrl-url=URL, and?--data-url=URL?options is an URL. There are two available?URL?formats. Local format file://TRACEDIR The?file://?protocol targets the?local file system: you may only use such an URL with the?--set-url?option when you create the recording session in local or snapshot mode (see the “Recording session modes” section above).
Absolute path to the directory containing the trace data on the local file system. Network format NETPROTO://(HOST | IPADDR)[:CTRLPORT[:DATAPORT]][/TRACEDIR] This format is only available when you create the recording session in network streaming, snapshot (--snapshot), or live (--live) mode (see the “Recording session modes” section above).
Network protocol, amongst: net TCP over IPv4. The default values of?CTRLPORT?and?DATAPORT?are respectively 5342 and 5343. net6 TCP over IPv6. The default values of?CTRLPORT?and?DATAPORT?are respectively 5342 and 5343. tcp Same as the?net?protocol. You may only use this with the?--ctrl-url?and?--data-url?options together. tcp6 Same as the?net6?protocol. You can only be use this with the?--ctrl-url?and?--data-url?options together. ( Hostname or IP address. IPv6 address must be enclosed in square brackets ([?and?]); see?RFC?2732.
Control TCP port.
Data TCP port.
Path of the directory containing the trace data on the remote file system. This path is relative to the base output directory of the LTTng relay daemon (see the?--output?option of?lttng-relayd(8)). EXAMPLESExample:Create a normal mode recording session with a generated name. $ lttng create Example:Create a normal mode recording session with a custom name. $ lttng create my-session Example:Create a normal mode recording session with a specific output directory. See the?--output?option. $ lttng create --output=/path/to/traces Example:Create a network streaming mode recording session. See the “Output directory” section of?lttng-relayd(8)?to understand where the relay daemon to connect to (10.0.0.242) writes the received traces. See the?--set-url?option. $ lttng create --set-url=net://10.0.0.242/inv4 Example:Create a snapshot mode recording session with a default snapshot output. See the?--snapshot?option. $ lttng create --snapshot Example:Create a snapshot mode recording session with a custom snapshot output. See the?--snapshot?and?--set-url?options. $ lttng create --snapshot \ --set-url=tcp://192.168.1.102:1234:5678/my-snapshots Example:Create a snapshot mode recording session with no snapshot output. See the?--snapshot?and?--no-output?options. $ lttng create --snapshot --no-output Example:Create an LTTng live mode recording session with a default relay daemon URL. See the?--live?option. $ lttng create --live Example:Create an LTTng live mode recording session with a custom live timer period and relay daemon URL. See the?--live?and?--set-url?options. $ lttng create --live=250000 \ --set-url=tcp://relayd34:4885:4886 Example:Create a normal mode recording session with a custom directory containing the ring buffer shared memory files. See the?--shm-path?option. $ lttng create my-session --shm-path=/mnt/nvram2/lttng 这里备注一下,如果没进行配置,这里的TRACEDIR实际上是相对于$LTTNG_HOME/lttng-traces内的地址。一般就是在/home/lttng-traces下面了。 Output directoryThe relay daemon uses different output path patterns depending on:
Consider the following variables:
Base output directory:?$LTTNG_HOME/lttng-traces?($LTTNG_HOME?defaults to?$HOME) or the argument of the?--output?option.
Hostname of the connected peer.
Recording session name.
Unique recording session date/time.
Custom trace directory path (TRACEDIR?part of the argument of the?--set-url?option of the?lttng-create(1)?command, if any).
The version of the LTTng session daemon of the connected peer. The relay daemon output path patterns are: With the? Without a custom trace directory BASE/HOSTNAME/SESSION-DATETIME With a custom trace directory BASE/HOSTNAME/TRACEDIR With the? Without a custom trace directory
BASE/SESSION/HOSTNAME-DATETIME Otherwise Defaults to the hostname grouping pattern: BASE/HOSTNAME/SESSION-DATETIME With a custom trace directory
BASE/SESSION/HOSTNAME-DATETIME/TRACEDIR Otherwise Defaults to the hostname grouping pattern: BASE/HOSTNAME/TRACEDIR |
|
|
上一篇文章 下一篇文章 查看所有文章 |
|
开发:
C++知识库
Java知识库
JavaScript
Python
PHP知识库
人工智能
区块链
大数据
移动开发
嵌入式
开发工具
数据结构与算法
开发测试
游戏开发
网络协议
系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程 数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁 |
360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年11日历 | -2024/11/15 9:39:45- |
|
网站联系: qq:121756557 email:121756557@qq.com IT数码 |