|
|
@@ -156,8 +156,9 @@ func (t *Tracer) AttachTlsUprobes4Java(pid uint32) []link.Link {
|
|
|
//}
|
|
|
|
|
|
prog := t.uprobes["uprobe_HttpURLConnection_setRequestProperty"]
|
|
|
- fmt.Println("t.uprobes[\"uprobe_HttpURLConnection_setRequestProperty\"]", prog)
|
|
|
+ fmt.Println("t.uprobes[\"uprobe_HttpURLConnection_setRequestProperty\"]=", prog)
|
|
|
// 733f8cc7aaa0 fd0 Lsun/net/www/protocol/http/HttpURLConnection;::setRequestProperty
|
|
|
+ // 报错: creating perf_uprobe PMU: token /proc/13096/exe:0x733f8cc7aaa0: opening perf event: invalid argument
|
|
|
link, err := exe.Uprobe("Lsun/net/www/protocol/http/HttpURLConnection;::setRequestProperty", prog, &link.UprobeOptions{Address: 0x733f8cc7aaa0})
|
|
|
if err != nil {
|
|
|
fmt.Println("exe.Uprobe error: ", err) // 报错: TODO: exe.Uprobe error: prog cannot be nil: invalid input
|