Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
wynyibo committed Jun 23, 2024
1 parent 3f06000 commit abe85e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eBPF_Supermarket/Network_Subsystem/net_watcher/mysql.bpf.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ static __always_inline int __handle_mysql_start(struct pt_regs *ctx) {
struct query_info info;
u32 size = 0;
char *sql;

if (command != COM_QUERY) {
return 0;
}
Expand All @@ -46,7 +46,7 @@ static __always_inline int __handle_mysql_end(struct pt_regs *ctx) {
char comm[16];
pid_t pid = bpf_get_current_pid_tgid() >> 32;
pid_t tid = bpf_get_current_pid_tgid();
struct query_info *info = bpf_map_lookup_elem(&queries, &tsid);
struct query_info *info = bpf_map_lookup_elem(&queries, &tid);
if (!info) {
return 0;
}
Expand Down

0 comments on commit abe85e1

Please sign in to comment.