Reformat the codebase with the clang-format 18.
This commit is contained in:
@@ -22,8 +22,8 @@ prof_threshold_hook_set(prof_threshold_hook_t hook) {
|
||||
|
||||
prof_threshold_hook_t
|
||||
prof_threshold_hook_get(void) {
|
||||
return (prof_threshold_hook_t)atomic_load_p(&prof_threshold_hook,
|
||||
ATOMIC_ACQUIRE);
|
||||
return (prof_threshold_hook_t)atomic_load_p(
|
||||
&prof_threshold_hook, ATOMIC_ACQUIRE);
|
||||
}
|
||||
|
||||
/* Invoke callback for threshold reached */
|
||||
@@ -32,10 +32,10 @@ prof_threshold_update(tsd_t *tsd) {
|
||||
prof_threshold_hook_t prof_threshold_hook = prof_threshold_hook_get();
|
||||
if (prof_threshold_hook == NULL) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
uint64_t alloc = tsd_thread_allocated_get(tsd);
|
||||
uint64_t dalloc = tsd_thread_deallocated_get(tsd);
|
||||
peak_t *peak = tsd_peakp_get(tsd);
|
||||
peak_t *peak = tsd_peakp_get(tsd);
|
||||
pre_reentrancy(tsd, NULL);
|
||||
prof_threshold_hook(alloc, dalloc, peak->cur_max);
|
||||
post_reentrancy(tsd);
|
||||
@@ -62,8 +62,8 @@ prof_threshold_enabled(void) {
|
||||
}
|
||||
|
||||
te_base_cb_t prof_threshold_te_handler = {
|
||||
.enabled = &prof_threshold_enabled,
|
||||
.new_event_wait = &prof_threshold_new_event_wait,
|
||||
.postponed_event_wait = &prof_threshold_postponed_event_wait,
|
||||
.event_handler = &prof_threshold_event_handler,
|
||||
.enabled = &prof_threshold_enabled,
|
||||
.new_event_wait = &prof_threshold_new_event_wait,
|
||||
.postponed_event_wait = &prof_threshold_postponed_event_wait,
|
||||
.event_handler = &prof_threshold_event_handler,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user