Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
9c27e87a
Commit
9c27e87a
authored
20 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Add support for AIX's five argument ptrace function (Linux has four args).
parent
b260c433
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
NEWS
+1
-0
1 addition, 0 deletions
NEWS
auxdir/Makefile.am
+1
-0
1 addition, 0 deletions
auxdir/Makefile.am
auxdir/x_ac_ptrace.m4
+26
-0
26 additions, 0 deletions
auxdir/x_ac_ptrace.m4
configure.ac
+3
-0
3 additions, 0 deletions
configure.ac
src/slurmd/smgr.c
+8
-0
8 additions, 0 deletions
src/slurmd/smgr.c
with
39 additions
and
0 deletions
NEWS
+
1
−
0
View file @
9c27e87a
...
@@ -10,6 +10,7 @@ documents those changes that are of interest to users and admins.
...
@@ -10,6 +10,7 @@ documents those changes that are of interest to users and admins.
responding in a timely fashion) then send a registration RPC
responding in a timely fashion) then send a registration RPC
to slurmctld
to slurmctld
-- Add "slurm_" prefix to slurm's hostlist_ function man pages.
-- Add "slurm_" prefix to slurm's hostlist_ function man pages.
-- More AIX support added.
* Changes in SLURM 0.3.1
* Changes in SLURM 0.3.1
========================
========================
...
...
This diff is collapsed.
Click to expand it.
auxdir/Makefile.am
+
1
−
0
View file @
9c27e87a
...
@@ -12,6 +12,7 @@ EXTRA_DIST = \
...
@@ -12,6 +12,7 @@ EXTRA_DIST = \
x_ac_debug.m4
\
x_ac_debug.m4
\
x_ac_elan.m4
\
x_ac_elan.m4
\
x_ac_gpl_licensed.m4
\
x_ac_gpl_licensed.m4
\
x_ac_ptrace.m4
\
x_ac_readline.m4
\
x_ac_readline.m4
\
x_ac_setproctitle.m4
\
x_ac_setproctitle.m4
\
x_ac_slurm_ssl.m4
x_ac_slurm_ssl.m4
This diff is collapsed.
Click to expand it.
auxdir/x_ac_ptrace.m4
0 → 100644
+
26
−
0
View file @
9c27e87a
##*****************************************************************************
# $Id$
##*****************************************************************************
# AUTHOR:
# Morris Jette <jette1@llnl.gov>
#
# SYNOPSIS:
# X_AC_PTRACE
#
# DESCRIPTION:
# Test argument count of ptrace function.
#
# WARNINGS:
# This macro must be placed after AC_PROG_CC or equivalent.
##*****************************************************************************
AC_DEFUN([X_AC_PTRACE], [
AC_TRY_COMPILE(
[#include <sys/reg.h>
#include <sys/ptrace.h>
#include <sys/ldr.h>],
[ptrace(PT_TRACE_ME,0,0,0,0);],
[AC_DEFINE(PTRACE_FIVE_ARGS, 1,
[Define to 1 if ptrace takes five arguments.])])
])
This diff is collapsed.
Click to expand it.
configure.ac
+
3
−
0
View file @
9c27e87a
...
@@ -58,6 +58,9 @@ dnl check to see if glibc's program_invocation_short_name is available:
...
@@ -58,6 +58,9 @@ dnl check to see if glibc's program_invocation_short_name is available:
dnl
dnl
X_AC_SLURM_PROGRAM_INVOCATION_SHORT_NAME
X_AC_SLURM_PROGRAM_INVOCATION_SHORT_NAME
dnl Check if ptrace takes four or five arguments
dnl
X_AC_PTRACE
dnl Checks for types.
dnl Checks for types.
dnl
dnl
...
...
This diff is collapsed.
Click to expand it.
src/slurmd/smgr.c
+
8
−
0
View file @
9c27e87a
...
@@ -562,7 +562,11 @@ _pdebug_trace_process(slurmd_job_t *job, pid_t pid)
...
@@ -562,7 +562,11 @@ _pdebug_trace_process(slurmd_job_t *job, pid_t pid)
waitpid
(
pid
,
&
status
,
WUNTRACED
);
waitpid
(
pid
,
&
status
,
WUNTRACED
);
if
(
kill
(
pid
,
SIGSTOP
)
<
0
)
if
(
kill
(
pid
,
SIGSTOP
)
<
0
)
error
(
"kill(%lu): %m"
,
(
unsigned
long
)
pid
);
error
(
"kill(%lu): %m"
,
(
unsigned
long
)
pid
);
#ifdef PTRACE_FIVE_ARGS
if
(
ptrace
(
PTRACE_DETACH
,
(
long
)
pid
,
NULL
,
0
,
NULL
))
#else
if
(
ptrace
(
PTRACE_DETACH
,
(
long
)
pid
,
NULL
,
NULL
))
if
(
ptrace
(
PTRACE_DETACH
,
(
long
)
pid
,
NULL
,
NULL
))
#endif
error
(
"ptrace(%lu): %m"
,
(
unsigned
long
)
pid
);
error
(
"ptrace(%lu): %m"
,
(
unsigned
long
)
pid
);
}
}
}
}
...
@@ -577,6 +581,10 @@ _pdebug_stop_current(slurmd_job_t *job)
...
@@ -577,6 +581,10 @@ _pdebug_stop_current(slurmd_job_t *job)
* Stop the task on exec for TotalView to connect
* Stop the task on exec for TotalView to connect
*/
*/
if
(
(
job
->
task_flags
&
TASK_PARALLEL_DEBUG
)
if
(
(
job
->
task_flags
&
TASK_PARALLEL_DEBUG
)
#ifdef PTRACE_FIVE_ARGS
&&
(
ptrace
(
PTRACE_TRACEME
,
0
,
NULL
,
0
,
NULL
)
<
0
)
)
#else
&&
(
ptrace
(
PTRACE_TRACEME
,
0
,
NULL
,
NULL
)
<
0
)
)
&&
(
ptrace
(
PTRACE_TRACEME
,
0
,
NULL
,
NULL
)
<
0
)
)
#endif
error
(
"ptrace: %m"
);
error
(
"ptrace: %m"
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment