diff options
author | Alice Frosi <afrosi@redhat.com> | 2023-09-01 10:14:11 +0200 |
---|---|---|
committer | Alice Frosi <afrosi@redhat.com> | 2023-09-01 10:14:11 +0200 |
commit | aecd6adbd2f5ce12437215fe2e64e004d28db86b (patch) | |
tree | 86bbdb3ee0f4e9d3ab6c56805785cc69f9d6557a | |
parent | 75738f0ac9cde3b1aaebd6d700cb9329a419555e (diff) | |
download | seitan-aecd6adbd2f5ce12437215fe2e64e004d28db86b.tar seitan-aecd6adbd2f5ce12437215fe2e64e004d28db86b.tar.gz seitan-aecd6adbd2f5ce12437215fe2e64e004d28db86b.tar.bz2 seitan-aecd6adbd2f5ce12437215fe2e64e004d28db86b.tar.lz seitan-aecd6adbd2f5ce12437215fe2e64e004d28db86b.tar.xz seitan-aecd6adbd2f5ce12437215fe2e64e004d28db86b.tar.zst seitan-aecd6adbd2f5ce12437215fe2e64e004d28db86b.zip |
cooker: print syscall name instead of number
-rw-r--r-- | cooker/emit.c | 2 | ||||
-rw-r--r-- | cooker/filter.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cooker/emit.c b/cooker/emit.c index ce325f1..efe70eb 100644 --- a/cooker/emit.c +++ b/cooker/emit.c @@ -119,7 +119,7 @@ void emit_call(struct gluten_ctx *g, struct context_desc *cdesc, long nr, memcpy(desc->args, offset, sizeof(struct gluten_offset) * count); desc->args[count] = ret_offset; - debug(" %i: OP_CALL: %i, arguments:", g->ip.offset, nr); + debug(" %i: OP_CALL: %s, arguments:", g->ip.offset, syscall_name_str[nr]); for (i = 0; i < count; i++) { debug("\t%i: %s %s%i", i, gluten_offset_name[offset[i].type], is_ptr[i] ? "*" : "", offset[i].offset); diff --git a/cooker/filter.c b/cooker/filter.c index 4a06111..e0c8081 100644 --- a/cooker/filter.c +++ b/cooker/filter.c @@ -126,9 +126,9 @@ void filter_add_check(struct bpf_field *field) check = &entry->field[entry_check_count(entry)]; - debug(" BPF: inserting check at %i for entry %i, syscall %lu", + debug(" BPF: inserting check at %i for entry %i, syscall %s", entry_check_count(entry), call_entry_count(current_nr), - current_nr); + syscall_name_str[current_nr]); memcpy(check, field, sizeof(*field)); } |