|
|
@@ -309,12 +309,12 @@ void perf_event_batch_output(void *ctx, struct l7_event *e) {
|
|
|
// src_size++;
|
|
|
// }
|
|
|
// bpf_printk("IK...perf_event_batch_output...src=%d", src_size);
|
|
|
- unsigned char *dst = e_buff->data + e_buff->len;
|
|
|
- cw_copy_byte_arrays(src, e_buff->data, e_length);
|
|
|
-// for (int i = 0; i < e_length; i++) { //IK:ERROR: IK: BPF stack limit of 512 bytes is exceeded. Please move large on stack variables into BPF per-cpu array map.
|
|
|
-// // *dst++ = *src++;
|
|
|
-// e_buff->data[i] = src[i];
|
|
|
-// }
|
|
|
+ // unsigned char *dst = e_buff->data + e_buff->len;
|
|
|
+ // cw_copy_byte_arrays(src, e_buff->data, e_length);
|
|
|
+ for (int i = 0; i < e_length; i++) { //IK:ERROR: IK: BPF stack limit of 512 bytes is exceeded. Please move large on stack variables into BPF per-cpu array map.
|
|
|
+ // *dst++ = *src++;
|
|
|
+ e_buff->data[e_length + i] = src[i];
|
|
|
+ }
|
|
|
// int remaining_space = sizeof(e_buff->data) - e_buff->len;
|
|
|
// bpf_printk("IK...perf_event_batch_output...remaining_space=%d", remaining_space);
|
|
|
// if (remaining_space >= e_length) {
|