Expose McKernel version in /proc/mckernel

Change-Id: Ica0fbb0ff70a4ff2559e92738926279a3ae78a21
This commit is contained in:
Balazs Gerofi
2018-10-24 13:05:51 +09:00
committed by Dominique Martinet
parent 1253f4d18c
commit e12d5ed341
5 changed files with 30 additions and 0 deletions

View File

@@ -309,6 +309,15 @@ int process_procfs_request(struct ikc_scd_packet *rpacket)
hold_process_vm(vm);
process_unlock(proc, &lock);
}
else if (!strcmp(p, "mckernel")) {
ans = snprintf(buf, count, "%s-%s\n",
MCKERNEL_VERSION, BUILDID);
if (buf_add(&buf_top, &buf_cur, buf, ans) < 0)
goto err;
ans = 0;
goto end;
}
else if (!strcmp(p, "stat")) { /* "/proc/stat" */
extern int num_processors; /* kernel/ap.c */
int cpu;