Bug 601536
| Summary: | execute extend trace.so unsuccessfully | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Caspar Zhang <czhang> | ||||
| Component: | crash-trace-command | Assignee: | Dave Anderson <anderson> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Kernel QE team <kernel-qe> | ||||
| Severity: | urgent | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 6.0 | CC: | laijs, phan, qcai | ||||
| Target Milestone: | rc | Keywords: | Regression | ||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | crash-trace-command-1.0-3.el6 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2010-11-10 20:04:34 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Caspar Zhang
2010-06-08 07:12:24 UTC
*** Bug 601538 has been marked as a duplicate of this bug. *** *** Bug 601539 has been marked as a duplicate of this bug. *** due to network issues, sorry for submitted two duplicated bugzillas, Created attachment 422224 [details]
current RHEL6 crash-trace-command package
Hello Lai, The current crash-trace-command package does not work with RHEL6 kernels (2.6.32 + patches) because of the addition of the "generate trace.dat from core-file" in BZ #592887: https://bugzilla.redhat.com/show_bug.cgi?id=592887#c6 It fails to load because the ftrace_init_event_types() function depends upon a "print_fmt" member in the ftrace_event_call structure, which doesn't exist in RHEL6. Here's what the structure looks like in 2.6.32-30.el6: crash> ftrace_event_call struct ftrace_event_call { struct list_head list; char *name; char *system; struct dentry *dir; struct trace_event *event; int enabled; int (*regfunc)(struct ftrace_event_call *); void (*unregfunc)(struct ftrace_event_call *); int id; int (*raw_init)(struct ftrace_event_call *); int (*show_format)(struct ftrace_event_call *, struct trace_seq *); int (*define_fields)(struct ftrace_event_call *); struct list_head fields; int filter_active; struct event_filter *filter; void *mod; void *data; atomic_t profile_count; int (*profile_enable)(struct ftrace_event_call *); void (*profile_disable)(struct ftrace_event_call *); } SIZE: 176 crash> That patch is called "trace_dump.patch" in the attached src.rpm file. If I remove that patch and rebuild the package, the module loads OK. So the question is: (1) do you want to remove that patch from RHEL6, or (2) would you like to "fix" it for RHEL6? Doing (1) would certainly be the easiest thing to do, but doing (2) would possibly keep the RHEL6 version of trace.c closer to the upstream version. What should be done? Thanks, Dave Hi, Dave, In the newest kernel, the ftrace_event_call structure has the "print_fmt" member. I forgot RHEL6 uses the kernel 2.6.32 which is a little older than I expected. The work of "trace_dump.patch" requires the "print_fmt" member, so I can't fix it for RHEL6 and I choice (1). Thanks a lot. Lai Verified that this bug has been fixed in version -1.0-3.el6 Red Hat Enterprise Linux 6.0 is now available and should resolve the problem described in this bug report. This report is therefore being closed with a resolution of CURRENTRELEASE. You may reopen this bug report if the solution does not work for you. |