Skip to content

Commit 6746742

Browse files
zyczrlubos
authored andcommitted
profiler: Rename profiler to nrf_profiler
Rename profiler module and all its API to nrf_profiler. Jira: NCSDK-14863 Signed-off-by: Jan Zyczkowski <jan.zyczkowski@nordicsemi.no>
1 parent 0e3f4b4 commit 6746742

File tree

95 files changed

+917
-913
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+917
-913
lines changed

.github/test-spec.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
- "samples/bluetooth/direction_finding_*/**/*"
171171
- "include/caf/**/*"
172172
- "include/event_manager.h"
173-
- "include/profiler.h"
173+
- "include/nrf_profiler.h"
174174
- "subsys/bluetooth/*"
175175
- "subsys/caf/**/*"
176176
- "subsys/partition_manager/**/*"
@@ -190,7 +190,7 @@
190190
- "include/caf/**/*"
191191
- "include/sensor/*"
192192
- "include/app_event_manager.h"
193-
- "include/profiler.h"
193+
- "include/nrf_profiler.h"
194194
- "scripts/hid_configurator/**/*"
195195
- "subsys/bluetooth/services/**/*"
196196
- "subsys/bluetooth/*"

CODEOWNERS

+3-3
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Kconfig* @tejlmand
139139
/samples/nrf9160/nrf_cloud_* @plskeggs @jayteemo @glarsennordic
140140
/samples/spm/ @lemrey @hakonfam @SebastianBoe
141141
/samples/openthread/ @lmaciejonczyk @rlubos @edmont @canisLupus1313
142-
/samples/profiler/ @pdunaj
142+
/samples/nrf_profiler/ @pdunaj
143143
/samples/peripheral/radio_test/ @kapi-no
144144
/samples/peripheral/lpuart/ @nordic-krch
145145
/samples/peripheral/802154_phy_test/ @czeslawmakarski
@@ -183,7 +183,7 @@ Kconfig* @tejlmand
183183
/subsys/nrf_rpc/ @doki-nordic @KAGA164
184184
/subsys/partition_manager/ @hakonfam
185185
/subsys/pcd/ @hakonfam
186-
/subsys/profiler/ @pdunaj
186+
/subsys/nrf_profiler/ @pdunaj
187187
/subsys/shell/ @nordic-krch
188188
/subsys/spm/ @SebastianBoe
189189
/subsys/nonsecure/ @SebastianBoe
@@ -223,7 +223,7 @@ Kconfig* @tejlmand
223223
/tests/subsys/net/lib/azure_iot_hub/ @jtguggedal
224224
/tests/subsys/net/lib/fota_download/ @hakonfam @sigvartmh
225225
/tests/subsys/pcd/ @hakonfam @sigvartmh
226-
/tests/subsys/profiler/ @pdunaj @MarekPieta
226+
/tests/subsys/nrf_profiler/ @pdunaj @MarekPieta
227227
/tests/subsys/spm/ @oyvindronningstad @SebastianBoe
228228
/tests/subsys/zigbee/ @tomchy @sebastiandraus
229229
/tests/unity/ @nordic-krch

applications/asset_tracker_v2/src/events/Kconfig

+6-6
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,20 @@ config DEBUG_EVENTS_LOG
4646
bool "Enable logging for debug module events"
4747
default y
4848

49-
if PROFILER
49+
if NRF_PROFILER
5050

5151
choice
52-
prompt "Event type format for profiler"
53-
default PROFILER_EVENT_TYPE_INT
52+
prompt "Event type format for nrf_profiler"
53+
default NRF_PROFILER_EVENT_TYPE_INT
5454

55-
config PROFILER_EVENT_TYPE_STRING
55+
config NRF_PROFILER_EVENT_TYPE_STRING
5656
bool "Event type as string"
5757

58-
config PROFILER_EVENT_TYPE_INT
58+
config NRF_PROFILER_EVENT_TYPE_INT
5959
bool "Event type as integer"
6060

6161
endchoice
6262

63-
endif # PROFILER
63+
endif # NRF_PROFILER
6464

6565
endif # EVENTS

applications/asset_tracker_v2/src/events/app_module_event.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -87,24 +87,24 @@ static void log_event(const struct app_event_header *aeh)
8787
}
8888
}
8989

90-
#if defined(CONFIG_PROFILER)
90+
#if defined(CONFIG_NRF_PROFILER)
9191

9292
static void profile_event(struct log_event_buf *buf,
9393
const struct app_event_header *aeh)
9494
{
9595
const struct app_module_event *event = cast_app_module_event(aeh);
9696

97-
#if defined(CONFIG_PROFILER_EVENT_TYPE_STRING)
98-
profiler_log_encode_string(buf, get_evt_type_str(event->type));
97+
#if defined(CONFIG_NRF_PROFILER_EVENT_TYPE_STRING)
98+
nrf_profiler_log_encode_string(buf, get_evt_type_str(event->type));
9999
#else
100-
profiler_log_encode_uint8(buf, event->type);
100+
nrf_profiler_log_encode_uint8(buf, event->type);
101101
#endif
102102
}
103103

104104
COMMON_APP_EVENT_INFO_DEFINE(app_module_event,
105105
profile_event);
106106

107-
#endif /* CONFIG_PROFILER */
107+
#endif /* CONFIG_NRF_PROFILER */
108108

109109
COMMON_APP_EVENT_TYPE_DEFINE(app_module_event,
110110
log_event,

applications/asset_tracker_v2/src/events/cloud_module_event.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -54,24 +54,24 @@ static void log_event(const struct app_event_header *aeh)
5454
APP_EVENT_MANAGER_LOG(aeh, "%s", get_evt_type_str(event->type));
5555
}
5656

57-
#if defined(CONFIG_PROFILER)
57+
#if defined(CONFIG_NRF_PROFILER)
5858

5959
static void profile_event(struct log_event_buf *buf,
6060
const struct app_event_header *aeh)
6161
{
6262
const struct cloud_module_event *event = cast_cloud_module_event(aeh);
6363

64-
#if defined(CONFIG_PROFILER_EVENT_TYPE_STRING)
65-
profiler_log_encode_string(buf, get_evt_type_str(event->type));
64+
#if defined(CONFIG_NRF_PROFILER_EVENT_TYPE_STRING)
65+
nrf_profiler_log_encode_string(buf, get_evt_type_str(event->type));
6666
#else
67-
profiler_log_encode_uint8(buf, event->type);
67+
nrf_profiler_log_encode_uint8(buf, event->type);
6868
#endif
6969
}
7070

7171
COMMON_APP_EVENT_INFO_DEFINE(cloud_module_event,
7272
profile_event);
7373

74-
#endif /* CONFIG_PROFILER */
74+
#endif /* CONFIG_NRF_PROFILER */
7575

7676
COMMON_APP_EVENT_TYPE_DEFINE(cloud_module_event,
7777
log_event,

applications/asset_tracker_v2/src/events/common_module_event.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
#define _COMMON_MODULE_EVENT_H_
1313

1414
#define COMMON_EVENT_TYPES \
15-
COND_CODE_1(CONFIG_PROFILER_EVENT_TYPE_STRING, \
16-
(PROFILER_ARG_STRING), \
17-
(PROFILER_ARG_U8)), \
15+
COND_CODE_1(CONFIG_NRF_PROFILER_EVENT_TYPE_STRING, \
16+
(NRF_PROFILER_ARG_STRING), \
17+
(NRF_PROFILER_ARG_U8)), \
1818

1919
#define COMMON_APP_EVENT_INFO_DEFINE(ename, profile_func) \
2020
APP_EVENT_INFO_DEFINE(ename, \
@@ -25,7 +25,7 @@
2525
#define COMMON_APP_EVENT_TYPE_DEFINE(ename, log_fn, ev_info_struct, flags) \
2626
APP_EVENT_TYPE_DEFINE(ename, \
2727
log_fn, \
28-
COND_CODE_1(CONFIG_PROFILER, \
28+
COND_CODE_1(CONFIG_NRF_PROFILER, \
2929
(ev_info_struct), \
3030
(NULL)), \
3131
flags)

applications/asset_tracker_v2/src/events/data_module_event.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -57,24 +57,24 @@ static void log_event(const struct app_event_header *aeh)
5757
}
5858
}
5959

60-
#if defined(CONFIG_PROFILER)
60+
#if defined(CONFIG_NRF_PROFILER)
6161

6262
static void profile_event(struct log_event_buf *buf,
6363
const struct app_event_header *aeh)
6464
{
6565
const struct data_module_event *event = cast_data_module_event(aeh);
6666

67-
#if defined(CONFIG_PROFILER_EVENT_TYPE_STRING)
68-
profiler_log_encode_string(buf, get_evt_type_str(event->type));
67+
#if defined(CONFIG_NRF_PROFILER_EVENT_TYPE_STRING)
68+
nrf_profiler_log_encode_string(buf, get_evt_type_str(event->type));
6969
#else
70-
profiler_log_encode_uint8(buf, event->type);
70+
nrf_profiler_log_encode_uint8(buf, event->type);
7171
#endif
7272
}
7373

7474
COMMON_APP_EVENT_INFO_DEFINE(data_module_event,
7575
profile_event);
7676

77-
#endif /* CONFIG_PROFILER */
77+
#endif /* CONFIG_NRF_PROFILER */
7878

7979
COMMON_APP_EVENT_TYPE_DEFINE(data_module_event,
8080
log_event,

applications/asset_tracker_v2/src/events/debug_module_event.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -32,24 +32,24 @@ static void log_event(const struct app_event_header *aeh)
3232
APP_EVENT_MANAGER_LOG(aeh, "%s", get_evt_type_str(event->type));
3333
}
3434

35-
#if defined(CONFIG_PROFILER)
35+
#if defined(CONFIG_NRF_PROFILER)
3636

3737
static void profile_event(struct log_event_buf *buf,
3838
const struct app_event_header *aeh)
3939
{
4040
const struct debug_module_event *event = cast_debug_module_event(aeh);
4141

42-
#if defined(CONFIG_PROFILER_EVENT_TYPE_STRING)
43-
profiler_log_encode_string(buf, get_evt_type_str(event->type));
42+
#if defined(CONFIG_NRF_PROFILER_EVENT_TYPE_STRING)
43+
nrf_profiler_log_encode_string(buf, get_evt_type_str(event->type));
4444
#else
45-
profiler_log_encode_uint8(buf, event->type);
45+
nrf_profiler_log_encode_uint8(buf, event->type);
4646
#endif
4747
}
4848

4949
COMMON_APP_EVENT_INFO_DEFINE(debug_module_event,
5050
profile_event);
5151

52-
#endif /* CONFIG_PROFILER */
52+
#endif /* CONFIG_NRF_PROFILER */
5353

5454
COMMON_APP_EVENT_TYPE_DEFINE(debug_module_event,
5555
log_event,

applications/asset_tracker_v2/src/events/gnss_module_event.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -43,24 +43,24 @@ static void log_event(const struct app_event_header *aeh)
4343
}
4444
}
4545

46-
#if defined(CONFIG_PROFILER)
46+
#if defined(CONFIG_NRF_PROFILER)
4747

4848
static void profile_event(struct log_event_buf *buf,
4949
const struct app_event_header *aeh)
5050
{
5151
const struct gnss_module_event *event = cast_gnss_module_event(aeh);
5252

53-
#if defined(CONFIG_PROFILER_EVENT_TYPE_STRING)
54-
profiler_log_encode_string(buf, get_evt_type_str(event->type));
53+
#if defined(CONFIG_NRF_PROFILER_EVENT_TYPE_STRING)
54+
nrf_profiler_log_encode_string(buf, get_evt_type_str(event->type));
5555
#else
56-
profiler_log_encode_uint8(buf, event->type);
56+
nrf_profiler_log_encode_uint8(buf, event->type);
5757
#endif
5858
}
5959

6060
COMMON_APP_EVENT_INFO_DEFINE(gnss_module_event,
6161
profile_event);
6262

63-
#endif /* CONFIG_PROFILER */
63+
#endif /* CONFIG_NRF_PROFILER */
6464

6565
COMMON_APP_EVENT_TYPE_DEFINE(gnss_module_event,
6666
log_event,

applications/asset_tracker_v2/src/events/modem_module_event.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -71,24 +71,24 @@ static void log_event(const struct app_event_header *aeh)
7171
}
7272
}
7373

74-
#if defined(CONFIG_PROFILER)
74+
#if defined(CONFIG_NRF_PROFILER)
7575

7676
static void profile_event(struct log_event_buf *buf,
7777
const struct app_event_header *aeh)
7878
{
7979
const struct modem_module_event *event = cast_modem_module_event(aeh);
8080

81-
#if defined(CONFIG_PROFILER_EVENT_TYPE_STRING)
82-
profiler_log_encode_string(buf, get_evt_type_str(event->type));
81+
#if defined(CONFIG_NRF_PROFILER_EVENT_TYPE_STRING)
82+
nrf_profiler_log_encode_string(buf, get_evt_type_str(event->type));
8383
#else
84-
profiler_log_encode_uint8(buf, event->type);
84+
nrf_profiler_log_encode_uint8(buf, event->type);
8585
#endif
8686
}
8787

8888
COMMON_APP_EVENT_INFO_DEFINE(modem_module_event,
8989
profile_event);
9090

91-
#endif /* CONFIG_PROFILER */
91+
#endif /* CONFIG_NRF_PROFILER */
9292

9393
COMMON_APP_EVENT_TYPE_DEFINE(modem_module_event,
9494
log_event,

applications/asset_tracker_v2/src/events/sensor_module_event.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -46,24 +46,24 @@ static void log_event(const struct app_event_header *aeh)
4646
}
4747
}
4848

49-
#if defined(CONFIG_PROFILER)
49+
#if defined(CONFIG_NRF_PROFILER)
5050

5151
static void profile_event(struct log_event_buf *buf,
5252
const struct app_event_header *aeh)
5353
{
5454
const struct sensor_module_event *event = cast_sensor_module_event(aeh);
5555

56-
#if defined(CONFIG_PROFILER_EVENT_TYPE_STRING)
57-
profiler_log_encode_string(buf, get_evt_type_str(event->type));
56+
#if defined(CONFIG_NRF_PROFILER_EVENT_TYPE_STRING)
57+
nrf_profiler_log_encode_string(buf, get_evt_type_str(event->type));
5858
#else
59-
profiler_log_encode_uint8(buf, event->type);
59+
nrf_profiler_log_encode_uint8(buf, event->type);
6060
#endif
6161
}
6262

6363
COMMON_APP_EVENT_INFO_DEFINE(sensor_module_event,
6464
profile_event);
6565

66-
#endif /* CONFIG_PROFILER */
66+
#endif /* CONFIG_NRF_PROFILER */
6767

6868
COMMON_APP_EVENT_TYPE_DEFINE(sensor_module_event,
6969
log_event,

applications/asset_tracker_v2/src/events/ui_module_event.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,24 @@ static void log_event(const struct app_event_header *aeh)
3535
}
3636
}
3737

38-
#if defined(CONFIG_PROFILER)
38+
#if defined(CONFIG_NRF_PROFILER)
3939

4040
static void profile_event(struct log_event_buf *buf,
4141
const struct app_event_header *aeh)
4242
{
4343
const struct ui_module_event *event = cast_ui_module_event(aeh);
4444

45-
#if defined(CONFIG_PROFILER_EVENT_TYPE_STRING)
46-
profiler_log_encode_string(buf, get_evt_type_str(event->type));
45+
#if defined(CONFIG_NRF_PROFILER_EVENT_TYPE_STRING)
46+
nrf_profiler_log_encode_string(buf, get_evt_type_str(event->type));
4747
#else
48-
profiler_log_encode_uint8(buf, event->type);
48+
nrf_profiler_log_encode_uint8(buf, event->type);
4949
#endif
5050
}
5151

5252
COMMON_APP_EVENT_INFO_DEFINE(ui_module_event,
5353
profile_event);
5454

55-
#endif /* CONFIG_PROFILER */
55+
#endif /* CONFIG_NRF_PROFILER */
5656

5757
COMMON_APP_EVENT_TYPE_DEFINE(ui_module_event,
5858
log_event,

applications/asset_tracker_v2/src/events/util_module_event.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,24 @@ static void log_event(const struct app_event_header *aeh)
2626
APP_EVENT_MANAGER_LOG(aeh, "%s", get_evt_type_str(event->type));
2727
}
2828

29-
#if defined(CONFIG_PROFILER)
29+
#if defined(CONFIG_NRF_PROFILER)
3030

3131
static void profile_event(struct log_event_buf *buf,
3232
const struct app_event_header *aeh)
3333
{
3434
const struct util_module_event *event = cast_util_module_event(aeh);
3535

36-
#if defined(CONFIG_PROFILER_EVENT_TYPE_STRING)
37-
profiler_log_encode_string(buf, get_evt_type_str(event->type));
36+
#if defined(CONFIG_NRF_PROFILER_EVENT_TYPE_STRING)
37+
nrf_profiler_log_encode_string(buf, get_evt_type_str(event->type));
3838
#else
39-
profiler_log_encode_uint8(buf, event->type);
39+
nrf_profiler_log_encode_uint8(buf, event->type);
4040
#endif
4141
}
4242

4343
COMMON_APP_EVENT_INFO_DEFINE(util_module_event,
4444
profile_event);
4545

46-
#endif /* CONFIG_PROFILER */
46+
#endif /* CONFIG_NRF_PROFILER */
4747

4848
COMMON_APP_EVENT_TYPE_DEFINE(util_module_event,
4949
log_event,

applications/machine_learning/src/events/ml_result_event.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ static void profile_ml_result_signin_event(struct log_event_buf *buf,
3636
{
3737
const struct ml_result_signin_event *event = cast_ml_result_signin_event(aeh);
3838

39-
profiler_log_encode_uint32(buf, event->module_idx);
40-
profiler_log_encode_uint8(buf, event->state);
39+
nrf_profiler_log_encode_uint32(buf, event->module_idx);
40+
nrf_profiler_log_encode_uint8(buf, event->state);
4141
}
4242

4343
APP_EVENT_INFO_DEFINE(ml_result_event,
@@ -53,7 +53,7 @@ APP_EVENT_TYPE_DEFINE(ml_result_event,
5353
(APP_EVENT_TYPE_FLAGS_INIT_LOG_ENABLE))));
5454

5555
APP_EVENT_INFO_DEFINE(ml_result_signin_event,
56-
ENCODE(PROFILER_ARG_U32, PROFILER_ARG_U8),
56+
ENCODE(NRF_PROFILER_ARG_U32, NRF_PROFILER_ARG_U8),
5757
ENCODE("module", "state"),
5858
profile_ml_result_signin_event);
5959

0 commit comments

Comments
 (0)