Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1987578 Details for
Bug 2177196
semantic error: unable to find member 'request' for struct scsi_cmnd - rawhide
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh92 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Proposed patch to assess request struct and timeout info on 5.17 and newer kernels
scsi-rawhidev4.patch (text/plain), 2.30 KB, created by
William Cohen
on 2023-09-07 17:33:25 UTC
(
hide
)
Description:
Proposed patch to assess request struct and timeout info on 5.17 and newer kernels
Filename:
MIME Type:
Creator:
William Cohen
Created:
2023-09-07 17:33:25 UTC
Size:
2.30 KB
patch
obsolete
>diff --git a/tapset/linux/scsi.stp b/tapset/linux/scsi.stp >index 5359fe817..d516dbf03 100644 >--- a/tapset/linux/scsi.stp >+++ b/tapset/linux/scsi.stp >@@ -47,6 +47,22 @@ function describe_device_state:string(state:long) > default: strlcpy(STAP_RETVALUE, "[INVALID]", MAXSTRINGLEN); > } > %} >+ >+@__private30 function scsi_cmd_to_rq:long(cmd:long) >+%{ >+ struct scsi_cmnd *scmd = (struct scsi_cmnd *) STAP_ARG_cmd; >+ STAP_RETVALUE = (int64_t) scsi_cmd_to_rq(scmd); >+%} >+ >+function get_scsi_request:long(scsi_cmd:long) >+{ >+ if (@defined(@cast(scsi_cmd, "struct_cmnd", "kernel:scsi_mod")->request)) { >+ return @cast(scsi_cmd, "struct_cmnd *", "kernel:scsi_mod")->request >+ }else { >+ return scsi_cmd_to_rq(scsi_cmd) >+ } >+} >+ > /** > * probe scsi.ioentry - Prepares a SCSI mid-layer request > * @disk_major: The major number of the disk (-1 if no information) >@@ -108,7 +124,7 @@ probe scsi.iodispatching > $cmd->request_buffer) > request_bufflen = @choose_defined($cmd->sdb->length, > $cmd->request_bufflen) >- req_addr = $cmd->request >+ req_addr = get_scsi_request($cmd) > } > > /** >@@ -142,7 +158,7 @@ probe scsi.iodone > device_state_str = describe_device_state(device_state) > data_direction = $cmd->sc_data_direction > data_direction_str = describe_data_direction(data_direction) >- req_addr = $cmd->request >+ req_addr = get_scsi_request($cmd) > scsi_timer_pending = scsi_timer_pending($cmd); > } > >@@ -173,7 +189,7 @@ probe scsi.iocompleted > device_state_str = describe_device_state(device_state) > data_direction = $cmd->sc_data_direction > data_direction_str = describe_data_direction(data_direction) >- req_addr = $cmd->request >+ req_addr = get_scsi_request($cmd) > goodbytes = $good_bytes > } > >@@ -183,10 +199,16 @@ function timer_pending:long(timer:long) > @cast(timer, "timer_list", "kernel")->base) != 0) > } > >+@__private30 function cmd_request_timer_pending:long(cmd:long) >+{ >+ request = get_scsi_request(&@cast(cmd, "scsi_cmnd", "kernel")) >+ return timer_pending(&@cast(request, "request", "kernel")->q->timeout) >+} >+ > function scsi_timer_pending:long(cmd:long) > { > %( kernel_v >= "2.6.28" %? >- return timer_pending(&@cast(cmd, "scsi_cmnd", "kernel:scsi_mod")->request->q->timeout) >+ return cmd_request_timer_pending(cmd) > %: > return timer_pending(&@cast(cmd, "scsi_cmnd", "kernel:scsi_mod")->eh_timeout) > %)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 2177196
: 1987578