|
|
@@ -160,7 +160,12 @@ func (t *Tracer) AttachTlsUprobes4Java(pid uint32) []link.Link {
|
|
|
// 733f8cc7aaa0 fd0 Lsun/net/www/protocol/http/HttpURLConnection;::setRequestProperty
|
|
|
// 报错: creating perf_uprobe PMU: token /proc/13096/exe:0x733f8cc7aaa0: opening perf event: invalid argument
|
|
|
// &link.UprobeOptions{Address: 0x733f8cc7aaa0, Offset: 0xfd0, PID: 13096}
|
|
|
- // 733f8cc7aaa0(16进制) -> 126716782029472(10进制)
|
|
|
+ // 733f8cc7aaa0(16进制) -> 126716782029472(10进制),很进制无关系, 报一样的错误....
|
|
|
+
|
|
|
+ // u, err := ex.uprobe(symbol, prog, opts, false)
|
|
|
+ //var pe *link.perfEvent
|
|
|
+ //pe, err = exe.uprobe("Lsun/net/www/protocol/http/HttpURLConnection;::setRequestProperty", prog, &link.UprobeOptions{Address: 126716782029472}, false)
|
|
|
+
|
|
|
link, err := exe.Uprobe("Lsun/net/www/protocol/http/HttpURLConnection;::setRequestProperty", prog, &link.UprobeOptions{Address: 126716782029472})
|
|
|
if err != nil {
|
|
|
fmt.Println("exe.Uprobe error: ", err) // 报错: TODO: exe.Uprobe error: prog cannot be nil: invalid input
|