Summary: | c++ string access tapset | ||
---|---|---|---|
Product: | systemtap | Reporter: | William Cohen <wcohen> |
Component: | tapsets | Assignee: | William Cohen <wcohen> |
Status: | NEW --- | ||
Severity: | normal | CC: | fche |
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: |
Description
William Cohen
2018-10-04 15:47:35 UTC
There are differences between f28 and rhel7, so needed something like the following on rhel7 for the code to work. // Dig through C++ string private fields to find the systemtap script name cmdline_script = @cast(session, "struct systemtap_session")->cmdline_script->_M_dataplus->_M_p if (strlen(user_string2(cmdline_script, "<unavailable>"))){ script = "<cmdline_script>" } else { script_file = @cast(session, "struct systemtap_session")->script_file->_M_dataplus->_M_p script = user_string2(script_file, "<unavailable>") } |