annotated_d...date_samples(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… annotated_d...date_samples(9) πŸ’…

okay so real talk β€” this is a page from the Kernel API Manual, and it's about one (1) little function that keeps a histogram looking fresh. bestie, it's giving bookkeeping main character energy and honestly? we stan. ✨


🌸 NAME 🌸

annotated_data_type__update_samples β€” update the histogram, that's literally it, that's the whole job 🫢


⭐ SYNOPSIS ⭐

int annotated_data_type__update_samples (struct annotated_data_type *adt
, struct evsel *evsel , int offset , int nr_samples , u64 period );

like, yes, she's a int-returning icon and she takes five args. don't come for her formatting, she's been through a lot 😭


πŸŽ€ ARGUMENTS πŸŽ€

  • adt β€” the data type you're updating. the actual struct annotated_data_type in question πŸ‘‘
  • evsel β€” the event to update. she's the one getting the glow-up ✨
  • offset β€” offset in the type. yes, in the type, keep up πŸ’…
  • nr_samples β€” how many samples are chilling at this offset πŸ”₯
  • period β€” the event count at this offset. numbers. we love numbers πŸ“Š

πŸ¦‹ DESCRIPTION πŸ¦‹

so what she does is update the type histogram at ofs for evsel. periodt. πŸ’–

and here's the part that lowkey matters: samples get aggregated before calling this function, which means it's totally fine to call her with more than one sample at a certain offset. she can handle it. she's built different. no cap 🧚


🌈 SEE ALSO 🌈

also the kernel file ./tools/perf/util/annotate-data.c β€” that's where the magic lives, iykyk πŸ”


and that's the page, bestie!! πŸ“ this lil gem ships out of ./tools/perf/util and it's dated October 2026, so mark your calendars and go update some histograms πŸ’œπŸ‘‘πŸ’€

πŸ“¦ where this page comes from