Bug 502889 - btreplay cannot work with trace/replay files made for /dev/cciss/c0d0 device
Summary: btreplay cannot work with trace/replay files made for /dev/cciss/c0d0 device
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: blktrace
Version: 5.4
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Edward Shishkin
QA Contact: BaseOS QE
URL:
Whiteboard:
: 707489 (view as bug list)
Depends On:
Blocks: 650229
TreeView+ depends on / blocked
 
Reported: 2009-05-27 16:05 UTC by Milos Malik
Modified: 2016-06-06 11:31 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 650229 (view as bug list)
Environment:
Last Closed: 2014-06-02 13:06:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Milos Malik 2009-05-27 16:05:35 UTC
Description of problem:
btreplay complains when executed with "cciss_c0d0"
btreplay complains when executed with "cciss/c0d0"
btreplay complains when executed with "/dev/cciss/c0d0"

Version-Release number of selected component (if applicable):
RHEL5.4-Server-20090513.nightly
kernel-2.6.18-146.el5
blktrace-1.0.0-6.el5

How reproducible:
always

Steps to Reproduce:
# mount -t debugfs debugfs /sys/kernel/debug/
# blktrace -w 60 -d /dev/cciss/c0d0 -a queue
Device: /dev/cciss/c0d0
  CPU  0:                    0 events,        4 KiB data
  CPU  1:                    0 events,        3 KiB data
  CPU  2:                    0 events,        1 KiB data
  CPU  3:                    0 events,        0 KiB data
  CPU  4:                    0 events,        0 KiB data
  CPU  5:                    0 events,        0 KiB data
  CPU  6:                    0 events,        0 KiB data
  CPU  7:                    0 events,        0 KiB data
  CPU  8:                    0 events,        0 KiB data
  CPU  9:                    0 events,        0 KiB data
  CPU 10:                    0 events,        1 KiB data
  CPU 11:                    0 events,        0 KiB data
  CPU 12:                    0 events,        0 KiB data
  CPU 13:                    0 events,        0 KiB data
  CPU 14:                    0 events,        0 KiB data
  CPU 15:                    0 events,        0 KiB data
  Total:                     0 events (dropped 0),        7 KiB data
# ls -l *.blktrace.*
-rw-r--r-- 1 root root 3680 May 27 11:47 cciss_c0d0.blktrace.0
-rw-r--r-- 1 root root 2240 May 27 11:47 cciss_c0d0.blktrace.1
-rw-r--r-- 1 root root  416 May 27 11:47 cciss_c0d0.blktrace.10
-rw-r--r-- 1 root root    0 May 27 11:47 cciss_c0d0.blktrace.11
-rw-r--r-- 1 root root    0 May 27 11:47 cciss_c0d0.blktrace.12
-rw-r--r-- 1 root root    0 May 27 11:47 cciss_c0d0.blktrace.13
-rw-r--r-- 1 root root    0 May 27 11:47 cciss_c0d0.blktrace.14
-rw-r--r-- 1 root root    0 May 27 11:47 cciss_c0d0.blktrace.15
-rw-r--r-- 1 root root  512 May 27 11:47 cciss_c0d0.blktrace.2
-rw-r--r-- 1 root root    0 May 27 11:47 cciss_c0d0.blktrace.3
-rw-r--r-- 1 root root    0 May 27 11:47 cciss_c0d0.blktrace.4
-rw-r--r-- 1 root root    0 May 27 11:47 cciss_c0d0.blktrace.5
-rw-r--r-- 1 root root    0 May 27 11:47 cciss_c0d0.blktrace.6
-rw-r--r-- 1 root root    0 May 27 11:47 cciss_c0d0.blktrace.7
-rw-r--r-- 1 root root    0 May 27 11:47 cciss_c0d0.blktrace.8
-rw-r--r-- 1 root root    0 May 27 11:47 cciss_c0d0.blktrace.9
# btrecord -v cciss_c0d0
        ./cciss_c0d0.replay.0: 10000 0 0 0
        ./cciss_c0d0.replay.0: 10000 eebe744567504b4d 3 b
cciss_c0d0:0: 69 pkts (tot), 19 pkts (replay), 4 bunches, 4.8 pkts/bunch
        ./cciss_c0d0.replay.1: 10000 0 0 0
        ./cciss_c0d0.replay.1: 10000 eebe7442e7b77d9a 1 8
cciss_c0d0:1: 42 pkts (tot), 13 pkts (replay), 2 bunches, 6.5 pkts/bunch
        ./cciss_c0d0.replay.2: 10000 0 0 0
        ./cciss_c0d0.replay.2: 10000 eebe7442e7c0c742 1 1
cciss_c0d0:2: 10 pkts (tot), 2 pkts (replay), 2 bunches, 1.0 pkts/bunch
        ./cciss_c0d0.replay.3: 10000 0 0 0
        ./cciss_c0d0.replay.3: 10000 0 0 0
        ./cciss_c0d0.replay.4: 10000 0 0 0
        ./cciss_c0d0.replay.4: 10000 0 0 0
        ./cciss_c0d0.replay.5: 10000 0 0 0
        ./cciss_c0d0.replay.5: 10000 0 0 0
        ./cciss_c0d0.replay.6: 10000 0 0 0
        ./cciss_c0d0.replay.6: 10000 0 0 0
        ./cciss_c0d0.replay.7: 10000 0 0 0
        ./cciss_c0d0.replay.7: 10000 0 0 0
        ./cciss_c0d0.replay.8: 10000 0 0 0
        ./cciss_c0d0.replay.8: 10000 0 0 0
        ./cciss_c0d0.replay.9: 10000 0 0 0
        ./cciss_c0d0.replay.9: 10000 0 0 0
        ./cciss_c0d0.replay.10: 10000 0 0 0
        ./cciss_c0d0.replay.10: 10000 eebe7445471f024e 0 0
cciss_c0d0:10: 8 pkts (tot), 2 pkts (replay), 1 bunches, 2.0 pkts/bunch
        ./cciss_c0d0.replay.11: 10000 0 0 0
        ./cciss_c0d0.replay.11: 10000 0 0 0
        ./cciss_c0d0.replay.12: 10000 0 0 0
        ./cciss_c0d0.replay.12: 10000 0 0 0
        ./cciss_c0d0.replay.13: 10000 0 0 0
        ./cciss_c0d0.replay.13: 10000 0 0 0
        ./cciss_c0d0.replay.14: 10000 0 0 0
        ./cciss_c0d0.replay.14: 10000 0 0 0
        ./cciss_c0d0.replay.15: 10000 0 0 0
        ./cciss_c0d0.replay.15: 10000 0 0 0
# ls -l *.replay.*
-rw-r--r-- 1 root root 552 May 27 11:47 cciss_c0d0.replay.0
-rw-r--r-- 1 root root 703 May 27 11:47 cciss_c0d0.replay.0.rec
-rw-r--r-- 1 root root 376 May 27 11:47 cciss_c0d0.replay.1
-rw-r--r-- 1 root root  96 May 27 11:47 cciss_c0d0.replay.10
-rw-r--r-- 1 root root 107 May 27 11:47 cciss_c0d0.replay.10.rec
-rw-r--r-- 1 root root  32 May 27 11:47 cciss_c0d0.replay.11
-rw-r--r-- 1 root root   0 May 27 11:47 cciss_c0d0.replay.11.rec
-rw-r--r-- 1 root root  32 May 27 11:47 cciss_c0d0.replay.12
-rw-r--r-- 1 root root   0 May 27 11:47 cciss_c0d0.replay.12.rec
-rw-r--r-- 1 root root  32 May 27 11:47 cciss_c0d0.replay.13
-rw-r--r-- 1 root root   0 May 27 11:47 cciss_c0d0.replay.13.rec
-rw-r--r-- 1 root root  32 May 27 11:47 cciss_c0d0.replay.14
-rw-r--r-- 1 root root   0 May 27 11:47 cciss_c0d0.replay.14.rec
-rw-r--r-- 1 root root  32 May 27 11:47 cciss_c0d0.replay.15
-rw-r--r-- 1 root root   0 May 27 11:47 cciss_c0d0.replay.15.rec
-rw-r--r-- 1 root root 439 May 27 11:47 cciss_c0d0.replay.1.rec
-rw-r--r-- 1 root root 112 May 27 11:47 cciss_c0d0.replay.2
-rw-r--r-- 1 root root 164 May 27 11:47 cciss_c0d0.replay.2.rec
-rw-r--r-- 1 root root  32 May 27 11:47 cciss_c0d0.replay.3
-rw-r--r-- 1 root root   0 May 27 11:47 cciss_c0d0.replay.3.rec
-rw-r--r-- 1 root root  32 May 27 11:47 cciss_c0d0.replay.4
-rw-r--r-- 1 root root   0 May 27 11:47 cciss_c0d0.replay.4.rec
-rw-r--r-- 1 root root  32 May 27 11:47 cciss_c0d0.replay.5
-rw-r--r-- 1 root root   0 May 27 11:47 cciss_c0d0.replay.5.rec
-rw-r--r-- 1 root root  32 May 27 11:47 cciss_c0d0.replay.6
-rw-r--r-- 1 root root   0 May 27 11:47 cciss_c0d0.replay.6.rec
-rw-r--r-- 1 root root  32 May 27 11:47 cciss_c0d0.replay.7
-rw-r--r-- 1 root root   0 May 27 11:47 cciss_c0d0.replay.7.rec
-rw-r--r-- 1 root root  32 May 27 11:47 cciss_c0d0.replay.8
-rw-r--r-- 1 root root   0 May 27 11:47 cciss_c0d0.replay.8.rec
-rw-r--r-- 1 root root  32 May 27 11:47 cciss_c0d0.replay.9
-rw-r--r-- 1 root root   0 May 27 11:47 cciss_c0d0.replay.9.rec
# btreplay -N -v -I 10 cciss_c0d0
Added ./cciss_c0d0.replay.0 17203315468036754253
Added ./cciss_c0d0.replay.1 17203315457306099098
Added ./cciss_c0d0.replay.2 17203315457306707778
/dev/cciss_c0d0: No such file or directory
Failed device open
# btreplay -N -v -I 10 cciss/c0d0
No traces found for cciss/c0d0
# btreplay -N -v -I 10 /dev/cciss/c0d0
 
No traces found for /dev/cciss/c0d0
#
  
Actual results:
btreplay cannot work with trace/replay files made for /dev/cciss/c0d0

Expected results:
btreplay is able work with trace/replay files made for /dev/cciss/c0d0

Additional info:
# cat /proc/partitions 
major minor  #blocks  name

 104     0   71652960 cciss/c0d0
 104     1     102400 cciss/c0d0p1
 104     2   71550526 cciss/c0d0p2
 104    16   71652960 cciss/c0d1
 104    17   71652926 cciss/c0d1p1
 104    32   71652960 cciss/c0d2
 104    33   71652926 cciss/c0d2p1
 105     0  429923497 cciss/c1d0
 105     1  429923464 cciss/c1d0p1
   9     0  644778752 md0
 253     0  640581632 dm-0
 253     1    4194304 dm-1

Comment 2 Eric Sandeen 2009-07-02 16:43:41 UTC
Some of the later bugs for blktrace didn't make it for RHEL5.4, but we can get to them in RHEL5.5.

Thanks,
-Eric

Comment 3 RHEL Program Management 2009-11-06 19:24:48 UTC
This request was evaluated by Red Hat Product Management for
inclusion, but this component is not scheduled to be updated in
the current Red Hat Enterprise Linux release. If you would like
this request to be reviewed for the next minor release, ask your
support representative to set the next rhel-x.y flag to "?".

Comment 4 Edward Shishkin 2009-12-16 16:24:23 UTC
The Bug:
Missed back conversion of underscores to slashes.

Solution:
Convert underscores to slashes to restore device
names that have larger paths.

The patch was sent to the upstream.

Comment 5 Edward Shishkin 2010-05-17 12:16:35 UTC
Pointer to the upstream post:

http://marc.info/?l=linux-btrace&m=126089937023212&w=2

Comment 7 RHEL Program Management 2010-08-09 19:45:13 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 8 Milos Malik 2011-05-25 09:07:42 UTC
*** Bug 707489 has been marked as a duplicate of this bug. ***

Comment 10 RHEL Program Management 2011-09-23 00:46:38 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 11 RHEL Program Management 2013-05-01 07:12:08 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 12 RHEL Program Management 2014-03-07 12:43:03 UTC
This bug/component is not included in scope for RHEL-5.11.0 which is the last RHEL5 minor release. This Bugzilla will soon be CLOSED as WONTFIX (at the end of RHEL5.11 development phase (Apr 22, 2014)). Please contact your account manager or support representative in case you need to escalate this bug.

Comment 13 RHEL Program Management 2014-06-02 13:06:39 UTC
Thank you for submitting this request for inclusion in Red Hat Enterprise Linux 5. We've carefully evaluated the request, but are unable to include it in RHEL5 stream. If the issue is critical for your business, please provide additional business justification through the appropriate support channels (https://access.redhat.com/site/support).


Note You need to log in before you can comment on or make changes to this bug.