(file string, start, end uint64, intelSyntax bool)
| 275 | } |
| 276 | |
| 277 | func (o *internalObjTool) Disasm(file string, start, end uint64, intelSyntax bool) ([]plugin.Inst, error) { |
| 278 | insts, err := o.ObjTool.Disasm(file, start, end, intelSyntax) |
| 279 | if err != nil { |
| 280 | return nil, err |
| 281 | } |
| 282 | var pluginInst []plugin.Inst |
| 283 | for _, inst := range insts { |
| 284 | pluginInst = append(pluginInst, plugin.Inst(inst)) |
| 285 | } |
| 286 | return pluginInst, nil |
| 287 | } |
| 288 | |
| 289 | // internalSymbolizer is a wrapper to map from the pprof external |
| 290 | // interface to the internal interface. |