summaryrefslogtreecommitdiffstats
path: root/schedutils/chrt.c
Commit message (Collapse)AuthorAgeFilesLines
* chrt: Add noreturn attribute to show_usage() functionMarek Polacek2010-10-291-1/+1
| | | | Signed-off-by: Marek Polacek <mmpolacek@gmail.com>
* taskset: proper numbers parsingKarel Zak2010-09-301-6/+4Star
| | | | | Reported-by: Davidlohr Bueso <dave@gnu.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* chrt: slice help text into manageable chunks for translatorsBenno Schulenberg2010-06-151-6/+13
| | | | | | | [kzak@redhat.com: - clean up usage() function] Signed-off-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Karel Zak <kzak@redhat.com>
* chrt: change two messages into four translatable sentencesBenno Schulenberg2010-06-151-6/+14
| | | | | | | | | | | In several languages the translations for "current" and "new" will have to be slightly different depending on whether they apply to "policy" or "priority". (As a general rule, translatable messages should be full sentences, and not partial ones with optional words filled in via %s.) Signed-off-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: minor changes for GNU/HurdSamuel Thibault2010-06-141-0/+10
| | | | | | Here is a patch to fix the build on GNU/Hurd. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
* chrt: add --reset-on-forkKarel Zak2010-02-021-2/+16
| | | | | | | | | | | | | | | This new option allows to set SCHED_RESET_ON_FORK flag for FIFO and RR policies. Example: $ chrt --fifo --reset-on-fork 1 /bin/bash $ schedutils/chrt --pid $$ pid 31579's current scheduling policy: SCHED_FIFO|SCHED_RESET_ON_FORK pid 31579's current scheduling priority: 1 Signed-off-by: Karel Zak <kzak@redhat.com>
* chrt: add support for SCHED_RESET_ON_FORKAdrian Knoth2010-02-021-0/+11
| | | | | | | | | | | | | | | | From 9262c9832134f8a33ac2ea2854dc6d20acc712d1 Mon Sep 17 00:00:00 2001 From: Adrian Knoth <adi@drcomp.erfurt.thur.de> Date: Tue, 2 Feb 2010 16:57:23 +0100 Subject: [PATCH] Add support for SCHED_RESET_ON_FORK to chrt SCHED_RESET_ON_FORK has been added in 2.6.31. If a thread has this flag set, chrt reports "unknown" policy, which is confusing. The patch adds support for this new flag. It will (can) only be applied to SCHED_FIFO or SCHED_RR, so there's no need to catch the other scheduling policies. Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
* po: fix msgid bugsKarel Zak2009-12-101-1/+1
| | | | | Reported-by: Petr Pisar <petr.pisar@atlas.cz> Signed-off-by: Karel Zak <kzak@redhat.com>
* chrt: use c.hKarel Zak2009-10-161-4/+1Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* chrt: don't assume SCHED_BATCH and SCHED_IDLE existAurelien Jarno2009-05-071-4/+25
| | | | | | | | | | | | | | | | | | | | | | | | | SCHED_FIFO, SCHED_OTHER, SCHED_RR are part of POSIX 1003.1b Process Scheduling, so it is correct to assume they always exists. SCHED_BATCH and SCHED_IDLE are Linux specific, we should not assume they exists. Defining SCHED_BATCH and SCHED_IDLE to random values (ie the ones found on Linux systems) is not an option as they may *collide* with the one of other systems. For example on GNU/kFreeBSD we have: #define SCHED_RR 3 and on Linux we have: #define SCHED_BATCH 3 [kzak@redhat.com: - add "Linux specific" notes to chrt.1 - add a note about BATCH and PR conflict to this commit message] Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Karel Zak <kzak@redhat.com>
* chrt: output buglet when reporting scheduling classKarel Zak2009-02-031-0/+1
| | | | | | | | | | | | | | % chrt -i 0 ./a.out & [1] 60479 % chrt -p 60479 pid 60479's current scheduling policy: SCHED_IDLE SCHED_RR pid 60479's current scheduling priority: 0 We have a spurious and incorrect SCHED_RR in there... Address-Red-Hat-Bugzilla: #483706 Signed-off-by: Karel Zak <kzak@redhat.com>
* chrt: add NLS support, clean error messages and return codesKarel Zak2008-09-231-105/+69Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* chrt: support CFS SCHED_IDLE priority and document itMartin Steigerwald2008-09-231-1/+24
| | | | | Signed-off-by: Martin Steigerwald <ms@teamix.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: remove hardcoded _GNU_SOURCEKarel Zak2007-09-201-2/+0Star
| | | | | | We have AC_GNU_SOURCE, so we needn't any extra hardcoded _GNU_SOURCE. Signed-off-by: Karel Zak <kzak@redhat.com>
* schedutils: fix chrt docs and pid=0 usageMatthias Koenig2007-07-161-4/+6
| | | | | | | Fix some documentation bugs for chrt. Make it work with PID 0, which means current process. Signed-off-by: Matthias Koenig <mkoenig@suse.de>
* schedutils: define SCHED_BATCH when compile with old glibcKarel Zak2007-04-111-0/+7
| | | | | | | | This is temporary workaround and it will be removed in 2.14 when minimal number of people will use old systems where is not defined SCHED_BATCH in (bits/)sched.h. Signed-off-by: Karel Zak <kzak@redhat.com>
* schedutils: add support for SCHED_BATCHKarel Zak2007-01-161-5/+21
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Imported from util-linux-2.13-pre2 tarball.Karel Zak2006-12-071-2/+2
|
* Imported from util-linux-2.13-pre1 tarball.Karel Zak2006-12-071-0/+223