Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions scheds/c/scx_flatcg.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ static void fcg_read_stats(struct scx_flatcg *skel, __u64 *stats)
__u32 idx;

memset(stats, 0, sizeof(stats[0]) * FCG_NR_STATS);
memset(cnts, 0, sizeof(cnts));

for (idx = 0; idx < FCG_NR_STATS; idx++) {
int ret, cpu;
Expand Down
1 change: 1 addition & 0 deletions scheds/c/scx_nest.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ static void read_stats(struct scx_nest *skel, u64 *stats)
u32 idx;

memset(stats, 0, sizeof(stats[0]) * NEST_STAT(NR));
memset(cnts, 0, sizeof(cnts));

for (idx = 0; idx < NEST_STAT(NR); idx++) {
int ret, cpu;
Expand Down
Loading