Skip to content

Commit 0db7bfa

Browse files
authored
Split and Refactor Documentation (#128)
--- Signed-off-by: Kartik Nema <kartnema@qti.qualcomm.com>
1 parent aa82ac7 commit 0db7bfa

8 files changed

Lines changed: 103 additions & 16 deletions

File tree

docs/Doxyfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ WARN_LOGFILE =
864864
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
865865
# Note: If this tag is empty the current directory is searched.
866866

867-
INPUT = docs/README.md docs/HOW-TO.md docs/EXTENSIONS.md docs/FEATURES.md docs/REQUESTS.md modula/Common/Include/ Core/Modula/Components/Include/ modula/CoreModules/Include/ client/APIs/Include client/Comm/Socket/Include resource-tuner/extensions/Include resource-tuner/core/Include resource-tuner/init/Include resource-tuner/core/Server/Include resource-tuner/signals/Include docs/Examples/
867+
INPUT = docs/README.md docs/UserGuide modula/Common/Include/ Core/Modula/Components/Include/ modula/CoreModules/Include/ client/APIs/Include client/Comm/Socket/Include resource-tuner/extensions/Include resource-tuner/core/Include resource-tuner/init/Include resource-tuner/core/Server/Include resource-tuner/signals/Include docs/Examples/
868868

869869
# This tag can be used to specify the character encoding of the source files
870870
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
@@ -920,6 +920,7 @@ FILE_PATTERNS = *.c \
920920
*.phtml \
921921
*.inc \
922922
*.m \
923+
*.md \
923924
*.markdown \
924925
*.mm \
925926
*.dox \
@@ -1004,7 +1005,7 @@ EXAMPLE_RECURSIVE = NO
10041005
# that contain images that are to be included in the documentation (see the
10051006
# \image command).
10061007

1007-
IMAGE_PATH = docs/images
1008+
IMAGE_PATH = docs/Images/
10081009

10091010
# The INPUT_FILTER tag can be used to specify a program that doxygen should
10101011
# invoke to filter for each input file. Doxygen will invoke the filter program

docs/README.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -63,23 +63,22 @@ option(BUILD_CLI "CLI" OFF)
6363
## Project Structure
6464

6565
```text
66-
/
67-
├── Client
68-
├── Server # Defines the Server Communication Endpoint and other Common Server-Side Utils
69-
├── Resource Tuner
70-
│ ├── Core
71-
│ │ ├── Framework # Core Resource Provisioning Request Flow Logic
72-
│ │ ├── Modula # Common Utilities and Components used across Resource Tuner Modules
73-
│ ├── Signals # Optional Module, exposes Signal Tuning / Relay APIs
74-
├── Contextual Classifier
75-
├── CLI # Exposes the Client Facing APIs, and Defines the Client Communication Endpoint
76-
├── Configs # Resources Config, Properties Config, Init Config, Signal Configs, Ext Feature Configs
77-
├── Tests # Unit and System Wide Tests
78-
└── Docs # Documentation
66+
.
67+
├── client
68+
├── configs
69+
├── contextual-classifier
70+
├── debian
71+
├── docs
72+
├── extensions
73+
├── modula
74+
├── public_headers
75+
└── resource-tuner
7976
```
8077

78+
8179
---
8280

81+
8382
<div style="page-break-after: always;"></div>
8483

8584
# Userspace Resource Manager Key Points

docs/UserGuide/CLIENT-CLI.md

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
\page client_cli Interacting via Client CLI
2+
3+
# Client CLI
4+
Resource-tuner provides a minimal CLI to interact with the server. This is provided to help with development and debugging purposes.
5+
6+
## Usage Examples
7+
8+
### 1. Send a Tune Request
9+
```bash
10+
/usr/bin/urmCli --tune --duration <> --priority <> --num <> --res <>
11+
```
12+
Where:
13+
- `duration`: Duration in milliseconds for the tune request
14+
- `priority`: Priority level for the tune request (HIGH: 0 or LOW: 1)
15+
- `num`: Number of resources
16+
- `res`: List of resource ResCode, ResInfo (optional) and Values to be tuned as part of this request
17+
18+
Example:
19+
```bash
20+
# Single Resource in a Request
21+
/usr/bin/urmCli --tune --duration 5000 --priority 0 --num 1 --res "65536:700"
22+
23+
# Multiple Resources in single Request
24+
/usr/bin/urmCli --tune --duration 4400 --priority 1 --num 2 --res "0x80030000:700,0x80040001:155667"
25+
26+
# Multi-Valued Resource
27+
/usr/bin/urmCli --tune --duration 9500 --priority 0 --num 1 --res "0x00090002:0,0,1,3,5"
28+
29+
# Specifying ResInfo (useful for Core and Cluster type Resources)
30+
/usr/bin/urmCli --tune --duration 5000 --priority 0 --num 1 --res "0x00040000#0x00000100:1620438"
31+
32+
# Everything at once
33+
/usr/bin/urmCli --tune --duration 6500 --priority 0 --num 2 --res "0x00030000:800;0x00040011#0x00000101:50000,100000"
34+
```
35+
36+
### 2. Send an Untune Request
37+
```bash
38+
/usr/bin/urmCli --untune --handle <>
39+
```
40+
Where:
41+
- `handle`: Handle of the previously issued tune request, which needs to be untuned
42+
43+
Example:
44+
```bash
45+
/usr/bin/urmCli --untune --handle 50
46+
```
47+
48+
### 3. Send a Retune Request
49+
```bash
50+
/usr/bin/urmCli --retune --handle <> --duration <>
51+
```
52+
Where:
53+
- `handle`: Handle of the previously issued tune request, which needs to be retuned
54+
- `duration`: The new duration in milliseconds for the tune request
55+
56+
Example:
57+
```bash
58+
/usr/bin/urmCli --retune --handle 7 --duration 8000
59+
```
60+
61+
### 4. Send a getProp Request
62+
63+
```bash
64+
/usr/bin/urmCli --getProp --key <>
65+
```
66+
Where:
67+
- `key`: The Prop name of which the corresponding value needs to be fetched
68+
69+
Example:
70+
```bash
71+
/usr/bin/urmCli --getProp --key "urm.logging.level"
72+
```
73+
74+
### 5. Send a tuneSignal Request
75+
76+
```bash
77+
/usr/bin/urmCli --signal --scode <>
78+
```
79+
Where:
80+
- `key`: The Prop name of which the corresponding value needs to be fetched
81+
82+
Example:
83+
```bash
84+
/usr/bin/urmCli --signal --scode "0x00fe0ab1"
85+
```
86+
87+
<div style="page-break-after: always;"></div>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
\page extensions Extension Interface Guide
1+
\page extensions_usage Extension Interface Guide
22

33
Refer Plugin.cpp in Examples section, for basic code-guidance.
44

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)