Skip to content

Instantly share code, notes, and snippets.

/*
* Real-Time Scheduling Class (mapped to the SCHED_FIFO and SCHED_RR
* policies)
*/
#include <linux/chronos_sched.h>
#ifdef CONFIG_SMP
static int pick_rt_task(struct rq *rq, struct task_struct *p, int cpu);
static void deactivate_task(struct rq *rq, struct task_struct *p, int sleep);
#endif
/*
* kernel/sched.c
*
* Kernel scheduler and related syscalls
*
* Copyright (C) 1991-2002 Linus Torvalds
*
* 1996-12-23 Modified by Dave Grothe to fix bugs in semaphores and
* make semaphores SMP safe
* 1998-11-19 Implemented schedule_timeout() and related stuff
/*
* Real-Time Scheduling Class (mapped to the SCHED_FIFO and SCHED_RR
* policies)
*/
#include <linux/chronos_sched.h>
#ifdef CONFIG_SMP
static int pick_rt_task(struct rq *rq, struct task_struct *p, int cpu);
static void deactivate_task(struct rq *rq, struct task_struct *p, int sleep);
#endif
/*
* kernel/sched.c
*
* Kernel scheduler and related syscalls
*
* Copyright (C) 1991-2002 Linus Torvalds
*
* 1996-12-23 Modified by Dave Grothe to fix bugs in semaphores and
* make semaphores SMP safe
* 1998-11-19 Implemented schedule_timeout() and related stuff
/*
* Real-Time Scheduling Class (mapped to the SCHED_FIFO and SCHED_RR
* policies)
*/
#include <linux/chronos_sched.h>
#ifdef CONFIG_SMP
static int pick_rt_task(struct rq *rq, struct task_struct *p, int cpu);
static void deactivate_task(struct rq *rq, struct task_struct *p, int sleep);
#endif
/*
* kernel/sched.c
*
* Kernel scheduler and related syscalls
*
* Copyright (C) 1991-2002 Linus Torvalds
*
* 1996-12-23 Modified by Dave Grothe to fix bugs in semaphores and
* make semaphores SMP safe
* 1998-11-19 Implemented schedule_timeout() and related stuff
/*
* kernel/sched.c
*
* Kernel scheduler and related syscalls
*
* Copyright (C) 1991-2002 Linus Torvalds
*
* 1996-12-23 Modified by Dave Grothe to fix bugs in semaphores and
* make semaphores SMP safe
* 1998-11-19 Implemented schedule_timeout() and related stuff
[ 629.132854] BUG: unable to handle kernel NULL pointer dereference at (null)
[ 629.132854] IP: [< (null)>] (null)
[ 629.132854] PGD 0
[ 629.132854] Oops: 0010 [#1] PREEMPT SMP
[ 629.132854] last sysfs file: /sys/devices/pci0000:00/0000:00:14.4/0000:01:04.0/local_cpus
[ 629.132854] CPU 22
[ 629.132854] Modules linked in: rtai_sem calibrate_rt rtai_fifos rtai_lxrt rtai_hal ipmi_msghandler nfs nfsd lockd nfs_acl exportfs auth_rpcgss sunrpc psmouse lp amd64_edac_mod parport serio_raw edac_core i2c_piix4 edac_mce_amd usbhid igb usb_storage hid ahci pata_atiixp libahci dca
[ 629.132854]
[ 629.132854] Pid: 0, comm: kworker/0:1 Not tainted 2.6.38.8-rtai #6 Supermicro H8DGU/H8DGU
[ 629.132854] RIP: 0010:[<0000000000000000>] [< (null)>] (null)
/*
* Antonio Barbalace
* periodic segments benchmark
* this work was done in the integration phase of the AUV code with ChronOS
*
* The whole code derive from the sched_test_app (Aaron version)
* This version is terrible system with just one periodic thread
*/
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.38.8-rtai (rlyerly@luigi) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1) ) #6 SMP PREEMPT Mon Sep 17 12:14:30 EDT 2012
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-2.6.38.8-rtai root=UUID=dfec0e53-ecad-4b86-8304-ac158bffac39 ro console=ttyS0,115200 console=tty0 acpi=off
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
[ 0.000000] BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
[ 0.000000] BIOS-e820: 00000000000e6000 - 0000000000100000 (reserved)
[ 0.000000] BIOS-e820: 0000000000100000 - 00000000dfe90000 (usable)
[ 0.000000] BIOS-e820: 00000000dfe9e000 - 00000000dfea0000 (reserved)