Commit b70ded5
authored
feat(profiling)!: add Tracepoint sample type (#1676)
# What does this PR do?
ddprof uses "tracepoint"/"events" as the sample type for hardware counters and perf tracepoint events. The v28 enum-based SampleType API had no equivalent, causing those profiles to fall back to "sample"/"count" and breaking the Datadog backend rendering.
Add `SampleType::Tracepoint` mapping to `ValueType::new("tracepoint", "events")`.
# Motivation
Enable usage of libdatadog sample types in ddprof
# Additional Notes
NA
# How to test the change?
sample_type_round_trip_conversion already passes and automatically covers Tracepoint via EnumIter.
Co-authored-by: erwan.viollet <erwan.viollet@datadoghq.com>1 parent 29b010a commit b70ded5
2 files changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
| 141 | + | |
140 | 142 | | |
141 | 143 | | |
142 | 144 | | |
| |||
210 | 212 | | |
211 | 213 | | |
212 | 214 | | |
| 215 | + | |
213 | 216 | | |
214 | 217 | | |
215 | 218 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| |||
376 | 377 | | |
377 | 378 | | |
378 | 379 | | |
| 380 | + | |
379 | 381 | | |
380 | 382 | | |
381 | 383 | | |
| |||
0 commit comments