Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object Stats Collection #254

Closed
wants to merge 59 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
30f5e17
changed the head command
jmazanec15 Jan 18, 2019
bd243da
changed the head num to 20001
jmazanec15 Jan 18, 2019
00bb845
Merge branch 'master' of github.com:dthain/basekernel
jmazanec15 Jan 25, 2019
9369ef8
Merge branch 'master' of github.com:dthain/basekernel
jmazanec15 Jan 28, 2019
57bc375
added bcache stats
jmazanec15 Jan 30, 2019
28e969d
added syscall for bcache stats
jmazanec15 Jan 30, 2019
4c0b8dd
added bcache stats test
jmazanec15 Jan 30, 2019
e71824e
added syscall for bcache stats
jmazanec15 Jan 30, 2019
fca3ebd
move bcache stats struct to stats.h
jmazanec15 Jan 30, 2019
1e237ed
Merge branch 'master' of github.com:dthain/basekernel into stats-collect
jmazanec15 Feb 11, 2019
a9e0ff8
added bcache_flush syscall
jmazanec15 Feb 12, 2019
5ead44f
added get stats for objects
jmazanec15 Feb 12, 2019
87ee455
added stats collection
jmazanec15 Apr 3, 2019
5440ecb
added driver and object stats collection
jmazanec15 Apr 3, 2019
044424a
fixed syntax
jmazanec15 Apr 3, 2019
d8911ae
added calls for stats collection
jmazanec15 Apr 3, 2019
6b73a2a
added dev driver stats to enum
jmazanec15 Apr 3, 2019
42c7222
added stats
jmazanec15 Apr 9, 2019
f290dec
added stats
jmazanec15 Apr 9, 2019
e2bf8d3
added stats
jmazanec15 Apr 9, 2019
2c01ed5
added strdup
jmazanec15 Apr 9, 2019
7e40b4b
init commit
jmazanec15 Apr 24, 2019
b5e6802
remove bcachetest
jmazanec15 Apr 24, 2019
fcfabed
added livestat and statworkload
jmazanec15 Apr 24, 2019
74f485e
added stats collection
jmazanec15 Apr 24, 2019
9af87c5
added strdup
jmazanec15 Apr 24, 2019
308a6e1
added more stats structs
jmazanec15 Apr 24, 2019
b90b8f3
added stats collection calls
jmazanec15 Apr 24, 2019
9a1f1f0
removed files related to different commit
jmazanec15 Apr 24, 2019
a8ac586
removed files related to different commit
jmazanec15 Apr 24, 2019
18f557a
init commit
jmazanec15 May 1, 2019
39ba7f7
modified object stats syscall
jmazanec15 May 1, 2019
74cd818
modified object stats syscall
jmazanec15 May 1, 2019
31d5044
modified stats collection
jmazanec15 May 1, 2019
6d27c19
modified stats collection
jmazanec15 May 1, 2019
05c894d
added enum for object type
jmazanec15 May 1, 2019
582faec
added stats collection
jmazanec15 May 1, 2019
1985273
modified stats collection
jmazanec15 May 1, 2019
348335e
added stats collection
jmazanec15 May 1, 2019
595f17d
added stats collection
jmazanec15 May 1, 2019
4e1a265
modified object stats collection
jmazanec15 May 1, 2019
3f40760
Revert "move bcache stats struct to stats.h"
jmazanec15 May 1, 2019
08f156d
Revert "added syscall for bcache stats"
jmazanec15 May 1, 2019
f0457b6
Revert "added dev driver stats to enum"
jmazanec15 May 1, 2019
9554283
Revert "added strdup"
jmazanec15 May 1, 2019
9632008
Revert "added stats collection calls"
jmazanec15 May 1, 2019
5da8996
Revert "added strdup"
jmazanec15 May 1, 2019
003699d
Revert "added driver and object stats collection"
jmazanec15 May 1, 2019
d90574f
Revert "added bcache_flush syscall"
jmazanec15 May 1, 2019
898bf7c
Revert "added bcache stats"
jmazanec15 May 1, 2019
3d22e13
Revert "added calls for stats collection"
jmazanec15 May 1, 2019
2a92fb6
reverted change of adding bcache stats; covered in another PR
jmazanec15 May 1, 2019
8c45d7a
reverted change of adding bcache stats; covered in another PR
jmazanec15 May 1, 2019
7d3e19b
reverted change of adding bcache stats; covered in another PR
jmazanec15 May 1, 2019
7e62606
Revert "added stats"
jmazanec15 May 1, 2019
e47e087
untangled 2 PRs
jmazanec15 May 1, 2019
06f1bba
untangled 2 PRs
jmazanec15 May 1, 2019
d02772f
untangled 2 PRs
jmazanec15 May 1, 2019
e664428
untangling 2 PRs
jmazanec15 May 1, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "added bcache_flush syscall"
This reverts commit a9e0ff8.
jmazanec15 committed May 1, 2019
commit d90574fcd73c062ea23a4efe8b771376febfa473
1 change: 1 addition & 0 deletions include/library/syscalls.h
Original file line number Diff line number Diff line change
@@ -60,6 +60,7 @@ int syscall_object_max();
/* Syscalls that query or affect the whole system state. */

int syscall_system_stats(struct system_stats *s);
int syscall_bcache_stats(struct bcache_stats *bstats);
int syscall_system_time( uint32_t *t );
int syscall_system_rtc( struct rtc_time *t );

8 changes: 0 additions & 8 deletions kernel/syscall_handler.c
Original file line number Diff line number Diff line change
@@ -580,12 +580,6 @@ int sys_bcache_stats(struct bcache_stats * s)
return 0;
}

int sys_bcache_flush()
{
bcache_flush_all();
return 0;
}

int sys_system_time( uint32_t *tm )
{
if(!is_valid_pointer(tm,sizeof(*tm))) return KERROR_INVALID_ADDRESS;
@@ -701,8 +695,6 @@ int32_t syscall_handler(syscall_t n, uint32_t a, uint32_t b, uint32_t c, uint32_
return sys_system_stats((struct system_stats *) a);
case SYSCALL_BCACHE_STATS:
return sys_bcache_stats((struct bcache_stats *) a);
case SYSCALL_BCACHE_FLUSH:
return sys_bcache_flush();
case SYSCALL_SYSTEM_TIME:
return sys_system_time((uint32_t*)a);
case SYSCALL_SYSTEM_RTC: