[sdt] Add some tracepoints to sec and hpa modules

This commit is contained in:
Slobodan Predolac 2025-08-07 09:34:30 -07:00 committed by Guangli Dai
parent 67435187d1
commit d70882a05d
3 changed files with 13 additions and 5 deletions

View file

@ -2,7 +2,6 @@
#include "jemalloc/internal/jemalloc_internal_includes.h"
#include "jemalloc/internal/hpdata.h"
#include "jemalloc/internal/jemalloc_probe.h"
static int
hpdata_age_comp(const hpdata_t *a, const hpdata_t *b) {
@ -102,8 +101,6 @@ hpdata_reserve_alloc(hpdata_t *hpdata, size_t sz) {
hpdata->touched_pages, HUGEPAGE_PAGES, result, npages);
fb_set_range(hpdata->touched_pages, HUGEPAGE_PAGES, result, npages);
hpdata->h_ntouched += new_dirty;
JE_USDT(hpa_reserve, 5, npages, hpdata->h_nactive, hpdata->h_ntouched,
new_dirty, largest_unchosen_range);
/*
* If we allocated out of a range that was the longest in the hpdata, it
@ -164,8 +161,6 @@ hpdata_unreserve(hpdata_t *hpdata, void *addr, size_t sz) {
hpdata->h_nactive -= npages;
hpdata_assert_consistent(hpdata);
JE_USDT(hpa_unreserve, 5, npages, hpdata->h_nactive, hpdata->h_ntouched,
old_longest_range, new_range_len);
}
size_t