Bug 1447361

Summary: crash-trace-command: 'trace show" cmd reports lots of "Error: expected type 5 but read 0" errors
Product: Red Hat Enterprise Linux 7 Reporter: Dave Anderson <anderson>
Component: crash-trace-commandAssignee: Dave Anderson <anderson>
Status: CLOSED NOTABUG QA Contact: Kernel General QE <kernel-general-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.4CC: xiawu
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1447198 Environment:
Last Closed: 2017-05-02 15:49:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1447198    
Bug Blocks:    

Comment 2 Dave Anderson 2017-05-02 15:37:21 UTC
The "No such file or directory" is not coming as a result of the
exec of the trace-cmd function, but rather is part of the output
of the command itself, which is invoked as this example: 

 trace-cmd report /tmp/crash.trace_dat.Xb0wy6

If I start ftracing "wakeup" on rhel7, it shows the "No such file
or directory" output from "trace-cmd report" before it shows the
ftrace data, so apparently that's not the bug seen in the pegas
kernel:

crash> trace show
trace-cmd: No such file or directory
  [nfsd:read_start] function __builtin_constant_p not defined
  [nfsd:read_opened] function __builtin_constant_p not defined
  [nfsd:read_io_done] function __builtin_constant_p not defined
  [nfsd:read_done] function __builtin_constant_p not defined
  [nfsd:write_start] function __builtin_constant_p not defined
  [nfsd:write_opened] function __builtin_constant_p not defined
  [nfsd:write_io_done] function __builtin_constant_p not defined
  [nfsd:write_done] function __builtin_constant_p not defined
  [sunrpc:xprt_lookup_rqst] function __builtin_constant_p not defined
  [sunrpc:xprt_transmit] function __builtin_constant_p not defined
  [sunrpc:xprt_complete_rqst] function __builtin_constant_p not defined
  [sunrpc:xs_tcp_data_recv] function __builtin_constant_p not defined
  [sunrpc:svc_recv] function __builtin_constant_p not defined
  [sunrpc:svc_defer] function __builtin_constant_p not defined
  [sunrpc:svc_drop] function __builtin_constant_p not defined
  [sunrpc:svc_process] function __builtin_constant_p not defined
  [sunrpc:svc_send] function __builtin_constant_p not defined
  unknown op '->'
  [sunrpc:svc_xprt_do_enqueue] unknown op '->'
  unknown op '->'
  [sunrpc:svc_handle_xprt] unknown op '->'
  [sunrpc:svc_drop_deferred] function __builtin_constant_p not defined
  [sunrpc:svc_revisit_deferred] function __builtin_constant_p not defined
  [libata:ata_qc_complete_internal] function libata_trace_parse_qc_flags not defined
  [libata:ata_qc_complete_failed] function libata_trace_parse_qc_flags not defined
  [libata:ata_qc_complete_done] function libata_trace_parse_qc_flags not defined
  [libata:ata_eh_link_autopsy] function libata_trace_parse_eh_action not defined
  [libata:ata_eh_link_autopsy_qc] function libata_trace_parse_qc_flags not defined
  [ras:extlog_mem_event] function cper_severity_str not defined
  [ras:mc_event] function mc_event_error_type not defined
  [xen:xen_mmu_set_pte] function sizeof not defined
  [xen:xen_mmu_set_pte_atomic] function sizeof not defined
  [xen:xen_mmu_set_domain_pte] function sizeof not defined
  [xen:xen_mmu_set_pte_at] function sizeof not defined
  [xen:xen_mmu_set_pmd] function sizeof not defined
  [xen:xen_mmu_set_pud] function sizeof not defined
  [xen:xen_mmu_set_pgd] function sizeof not defined
  [xen:xen_mmu_ptep_modify_prot_start] function sizeof not defined
  [xen:xen_mmu_ptep_modify_prot_commit] function sizeof not defined
cpus=2
          <idle>-0     [000]  6375.998685: wakeup:               0:120:0  ==+ 10:0:0 [000]
          <idle>-0     [000]  6375.998687: function:             ttwu_do_activate.constprop.92
          <idle>-0     [000]  6375.998687: function:             task_woken_rt
          <idle>-0     [000]  6375.998687: function:             _raw_spin_unlock_irqrestore
          <idle>-0     [000]  6375.998687: function:             ktime_get
          <idle>-0     [000]  6375.998687: function:             hrtimer_forward
          <idle>-0     [000]  6375.998688: function:             _raw_spin_lock
          <idle>-0     [000]  6375.998688: function:             enqueue_hrtimer
          <idle>-0     [000]  6375.998689: function:             __hrtimer_get_next_event
          <idle>-0     [000]  6375.998689: function:             tick_program_event
          <idle>-0     [000]  6375.998689: function:                clockevents_program_event
          <idle>-0     [000]  6375.998690: function:                   ktime_get
          <idle>-0     [000]  6375.998690: function:                   lapic_next_event
          <idle>-0     [000]  6375.998693: function:             irq_exit
          <idle>-0     [000]  6375.998693: function:                idle_cpu
          <idle>-0     [000]  6375.998693: function: 

... [ cut ] ...

           crash-2811  [001]  6611.602846: function:                                  update_curr
           crash-2811  [001]  6611.602847: function:                                  update_cfs_rq_blocked_load
           crash-2811  [001]  6611.602847: function:                                  clear_buddies
           crash-2811  [001]  6611.602847: function:                                  account_entity_dequeue
crash>


I'll close this bugzilla after beaker returns a pegas machine for
me to compare and test with the 4.10 kernel.