Skip to content

Commit

Permalink
update kvm_watcher.c
Browse files Browse the repository at this point in the history
  • Loading branch information
nanshuaibo committed Dec 8, 2023
1 parent 51dddfc commit 6832f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eBPF_Supermarket/kvm_watcher/src/kvm_watcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ int doesVmProcessExist(pid_t pid) {
if (proc_name[size - 1] == '\n') {
proc_name[size - 1] = '\0'; // Remove newline character
}
if (strstr(proc_name, "qemu-system-x86_64") != NULL) {
if (strstr(proc_name, "qemu-system-") != NULL) {
fclose(file);
return 1; // VmProcess name contains the target string
} else {
Expand Down

0 comments on commit 6832f02

Please sign in to comment.