We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c51f87 commit 7d1405cCopy full SHA for 7d1405c
tools/perf/builtin-record.c
@@ -1954,7 +1954,8 @@ static void record__read_lost_samples(struct record *rec)
1954
1955
if (count.lost) {
1956
if (!lost) {
1957
- lost = zalloc(PERF_SAMPLE_MAX_SIZE);
+ lost = zalloc(sizeof(*lost) +
1958
+ session->machines.host.id_hdr_size);
1959
1960
pr_debug("Memory allocation failed\n");
1961
return;
@@ -1970,7 +1971,8 @@ static void record__read_lost_samples(struct record *rec)
1970
1971
lost_count = perf_bpf_filter__lost_count(evsel);
1972
if (lost_count) {
1973
1974
1975
1976
1977
1978
0 commit comments