Skip to content

Commit

Permalink
Update cpu_watcher.c
Browse files Browse the repository at this point in the history
  • Loading branch information
vvzxy authored Jul 10, 2024
1 parent 605e3e2 commit 29346db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eBPF_Supermarket/CPU_Subsystem/cpu_watcher/cpu_watcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ static int mutrace_print(void *ctx, void *data, unsigned long data_sz) {
static int mutex_detail(){
int fd = bpf_map__fd(mu_skel->maps.mutex_info_map);
u64 key,next_key;
struct mutex_info info;
struct mutex_info_kernel info;
while (bpf_map_get_next_key(fd, &key, &next_key) == 0) {
int err = bpf_map_lookup_elem(fd, &next_key, &info);
printf(" %15llu %15llu %15llu %15llu %15d %15d %20s\n",
Expand Down Expand Up @@ -1190,4 +1190,4 @@ int main(int argc, char **argv)
ring_buffer__free(rb);
mutrace_bpf__destroy(mu_skel);
return err < 0 ? -err : 0;
}
}

0 comments on commit 29346db

Please sign in to comment.