|
@@ -7,7 +7,6 @@
|
|
|
// #include "bpf_base.h"
|
|
// #include "bpf_base.h"
|
|
|
// #define ROCK_MAX_BUFFER_SIZE 65536
|
|
// #define ROCK_MAX_BUFFER_SIZE 65536
|
|
|
|
|
|
|
|
-static long (*bpf_probe_read_user_str)(void *dst, __u32 size, const void *unsafe_ptr) = (void *) 114;
|
|
|
|
|
#define ROCK_MAX_LEN 1022
|
|
#define ROCK_MAX_LEN 1022
|
|
|
|
|
|
|
|
struct sock_t {
|
|
struct sock_t {
|
|
@@ -126,6 +125,9 @@ int uprobe_Java_sun_nio_ch_FileDispatcherImpl_read0(struct pt_regs *ctx) {
|
|
|
return 0;
|
|
return 0;
|
|
|
// struct apm_span_context cw_parent_span_context = {};
|
|
// struct apm_span_context cw_parent_span_context = {};
|
|
|
struct apm_span_context *cw_parent_span_context = bpf_map_lookup_elem(&apm_span_context_heap, &key);
|
|
struct apm_span_context *cw_parent_span_context = bpf_map_lookup_elem(&apm_span_context_heap, &key);
|
|
|
|
|
+ if (cw_parent_span_context == NULL){
|
|
|
|
|
+ return -1;
|
|
|
|
|
+ }
|
|
|
if(offset > 0 && offset < 512 - 123)
|
|
if(offset > 0 && offset < 512 - 123)
|
|
|
{
|
|
{
|
|
|
__builtin_memcpy(data, &(map_data->payload[offset]), 123);
|
|
__builtin_memcpy(data, &(map_data->payload[offset]), 123);
|