summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-09-26New upstream snapshotSamuel Thibault
2010-09-26Merge branch 'upstream-merged'Samuel Thibault
2010-09-26Merge branch 'libpthread-moved' into upstream-mergedSamuel Thibault
2010-09-26Merge branch 'upstream' into upstream-mergedSamuel Thibault
2010-09-26Merge branch 'libpthread' into libpthread-movedSamuel Thibault
2010-09-26Merge branch 'upstream-merged'Samuel Thibault
2010-09-26Merge branch 'procfs-moved' into upstream-mergedSamuel Thibault
2010-09-26Merge branch 'procfs-moved' into procfs-jkoenig-movedSamuel Thibault
2010-09-26Move files to procfs to merge along hurdSamuel Thibault
2010-09-21Do not start the Hurd console if the TERM variable is givenSamuel Thibault
* debian/local/runsystem: Do not start the Hurd console if the TERM variable is given. Should permit mach-console install for better debugging as well as Xen or sub-hurd support.
2010-09-19Merge remote branch 'origin/master-zhengda'Samuel Thibault
Conflicts: utils/rpctrace.c
2010-09-14Use 2 instead of 42 as the parent inode numberJeremie Koenig
* procfs.c (procfs_make_ino): Use 2 rather than 42 as a temporary hack, since 2 is the root's inode with ext2fs.
2010-09-14Use the user-provided kernel PID for uptimeJeremie Koenig
* rootdir.c (get_boottime, get_idletime): replace KERNEL_PID with the opt_kernel_pid command-line option. * main.c (argp): Document the change.
2010-09-14Add copyright noticesJeremie Koenig
* dircat.c, dircat.h, main.c, main.h, netfs.c, process.c, process.h, procfs.c, procfs.h, procfs_dir.c, procfs_dir.h, proclist.c, proclist.h, rootdir.c, rootdir.h: Add copyright notices.
2010-09-03Fix missed signals when using pthread_sigmask.Jeremie Koenig
2010-09-03Fix __sched_param / sched_param conversionSamuel Thibault
* sysdeps/generic/pt-attr-getschedparam.c (pthread_attr_getschedparam): memcpy from `attr->schedparam' to `param' to convert from __sched_param to sched_param. * sysdeps/generic/pt-attr-setschedparam.c (pthread_attr_setschedparam): memcpy from `param' to `attr->schedparam' to convert from sched_param to __sched_param.
2010-09-02Use __sched_param instead of sched_paramSamuel Thibault
to avoid exposing inclusion of <sched.h> and exposure of sched_param from <sys/types.h> * sysdeps/generic/bits/thread-attr.h: Define __need_schedparam and include <bits/sched.h> instead of including <sched.h> (__pthread_attr): Use `__sched_param' instead of `sched_param'.
2010-09-01Prevent pthread.h from exposing assert()Samuel Thibault
* sysdeps/generic/bits/cancelation.h: Do not include <assert.h> (__pthread_cleanup_pop): Do not call `assert'.
2010-08-30Revert "debian/rules: Really put debugging symbols into the hurd-dbg package."Samuel Thibault
This reverts commit 54c7d0f3b159d2516d972b3b351b995e263cc81e. Conflicts: debian/changelog debian/rules
2010-08-30Fix typoSamuel Thibault
2010-08-30 * debian/control: Depend on gcc-4.4 instead of gcc-4.3. Thanks Émilio!Samuel Thibault
2010-08-30Add some comments in rootdir.cJeremie Koenig
* rootdir.c: Add page breaks to separate sections and add header comments for them.
2010-08-30Add swap information to the top-level stat fileJeremie Koenig
* rootdir.c (rootdir_gc_meminfo): Add swap information. * TODO: Update.
2010-08-30Add a PROFILE modeJeremie Koenig
* Makefile: Change FOOFLAGS defaults to appropriate values when $(PROFILE) is defined. * rootdir.c: Add an "exit" file, which causes exit to be called when looked up, so that profiling data can be written to disk.
2010-08-30Fix leak in error caseJeremie Koenig
* process.c (process_lookup_pid): Fix leak in error case.
2010-08-30Refresh nodes when they're read from the start.Jeremie Koenig
This is necessary for top, for instance, which keeps some files open and re-reads them regularly. As an extra bonus we can drop the refresh hack. * procfs.c, procfs.h: Remove the refresh hack. (procfs_refresh): New function, invalidates the cached contents. * netfs.c (netfs_attempt_read, netfs_get_dirents): Call procfs_refresh when the read is from offset 0. * proclist.c (proclist_make_node): Remove the refresh hack. * dircat.c (dircat_make_node): Likewise. (dircat_get_contents): Use procfs_refresh to avoid keeping old data from the component nodes.
2010-08-30Make sure the clock never runs backwards.Jeremie Koenig
* process.c, rootdir.c: When converting timeval structures into seconds or jiffies, make sure that floating point rounding errors don't make the clock the result jump backwards on second boundaries.
2010-08-30Fix the global idle timeJeremie Koenig
* rootdir.c: Replace INIT_PID by KERNEL_PID, for boot time and idle time purposes. (get_idletime): New function, queries the kernel's idle thread. (rootdir_gc_uptime, rootdir_gc_stat): Use the new function and provide the real idle time.
2010-08-30Cleanup pass on process.cJeremie Koenig
* process.c: Reorder some of the code. Improve comments. Jiffies and clock tick are the same thing, right? Replace the stat mode and cleanup hacks by more straightforward solutions.
2010-08-30Revamp procfs_dirJeremie Koenig
* procfs_dir.c, procfs_dir.h: Revamp the interface to make the more complicated use cases somewhat less hackish. * process.c: Update, specify a default make_node function. * rootdir.c: Likewise; make this optional "self" link use case somewhat less hackish.
2010-08-30Improve the interface for dircat_make_nodeJeremie Koenig
* dircat.c, dircat.h (dircat_make_node): Use an explicit array size for DIRS, fail with ENOMEM is any of them is NULL, and release the reference on the non-NULL nodes on any error. * main.c (root_make_node): Use the new interface.
2010-08-30Detect asprintf's ENOMEM in procfs.c rather than everywhereJeremie Koenig
* procfs.h: Make CONTENTS_LEN an ssize_t rather than a size_t, and document the change. * procfs.c (procfs_get_contents): Initialize CONTENTS_LEN to a negative value, and fail with ENOMEM if it's still negative after the callback returns. (everywhere): Update to ssize_t. * dircat.c, netfs.c, process.c, procfs_dir.c, proclist.c, rootdir.c: Update to ssize_t and the new GET_CONTENTS semantics.
2010-08-30Make contents a char* to avoid typecasts all over the placeJeremie Koenig
* procfs.h (procfs_cleanup_contents_with_free, procfs_cleanup_contents_with_vm_deallocate, procfs_get_contents, struct procfs_ops): Change CONTENTS from a void pointer to a char one. * dircat.c, netfs.c, process.c, procfs.c, procfs_dir.c, proclist.c, rootdir.c: Update.
2010-08-30Remove the unused procfs_file moduleJeremie Koenig
* procfs_file.c, procfs_file.h: Remove. * Makefile: Remove procfs_file.
2010-08-30Fix the handling of processes without an ownerJeremie Koenig
* main.c (argp_parser): New option --anonymous-owner. * main.h: Publish it. * process.c (process_lookup_pid): Use it to set the file owner uid of non-owned processes.
2010-08-30Use a global ps_contextJeremie Koenig
* proclist.c, proclist.h (proclist_create_node): Use a ps_context passed by the caller; errors are no longer possible, rename to proclist_make_node and change the signature accordingly. * rootdir.c, rootdir.h (rootdir_create_node): Likewise. * main.c (main): Create the ps_context here and pass it to root_make_node. (root_make_node): Pass it to proclist_make_node and rootdir_make_node.
2010-08-30netfs_server_loop never returnsJeremie Koenig
* main.c: Don't call netfs_server_loop repeatedly; it should never return.
2010-08-30Handle errors in mainJeremie Koenig
* main.c (main): Handle errors from argp_parse and root_make_node.
2010-08-30Add a --compatible optionJeremie Koenig
* main.c (argp_parser): Add --compatible, which sets the options required for compatibility with the procps tools.
2010-08-30Add a status file to process directoriesJeremie Koenig
* process.c: Add a status file.
2010-08-30Add statm to process directoriesJeremie Koenig
* process.c: Add the statm file.
2010-08-30Add a global cmdline fileJeremie Koenig
* main.c (argp_parser, main): Add the --kernel-pid option. * main.h: Publish it. * rootdir.c (rootdir_gc_cmdline): New function.
2010-08-30Add meminfo and vmstatJeremie Koenig
* rootdir.c: Add a (non-empty) meminfo and a vmstat file.
2010-08-30Add a fake-self option to control the self symlinkJeremie Koenig
* main.c (argp_parse, main): Add the --fake-self option. * main.h: Publish it. * rootdir.c (rootdir_gc_fakeself, rootdir_entries, rootdir_create_node): Use it.
2010-08-30Add --stat-mode to override the perms for [pid]/statJeremie Koenig
* main.c (argp_parser, main): Add the --stat-mode option. * process.c (process_lookup_pid): Use it.
2010-08-30Add --clk-tck to set the clock unitJeremie Koenig
* main.c (argp_parser, main): Add and parse the --clk-tck option. * main.h: Publish opt_clk_tck. * process.c (sc_tc): Use the user-provided clock frequency. * rootdir.c (rootdir_gc_stat): Likewise.
2010-08-30Play nice with the procps old_Hertz_hackJeremie Koenig
* rootdir.c (rootdir_gc_uptime, rootdir_gc_stat): assume a completely idle rather than completely busy system, so that the idle seconds can be meaningfully divided by the idle jiffies by procps.
2010-08-30Add an empty meminfo root fileJeremie Koenig
* rootdir.c: Add "meminfo", empty for now.
2010-08-30Add a fake "self" symlinkJeremie Koenig
* rootdir.c: Add a fake "self" symlink which always points to init.
2010-08-30Add loadavgJeremie Koenig
* rootdir.c: Add the root file "loadavg".