timer.cc (11793:ef606668d247) timer.cc (12334:e0ab29a34764)
1/*
2 * Copyright (c) 2012 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 32 unchanged lines hidden (view full) ---

41
42#include <sys/syscall.h>
43#include <unistd.h>
44
45#include <algorithm>
46#include <csignal>
47#include <ctime>
48
1/*
2 * Copyright (c) 2012 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 32 unchanged lines hidden (view full) ---

41
42#include <sys/syscall.h>
43#include <unistd.h>
44
45#include <algorithm>
46#include <csignal>
47#include <ctime>
48
49#include "base/misc.hh"
49#include "base/logging.hh"
50#include "base/trace.hh"
51#include "debug/KvmTimer.hh"
52
53/* According to timer_create(2), the value SIGEV_THREAD_ID can be used
54 * to specify which thread a timer signal gets delivered to. According
55 * to the man page, the member sigev_notify_thread is used to specify
56 * the TID. This member is currently not defined by default in
57 * siginfo.h on x86, so we define it here as a workaround.

--- 133 unchanged lines hidden ---
50#include "base/trace.hh"
51#include "debug/KvmTimer.hh"
52
53/* According to timer_create(2), the value SIGEV_THREAD_ID can be used
54 * to specify which thread a timer signal gets delivered to. According
55 * to the man page, the member sigev_notify_thread is used to specify
56 * the TID. This member is currently not defined by default in
57 * siginfo.h on x86, so we define it here as a workaround.

--- 133 unchanged lines hidden ---