|
|
@@ -1507,7 +1507,6 @@ func (c *Container) attachJVMUprobes(tracer *ebpftracer.Tracer, pid uint32) erro
|
|
|
if !p.jvmAttachOnce {
|
|
|
p.jvmAttachOnce = true
|
|
|
rootfs := c.getRootfs()
|
|
|
- tracer.InitKProcInfo(pid, &c.AppInfo)
|
|
|
|
|
|
// TODO java Aot
|
|
|
if codeType.IsJvmCode() {
|
|
|
@@ -1546,6 +1545,7 @@ func (c *Container) attachJVMUprobes(tracer *ebpftracer.Tracer, pid uint32) erro
|
|
|
p.uprobes = append(p.uprobes, libNetProbes...)
|
|
|
//p.jvmUprobesChecked = true
|
|
|
c.l7AttachSuccess()
|
|
|
+ tracer.InitKProcInfo(pid, &c.AppInfo)
|
|
|
} else {
|
|
|
klog.Infof("[attach] %s-%d already attach status:%v", codeType.String(), pid, c.Isl7AttachSuccess())
|
|
|
}
|
|
|
@@ -1564,7 +1564,6 @@ func (c *Container) attachJavaAotUprobes(tracer *ebpftracer.Tracer, pid uint32)
|
|
|
if !p.jvmAttachOnce {
|
|
|
p.jvmAttachOnce = true
|
|
|
rootfs := c.getRootfs()
|
|
|
- tracer.InitKProcInfo(pid, &c.AppInfo)
|
|
|
|
|
|
// // TODO java Aot
|
|
|
// if codeType.IsJavaAotCode() {
|
|
|
@@ -1602,6 +1601,7 @@ func (c *Container) attachJavaAotUprobes(tracer *ebpftracer.Tracer, pid uint32)
|
|
|
p.uprobes = append(p.uprobes, libNetProbes...)
|
|
|
//p.jvmUprobesChecked = true
|
|
|
c.l7AttachSuccess()
|
|
|
+ tracer.InitKProcInfo(pid, &c.AppInfo)
|
|
|
} else {
|
|
|
klog.Infof("[attach] %s-%d already attach", codeType.String(), pid)
|
|
|
}
|