SoW-2020-0003: Trace Hit Counters
[lttng-tools.git] / doc / man / lttng-add-map.1.txt
CommitLineData
ebdb334b
JR
1lttng-add-map(1)
2================
3:revdate: 30 Mars 2021
4
5
6NAME
7----
8lttng-add-map - Create LTTng map
9
10
11SYNOPSIS
12--------
13
14Create a Linux kernel map:
15[verse]
16*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *add-map* option:--kernel
17 [option:--session='SESSION'] [--bitness='BITNESS']
18 [option:--coalesce-hits]
19 [option:--may-key-count='MAX_KEY_COUNT']
20 'MAP'
21
22Create a user space map:
23[verse]
24*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *add-map* option:--userspace
25 [option:--session='SESSION'] [--bitness='BITNESS']
26 [(option:--per-pid | option:--per-uid)]
27 [option:--coalesce-hits]
28 [option:--may-key-count='MAX_KEY_COUNT']
29 'MAP'
30
31
32DESCRIPTION
33-----------
34
35The `lttng add-map` command is used to create maps.
36
37A map is key-value data structure used to count events occurences. When
38creating a map, many parameters related to this data structure can be
39fine-tuned.
40
41When 'MAP' does not name an existing map, a map named
42'MAP' is created.
43
44OPTIONS
45-------
46
47option:-k, option:--kernel::
48 Create map in the Linux kernel domain.
49
50option:-u, option:--userspace::
51 Create map in the user space domain.
52
53option:-s 'SESSION', option:--session='SESSION'::
54 Create map in the tracing session named 'SESSION'
55 instead of the current tracing session.
56
57option:--bitness='BITNESS'::
58 Set the counter bucket size to BITNESS bits.
59
60option:--coalesce-hits::
61 Coalesces hits from identical event rules.
62
63option:--per-pid::
64 Keep one event counter per process.
65
66option:--per-uid::
67 Keep one event counter for all processes of a single user.
68
69include::common-cmd-help-options.txt[]
70
71include::common-cmd-footer.txt[]
72
73
74SEE ALSO
75--------
76man:lttng-enable-map(1),
77man:lttng-disable-map(1),
78man:lttng-view-map(1),
79man:lttng-list(1),
80man:lttng-add-trigger(1),
81man:lttng(1)
This page took 0.026704 seconds and 5 git commands to generate.