summaryrefslogtreecommitdiff
path: root/Userland/Utilities
AgeCommit message (Collapse)Author
2021-07-22js: Implement pretty-printing of Temporal.PlainDateTime objectsLinus Groh
2021-07-22js: Implement pretty-printing of Temporal.PlainDate objectsLinus Groh
2021-07-22Userland: Use /proc/kernel_base to determine the kernel base addressGunnar Beutner
This removes all the hard-coded kernel base addresses from userspace tools. One downside for this is that e.g. Profiler no longer uses a different color for kernel symbols when run as a non-root user.
2021-07-22Utilities: Make the columns for readelf fit all reloc types on x86_64Gunnar Beutner
2021-07-22LibELF+Utilities: Avoid truncating 64-bit valuesGunnar Beutner
This fixes displaying 64-bit addresses in readelf and also fixes showing backtraces from core dumps on x86_64.
2021-07-22Utilities: Make sure columns are properly aligned for readelf on x86_64Gunnar Beutner
2021-07-22Utilities: Make sure columns are properly aligned for pmap on x86_64Gunnar Beutner
2021-07-22AK: Add a getter to JsonValue to get machine-native addressesGunnar Beutner
2021-07-22Everywhere: Prefer using {:#x} over 0x{:x}Gunnar Beutner
We have a dedicated format specifier which adds the "0x" prefix, so let's use that instead of adding it manually.
2021-07-22Everywhere: Prefix hexadecimal numbers with 0xGunnar Beutner
Depending on the values it might be difficult to figure out whether a value is decimal or hexadecimal. So let's make this more obvious. Also this allows copying and pasting those numbers into GNOME calculator and probably also other apps which auto-detect the base.
2021-07-21LibGfx: Use "try_" prefix for static factory functionsAndreas Kling
Also mark them as [[nodiscard]].
2021-07-20Userland: Hardcode the x86_64 kernel base address for nowGunnar Beutner
2021-07-19Everywhere: Use AK/Math.h if applicableHendiadyoin1
AK's version should see better inlining behaviors, than the LibM one. We avoid mixed usage for now though. Also clean up some stale math includes and improper floatingpoint usage.
2021-07-19LibTest/Utilities: Add method for TestRunner to print failed test namesAndrew Kaster
If a test run has a lot of tests in it, and they fill up the terminal buffer, it can be difficult to find out exactly which tests have failed from your large test run. Make TestRunner print out an optional Vector of failed test names at the end of the run, and have run-tests add each failed or crashed test to a Vector it uses for this purpose.
2021-07-18Everywhere: Make tracking cpu usage independent from system ticksTom
This switches tracking CPU usage to more accurately measure time in user and kernel land using either the TSC or another time source. This will also come in handy when implementing a tickless kernel mode.
2021-07-18Everywhere: Improve CPU usage calculationTom
As threads come and go, we can't simply account for how many time slices the threads at any given point may have been using. We need to also account for threads that have since disappeared. This means we also need to track how many time slices we have expired globally. However, because this doesn't account for context switches outside of the system timer tick values may still be under-reported. To solve this we will need to track more accurate time information on each context switch. This also fixes top's cpu usage calculation which was still based on the number of context switches. Fixes #6473
2021-07-18LibRegex+Everywhere: Make LibRegex more unicode-awareAli Mohammad Pur
This commit makes LibRegex (mostly) capable of operating on any of the three main string views: - StringView for raw strings - Utf8View for utf-8 encoded strings - Utf32View for raw unicode strings As a result, regexps with unicode strings should be able to properly handle utf-8 and not stop in the middle of a code point. A future commit will update LibJS to use the correct type of string depending on the flags.
2021-07-18pmap: Add support for 64-bit addressesGunnar Beutner
2021-07-18readelf: Add names for x86_64 relocations and machine typeGunnar Beutner
2021-07-18Kernel/USB: Move USB bus information from /proc to /sysAndreas Kling
This patch moves all the USB data from /proc/bus/usb to /sys/bus/usb.
2021-07-17wasm: Don't try to print the function results if it trapsAli Mohammad Pur
2021-07-17Revert "LibWasm: Some more performance stuff (#8812)"Ali Mohammad Pur
This reverts commit 35394dbfaa23b44a293da85b20a63a10f73572c3. I pushed the wrong button again, hopefully this will be the last of such incidents.
2021-07-17LibWasm: Some more performance stuff (#8812)Ali Mohammad Pur
* wasm: Don't try to print the function results if it traps * LibWasm: Inline some very hot functions These are mostly pretty small functions too, and they were about ~10% of runtime. * LibWasm+Everywhere: Make the instruction count limit configurable ...and enable it for LibWeb and test-wasm. Note that `wasm` will not be limited by this. * LibWasm: Remove a useless use of ScopeGuard There are no multiple exit paths in that function, so we can just put the ending logic right at the end of the function instead.
2021-07-16js: Implement pretty-printing of Temporal.Duration objectsLinus Groh
2021-07-16Utilities: Make the js REPL autocomplete correctly handle `new Ident`Ali Mohammad Pur
Previously, `new` was being recognised as an identifier, which was preventing this from working.
2021-07-15Utilities: Allow filenames containing '=' in dd (#8766)Dhruv Maroo
2021-07-15Utilities: Add groupdelM4x1m3
2021-07-15Utilities: Add groupaddM4x1m3
2021-07-14js: Implement pretty-printing of Temporal.Calendar objectsLinus Groh
2021-07-14js: Tweak pretty-printing of Temporal.{Instant,TimeZone} objectsLinus Groh
No need for the key/value style here, just put it right after the type.
2021-07-14Utilities: Add an implementation of 'comm'TheFightingCatfish
Add an implementation of 'comm' -- compare files line by line
2021-07-14Tests: Change test-filtering mechanismHendiadyoin1
We have a new config argument to add space separated exclude regex' This is separate from "NotTestsPattern", because these are still Tests, although they are not supposed to be run by the runner This also adds the test for a working UserspaceEmulator to the tests run
2021-07-14Utilities: Implement usermod commandbrapru
Previously there was no way to modify existing user accounts.
2021-07-13Userland: Prefer using ARCH() over __LP64__Gunnar Beutner
2021-07-13du: Don't fail immediately when directory can't be read (#8719)luk1337
2021-07-12ls: Add option to list subdirectories recursivelyAriel Don
List subdirectories encountered using -R or --recursive flags with ls.
2021-07-12Utilities: Make `less` accept 'page up' and 'page down' keysBrandon van Houten
2021-07-11Userland+Tests: Convert test_io to be LibTest basedAndrew Kaster
Add a few extra tests as well, to make sure we don't have any future TmpFs regressions.
2021-07-11Utilities+Tests: Convert test_efault to be LibTest basedAndrew Kaster
This test exposed a kernel panic in is_user_range calculations, so let's convert it to be a LibTest test so we can prevent regressions in mmap, the page allocator, and the memory manager.
2021-07-10expr: Make Match expressions comply with POSIXAli Mohammad Pur
They should print the contents of capture group 1, if it exists.
2021-07-10chres: Make screen an optional parameterNico Weber
Most people have only one screen.
2021-07-10chres: Unbreak scale factor setting after aa15bf81e48637Nico Weber
2021-07-10Utilities: Use alpha channel instead of opacity in shotAziz Berkay Yesilyurt
The way overlay was drawn is not the correct way to achieve window transparency in selection mode. With this change, shot window becomes truely transparent.
2021-07-10grep: Use Basic POSIX regexps by default and make -E not the defaultAli Mohammad Pur
2021-07-10expr: Use Basic Posix regular expressionsAli Mohammad Pur
Dr.POSIX requires expr to use BREs, so let's use BREs. Fixes #8506.
2021-07-10Userland: Add fopen error handling to lessRalf Donau
2021-07-09Utilities: Add ability to query specific user with idJean-Baptiste Boric
2021-07-09Utilities: Use Core::Account for idJean-Baptiste Boric
2021-07-09Utilities: Fix return value of exprJean-Baptiste Boric
2021-07-09Utilities: Add support for -d flag to trJean-Baptiste Boric