-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.h
34 lines (28 loc) · 893 Bytes
/
common.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* Copyright (C) 2012 Samsung Electronics Co., Ltd.
* Author: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
*
* heavily based on Userspace low memory killer daemon:
* Copyright 2012 Linaro Limited
* Author: Anton Vorontsov <anton.vorontsov@linaro.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*/
#ifndef __TBULMK_COMMON_H
#define __TBULMK_COMMON_H
extern void pabort(const char *s);
extern void print_timestamp(void);
typedef unsigned long ulong;
struct task_info {
char *name;
time_t time;
int activity;
ulong rss;
int tty_nr;
};
int get_task_info(pid_t pid, const char *dname, struct task_info *ti);
void put_task_info(struct task_info *ti);
#endif