bcc: Use bpf_probe_read_str to read tracepoint data_loc field
authorHengqi Chen <chenhengqi@outlook.com>
Mon, 22 Nov 2021 13:49:03 +0000 (21:49 +0800)
committeryonghong-song <ys114321@gmail.com>
Mon, 22 Nov 2021 18:53:44 +0000 (10:53 -0800)
commit6f418aa70365bcd484bdf6edee3aae0d9a28d470
treefd304c6b4f4678dc656a89d6b88d6f4148ab6c95
parente564e6f6ff052bcca47f6966dff4a165950e8502
bcc: Use bpf_probe_read_str to read tracepoint data_loc field

The data_loc field (defined as __string in kernel source) should
be treated as string NOT a fixed-size array, add a new macro
TP_DATA_LOC_READ_STR which use bpf_probe_read_str to reflect this.

Signed-off-by: Hengqi Chen <chenhengqi@outlook.com>
src/cc/export/helpers.h