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 1479344 Details for
Bug 1623127
"cannot allocate any more memory" on 4.19-rc1
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.rh90 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
task_struct.pid_links patch
pid_links.patch (text/plain), 1.77 KB, created by
Dave Anderson
on 2018-08-28 19:26:37 UTC
(
hide
)
Description:
task_struct.pid_links patch
Filename:
MIME Type:
Creator:
Dave Anderson
Created:
2018-08-28 19:26:37 UTC
Size:
1.77 KB
patch
obsolete
>diff --git a/defs.h b/defs.h >index 8687ff1..1dc8cca 100644 >--- a/defs.h >+++ b/defs.h >@@ -2036,6 +2036,7 @@ struct offset_table { /* stash of commonly-used offsets */ > long memcg_cache_params___root_caches_node; > long memcg_cache_params_children; > long memcg_cache_params_children_node; >+ long task_struct_pid_links; > }; > > struct size_table { /* stash of commonly-used sizes */ >diff --git a/symbols.c b/symbols.c >index 2e6713a..48a0ee6 100644 >--- a/symbols.c >+++ b/symbols.c >@@ -8606,6 +8606,8 @@ dump_offset_table(char *spec, ulong makestruct) > OFFSET(task_rss_stat_count)); > fprintf(fp, " task_struct_pids: %ld\n", > OFFSET(task_struct_pids)); >+ fprintf(fp, " task_struct_pid_links: %ld\n", >+ OFFSET(task_struct_pid_links)); > fprintf(fp, " task_struct_last_run: %ld\n", > OFFSET(task_struct_last_run)); > fprintf(fp, " task_struct_timestamp: %ld\n", >diff --git a/task.c b/task.c >index 39fb0de..1eecfce 100644 >--- a/task.c >+++ b/task.c >@@ -314,6 +314,7 @@ task_init(void) > strcpy(buf, "alias last ps -l"); > alias_init(buf); > } >+ MEMBER_OFFSET_INIT(task_struct_pid_links, "task_struct", "pid_links"); > MEMBER_OFFSET_INIT(pid_link_pid, "pid_link", "pid"); > MEMBER_OFFSET_INIT(pid_hash_chain, "pid", "hash_chain"); > >@@ -2382,7 +2383,10 @@ retry_radix_tree: > pid_tasks_0 = ULONG(pidbuf + OFFSET(pid_tasks)); > if (!pid_tasks_0) > continue; >- task = pid_tasks_0 - OFFSET(task_struct_pids); >+ if (VALID_MEMBER(task_struct_pids)) >+ task = pid_tasks_0 - OFFSET(task_struct_pids); >+ else >+ task = pid_tasks_0 - OFFSET(task_struct_pid_links); > > if (CRASHDEBUG(1)) > console("pid: %lx ns: %lx tasks[0]: %lx task: %lx\n",
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 Raw
Actions:
View
Attachments on
bug 1623127
:
1479278
| 1479344