Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | systemtap: Cross compilation fix |
| 2 | |
| 3 | This is a cross compilation fix. It allows systemtap to find |
| 4 | the kernel map file in the right place, i.e. in the kernel build tree. |
| 5 | Without this fix it takes a map file from the build host, if available. |
| 6 | |
| 7 | Upstream-Status: Pending |
| 8 | |
| 9 | Signed-off-by: Mikhail Durnev <mikhail_durnev@mentor.com> |
| 10 | |
| 11 | Index: git/session.cxx |
| 12 | =================================================================== |
| 13 | --- git.orig/session.cxx |
| 14 | +++ git/session.cxx |
| 15 | @@ -1634,7 +1634,7 @@ systemtap_session::parse_kernel_function |
| 16 | clog << _F("Kernel symbol table %s unavailable, (%s)", |
| 17 | system_map_path.c_str(), strerror(errno)) << endl; |
| 18 | |
| 19 | - system_map_path = "/boot/System.map-" + kernel_release; |
| 20 | + system_map_path = kernel_build_tree + "/System.map-" + kernel_release; |
| 21 | system_map.clear(); |
| 22 | system_map.open(system_map_path.c_str(), ifstream::in); |
| 23 | if (! system_map.is_open()) |