Bug 1322287

Summary: trace-cmd: No such file or directory Error: expected 'field' but read 'print'
Product: Red Hat Enterprise Linux 6 Reporter: Chunyu Hu <chuhu>
Component: trace-cmdAssignee: John Kacur <jkacur>
Status: CLOSED WONTFIX QA Contact: Chunyu Hu <chuhu>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.8CC: zsun
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-21 21:03:41 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:

Description Chunyu Hu 2016-03-30 08:25:21 UTC
Description of problem:

use trace-cmd to trace syscall:* , when trace-cmd report, it outputs some error message which looks like not good:

 trace-cmd: No such file or directory   Error: expected 'field' but read 'print' 

Version-Release number of selected component (if applicable):

[root@hp-dl360pg8-04 ~]# rpm -q trace-cmd
trace-cmd-2.2.4-3.el6.x86_64
[root@hp-dl360pg8-04 ~]# rpm -q kernel
kernel-2.6.32-627.el6.x86_64


How reproducible:

%100

Steps to Reproduce:
1.trace-cmd record --date -e syscalls:*  dd if=/dev/zero of=/home/world.iso bs=1M count=5

2. [root@hp-dl360pg8-04 ~]# trace-cmd report 2>&1| head
trace-cmd: No such file or directory
  Error: expected 'field' but read 'print'
  Error: expected 'field' but read 'print'
  Error: expected 'field' but read 'print'
  Error: expected 'field' but read 'print'
  Error: expected 'field' but read 'print'
  Error: expected 'field' but read 'print'
  Error: expected 'field' but read 'print'
  Error: expected 'field' but read 'print'
  Error: expected 'field' but read 'print'


Actual results:

Got some Error message

Expected results:

Fix the parser or the mesasge.

Additional info: