search for: sched_param

Displaying 20 results from an estimated 33 matches for "sched_param".

2003 Nov 11
0
Help with include files & current CVS
...risk.c:384: (Each undeclared identifier is reported only once asterisk.c:384: for each function it appears in.) asterisk.c:392: `SCHED_OTHER' undeclared (first use in this function) asterisk.c:377: warning: unused variable `sched' make: *** [asterisk.o] Error 1 It seems that the structure sched_param is not defined anywhere. I did find a definition of sched_param in /usr/include/linux/sched.h but that file is not included. When I tried to include it, I ended up with one include file after another I was having to add, and then they were conflicting over redefinitions, etc... Where is Aste...
2012 Apr 20
26
xl doesn't honour the parameter cpu_weight from my config file while xm does honour it
Hi, I''ve installed xen-unstable 4.2 from actual git (last commit was 4dc7dbef5400f0608321d579aebb57f933e8f707). When I start a domU with xm all is fine include the cpu_weight I configured in my domU config. When I start the domU with xl then all my domU have the default cpu_weight of 256 instead of the configured one. Was the name of cpu_weight being changed for xl command ? My domU
2012 Apr 20
26
xl doesn't honour the parameter cpu_weight from my config file while xm does honour it
Hi, I''ve installed xen-unstable 4.2 from actual git (last commit was 4dc7dbef5400f0608321d579aebb57f933e8f707). When I start a domU with xm all is fine include the cpu_weight I configured in my domU config. When I start the domU with xl then all my domU have the default cpu_weight of 256 instead of the configured one. Was the name of cpu_weight being changed for xl command ? My domU
2018 Jan 24
0
libasan bug: pthread_create never returns
.... */ #define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <sched.h> #include <errno.h> #include <unistd.h> void * dummy_worker(void *ptr) { printf("Hello from worker\n"); return NULL; } int main(void) { struct sched_param schedule; schedule.sched_priority = 50; if (sched_setscheduler(getpid(), SCHED_RR, &schedule) == 1) { perror("sched_setscheduler"); exit(EXIT_FAILURE); } cpu_set_t cpuset; CPU_ZERO(&cpuset); CPU_SET(1, &cpuset); if (sched_setaffinity(getpid(), sizeof(cp...
2018 Sep 14
0
virsh doesn't support vtpm using XEN?
...3 ], "max_memkb": 4194304, "target_memkb": 4194304, "video_memkb": 8192, "shadow_memkb": 36864, "localtime": "False", "sched_params": { }, "claim_mode": "True", "acpi": "True", "type.hvm": { "pae": "True", "apic": "True",...
2017 Feb 06
2
Real time threads don't work in libvirt containers under CentOS 7.3
...#include <pthread.h> pthread_t test_thread; void *test(void *arg) { printf("Starting thread\n"); sleep(1); printf("Thread complete\n"); return 0; } int main(int argc, char *argv[]) { int rc; printf("Starting main\n"); struct sched_param tsparam; pthread_attr_t tattr; memset(&tsparam, 0, sizeof(tsparam)); pthread_attr_init(&tattr); pthread_attr_setinheritsched(&tattr, PTHREAD_EXPLICIT_SCHED); pthread_attr_setschedpolicy(&tattr, SCHED_FIFO); tsparam.sched_priority = sched_get_priority_ma...
2012 Aug 31
2
[PATCH V2] libxl/xl: implement support for guest iooprt and irq permissions
...+ ("number", uint32), + ]) + libxl_vga_interface_info = Struct("vga_interface_info", [ ("kind", libxl_vga_interface_type), ]) @@ -277,6 +282,9 @@ libxl_domain_build_info = Struct("domain # parameters for all type of scheduler ("sched_params", libxl_domain_sched_params), + ("ioports", Array(libxl_ioport_range, "num_ioports")), + ("irqs", Array(uint32, "num_irqs")), + ("u", KeyedUnion(None, libxl_domain_type, "type",...
2020 Mar 18
4
[PATCH 1/9] drm/vblank: Add vblank works
..._IDLE; > + } > + } > + > + spin_unlock_irq(&vblank->dev->event_lock); > + > + wake_up_all(&vblank->vblank_work.work_wait); > + } > + > + return 0; > +} > + > +static void vblank_work_init(struct drm_vblank_crtc *vblank) > +{ > + struct sched_param param = { > + .sched_priority = MAX_RT_PRIO - 1, > + }; > + int ret; > + > + INIT_LIST_HEAD(&vblank->vblank_work.irq_list); > + INIT_LIST_HEAD(&vblank->vblank_work.work_list); > + init_waitqueue_head(&vblank->vblank_work.work_wait); > + > + vblank-&g...
2020 May 08
0
[RFC v4 04/12] drm/vblank: Add vblank works
...mp;work->base, func); + INIT_LIST_HEAD(&work->flush_work); + INIT_LIST_HEAD(&work->pending); + work->vblank = &crtc->dev->vblank[drm_crtc_index(crtc)]; +} +EXPORT_SYMBOL(drm_vblank_work_init); + +static int vblank_worker_init(struct drm_vblank_crtc *vblank) +{ + struct sched_param param = { + .sched_priority = MAX_RT_PRIO - 1, + }; + + INIT_LIST_HEAD(&vblank->pending_work); + spin_lock_init(&vblank->work_lock); + vblank->worker = kthread_create_worker(0, "card%d-crtc%d", + vblank->dev->primary->index, + vblank->pi...
2020 Mar 18
0
[PATCH 1/9] drm/vblank: Add vblank works
...ist); + work->cancel = false; + work->state = DRM_VBL_WORK_IDLE; + } + } + + spin_unlock_irq(&vblank->dev->event_lock); + + wake_up_all(&vblank->vblank_work.work_wait); + } + + return 0; +} + +static void vblank_work_init(struct drm_vblank_crtc *vblank) +{ + struct sched_param param = { + .sched_priority = MAX_RT_PRIO - 1, + }; + int ret; + + INIT_LIST_HEAD(&vblank->vblank_work.irq_list); + INIT_LIST_HEAD(&vblank->vblank_work.work_list); + init_waitqueue_head(&vblank->vblank_work.work_wait); + + vblank->vblank_work.thread = + kthread_run(vblank_...
2020 Jun 22
0
[RFC v5 02/10] drm/vblank: Add vblank works
...k_fn); + work->func = func; + INIT_LIST_HEAD(&work->node); + seqcount_init(&work->seqcount); + work->vblank = &crtc->dev->vblank[drm_crtc_index(crtc)]; +} +EXPORT_SYMBOL(drm_vblank_work_init); + +static int vblank_worker_init(struct drm_vblank_crtc *vblank) +{ + struct sched_param param = { + .sched_priority = MAX_RT_PRIO - 1, + }; + struct kthread_worker *worker; + + INIT_LIST_HEAD(&vblank->pending_work); + spin_lock_init(&vblank->work_lock); + init_waitqueue_head(&vblank->work_wait_queue); + worker = kthread_create_worker(0, "card%d-crtc%d",...
2010 Apr 25
2
[git pull] small fixes, sh4, getruage() README's
...,6 +47,7 @@ int execve(const char *, char * const *, char * const *); <alpha,ia64> int getpriority(int, int); <!alpha,ia64> int getpriority::__getpriority(int, int); int setpriority(int, int, int); +int getrusage(int, struct rusage *); int sched_setscheduler(pid_t, int, const struct sched_param *); int sched_yield(); <i386> int prctl at varadic(int, unsigned long, unsigned long, unsigned long, unsigned long);
2020 Mar 27
2
[PATCH 1/9] drm/vblank: Add vblank works
...> > + > > > + wake_up_all(&vblank->vblank_work.work_wait); > > > + } > > > + > > > + return 0; > > > +} > > > + > > > +static void vblank_work_init(struct drm_vblank_crtc *vblank) > > > +{ > > > + struct sched_param param = { > > > + .sched_priority = MAX_RT_PRIO - 1, > > > + }; > > > + int ret; > > > + > > > + INIT_LIST_HEAD(&vblank->vblank_work.irq_list); > > > + INIT_LIST_HEAD(&vblank->vblank_work.work_list); > > > + init_waitqueu...
2020 Mar 27
0
[PATCH 1/9] drm/vblank: Add vblank works
...lock_irq(&vblank->dev->event_lock); > > + > > + wake_up_all(&vblank->vblank_work.work_wait); > > + } > > + > > + return 0; > > +} > > + > > +static void vblank_work_init(struct drm_vblank_crtc *vblank) > > +{ > > + struct sched_param param = { > > + .sched_priority = MAX_RT_PRIO - 1, > > + }; > > + int ret; > > + > > + INIT_LIST_HEAD(&vblank->vblank_work.irq_list); > > + INIT_LIST_HEAD(&vblank->vblank_work.work_list); > > + init_waitqueue_head(&vblank->vblank_work....
2020 Apr 13
0
[PATCH 1/9] drm/vblank: Add vblank works
...ll(&vblank->vblank_work.work_wait); > > > > + } > > > > + > > > > + return 0; > > > > +} > > > > + > > > > +static void vblank_work_init(struct drm_vblank_crtc *vblank) > > > > +{ > > > > + struct sched_param param = { > > > > + .sched_priority = MAX_RT_PRIO - 1, > > > > + }; > > > > + int ret; > > > > + > > > > + INIT_LIST_HEAD(&vblank->vblank_work.irq_list); > > > > + INIT_LIST_HEAD(&vblank->vblank_work.work_list);...
2010 Jul 07
0
[git pull v2] x86_32, sh4, getrusage()
...,6 +47,7 @@ int execve(const char *, char * const *, char * const *); <alpha,ia64> int getpriority(int, int); <!alpha,ia64> int getpriority::__getpriority(int, int); int setpriority(int, int, int); +int getrusage(int, struct rusage *); int sched_setscheduler(pid_t, int, const struct sched_param *); int sched_yield(); <i386> int prctl at varadic(int, unsigned long, unsigned long, unsigned long, unsigned long);
2019 Apr 08
0
[PATCH v4 2/7] common: Bundle the libvirt-ocaml library for use by virt-v2v
...ags -> 2 lor int_of_domain_create_flags flags + | START_BYPASS_CACHE :: flags -> 4 lor int_of_domain_create_flags flags + | START_FORCE_BOOT :: flags -> 8 lor int_of_domain_create_flags flags + | START_VALIDATE :: flags -> 16 lor int_of_domain_create_flags flags + + type sched_param = string * sched_param_value + and sched_param_value = + | SchedFieldInt32 of int32 | SchedFieldUInt32 of int32 + | SchedFieldInt64 of int64 | SchedFieldUInt64 of int64 + | SchedFieldFloat of float | SchedFieldBool of bool + + type typed_param = string * typed_param_value + and typed_pa...
2020 Jun 24
0
[RFC v7 03/11] drm/vblank: Add vblank works
...uct kthread_work *work)) +{ + kthread_init_work(&work->base, func); + INIT_LIST_HEAD(&work->node); + work->vblank = &crtc->dev->vblank[drm_crtc_index(crtc)]; +} +EXPORT_SYMBOL(drm_vblank_work_init); + +int drm_vblank_worker_init(struct drm_vblank_crtc *vblank) +{ + struct sched_param param = { + .sched_priority = MAX_RT_PRIO - 1, + }; + struct kthread_worker *worker; + + INIT_LIST_HEAD(&vblank->pending_work); + init_waitqueue_head(&vblank->work_wait_queue); + worker = kthread_create_worker(0, "card%d-crtc%d", + vblank->dev->primary->i...
2019 Dec 16
3
[v2v PATCH 0/2] Move libvirt-ocaml copy to v2v repo
libvirt-ocaml is used only by virt-v2v, so move it to this repository, instead of having it around in the common submodule. The removal from common will happen later. Pino Toscano (2): common: Bundle the libvirt-ocaml library for use by virt-v2v build: switch embedded copy of libvirt-ocaml .gitignore | 2 + 3rdparty/libvirt-ocaml/Makefile.am |
2012 May 20
2
Remus network buffering problem
...e":"<default>","cpuid":[],"device_model_version":null,"device_model_stubdomain":"<default>","device_model":null,"device_model_ssidref":0,"extra":[],"extra_pv":[],"extra_hvm":[],"sched_params":{"weight":0,"cap":0,"tslice_ms":0,"ratelimit_us":0,"period":0,"slice":0,"latency":0,"extratime":0},"u":{"kernel":"/boot/vmlinuz-3.2.0-24-generic-pae","slack_memkb":-1,&quot...