Commit 3504efb2 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 0e2c9a36
...@@ -343,8 +343,8 @@ func tracegen(pkgpath string) error { ...@@ -343,8 +343,8 @@ func tracegen(pkgpath string) error {
buf.emit("\npackage %v", pkg.Pkgi.Pkg.Name()) buf.emit("\npackage %v", pkg.Pkgi.Pkg.Name())
buf.emit("// code generated for tracepoints") buf.emit("// code generated for tracepoints")
buf.emit("\nimport (") buf.emit("\nimport (")
buf.emit("\t\t%q", "lab.nexedi.com/kirr/neo/go/xcommon/tracing") buf.emit("\t%q", "lab.nexedi.com/kirr/neo/go/xcommon/tracing")
buf.emit("\t\t%q", "unsafe") buf.emit("\t%q", "unsafe")
// TODO import all packages for used types // TODO import all packages for used types
buf.emit(")") buf.emit(")")
...@@ -359,9 +359,8 @@ func tracegen(pkgpath string) error { ...@@ -359,9 +359,8 @@ func tracegen(pkgpath string) error {
// TODO export hash // TODO export hash
// code for trace:import imports // code for trace:import imports
buf.emit("")
for _, timport := range pkg.Importv { for _, timport := range pkg.Importv {
buf.emit("// traceimport: %v", timport.PkgPath) buf.emit("\n// traceimport: %v", timport.PkgPath)
impPkgi := lprog.Package(timport.PkgPath) impPkgi := lprog.Package(timport.PkgPath)
if impPkgi == nil { if impPkgi == nil {
......
...@@ -142,4 +142,3 @@ func traceNewHost_Attach(pg *tracing.ProbeGroup, probe func(host *Host)) *tracin ...@@ -142,4 +142,3 @@ func traceNewHost_Attach(pg *tracing.ProbeGroup, probe func(host *Host)) *tracin
tracing.AttachProbe(pg, (**tracing.Probe)(unsafe.Pointer(&_traceNewHost)), &p.Probe) tracing.AttachProbe(pg, (**tracing.Probe)(unsafe.Pointer(&_traceNewHost)), &p.Probe)
return &p.Probe return &p.Probe
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment