From unknown Wed Jun 18 00:27:13 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#15757 <15757@debbugs.gnu.org> To: bug#15757 <15757@debbugs.gnu.org> Subject: Status: "unknown" for uname -p related Reply-To: bug#15757 <15757@debbugs.gnu.org> Date: Wed, 18 Jun 2025 07:27:13 +0000 retitle 15757 "unknown" for uname -p related reassign 15757 coreutils submitter 15757 Jeffrin Jose severity 15757 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 30 13:39:03 2013 Received: (at submit) by debbugs.gnu.org; 30 Oct 2013 17:39:03 +0000 Received: from localhost ([127.0.0.1]:53118 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VbZjQ-0007cJ-Or for submit@debbugs.gnu.org; Wed, 30 Oct 2013 13:39:03 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37215) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VbZSv-0007BQ-Q6 for submit@debbugs.gnu.org; Wed, 30 Oct 2013 13:21:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VbZSk-0006dt-D0 for submit@debbugs.gnu.org; Wed, 30 Oct 2013 13:21:52 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: ** X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_50,FREEMAIL_FROM, RCVD_IN_BL_SPAMCOP_NET,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:33793) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbZSk-0006dp-9M for submit@debbugs.gnu.org; Wed, 30 Oct 2013 13:21:46 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38891) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbZSe-00035j-BG for bug-coreutils@gnu.org; Wed, 30 Oct 2013 13:21:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VbZSX-0006cI-So for bug-coreutils@gnu.org; Wed, 30 Oct 2013 13:21:40 -0400 Received: from nm27.bullet.mail.sg3.yahoo.com ([106.10.151.22]:36181) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbZSW-0006bi-Cu for bug-coreutils@gnu.org; Wed, 30 Oct 2013 13:21:33 -0400 Received: from [106.10.166.120] by nm27.bullet.mail.sg3.yahoo.com with NNFMP; 30 Oct 2013 17:21:27 -0000 Received: from [106.10.167.159] by tm9.bullet.mail.sg3.yahoo.com with NNFMP; 30 Oct 2013 17:21:27 -0000 Received: from [127.0.0.1] by smtp132.mail.sg3.yahoo.com with NNFMP; 30 Oct 2013 17:21:27 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.in; s=s1024; t=1383153687; bh=ZLqIt4Xs7YVk/4PZbK5MnYkxzsvu9PNfehPmaj0d9SU=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type:Content-Disposition:User-Agent; b=2zd8SXy0Xe0w291xTe6iXKRcFj6tBtVz5vwrbDXiX1/RuMJj5tFRrIJ5zqzRZArZFSy9IKWD/Duy36l1zJNhWh4+aEFEWPlICTfc5fOGmEH7xEkS9k+XfyVzy50A8u4XKE5B09Gs5xXKlVOEEdW2+Q/c0Rj5oc8wsCGb9ygpcaU= X-Yahoo-Newman-Id: 950484.44342.bm@smtp132.mail.sg3.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 9gFHwmwVM1nQ3YaRQDh7qvlPa9JNkuhgqxmh29VslqhCXD2 YIkZ4f8Ic4lO5IzZPllmPr39F2zTNeNNqXMY3er5Z2vA4Rk0o2LHaA_F3G9H VCLGltE701t1z0imdsVD.GtnNrhpn0Hcaqdw6r6ZSiJzN8gxQvkSB5lJ4TgF E5CXsKgZR6lNX7eBZAQq9sMWfYcMdf5INhCK6XxbwMYIuIQBvpvvU3JHqiQz qG9YY9qLmQtqTIfUo01PGkVT_bYzFCPbQceLHL4i.E9M7xy_J_VC2.YfKe9u xrw1exJYRwkiT7XN4pPOi5ligk7rodVVkGDwn.wEDV3IfyZH85mDRqRBSY9R WtN2hTKM4rDMyZiASQMIBqY0XQKAIBa5tQgZQh2rhecnkk53d_3ontUxBqxf UXCZy_1_CkELOgRMvDXg3F7KECS7j6lx0lDEYGdTvPAfNlad6Qh6eCeNUCZc 4vCfut.uVHmBMY3ekB4EpJkzKMvEdYY2UBOV40yXbJQqFnTpvea.x9PwY66g tIoVQDiwvuN4xnAYy6F9Xbu1UzYiMhmmA15SKwk00kdSF8LaVq2C2SuZbWTw CKKndJ7qrZkBe.9rHiC7cfCrdZcGB_emmME70JaT7mdzSEfBN X-Yahoo-SMTP: dNW5aIGswBCf1iV6QK8RWrBgWyjShXs- X-Rocket-Received: from debian (ahiliation@122.174.210.183 with ) by smtp132.mail.sg3.yahoo.com with SMTP; 30 Oct 2013 10:21:27 -0700 PDT Date: Wed, 30 Oct 2013 22:51:19 +0530 From: Jeffrin Jose To: bug-coreutils@gnu.org Subject: "unknown" for uname -p related Message-ID: <20131030172119.GA8541@debian> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="IJpNTDwzlM2Ie8A6" Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.7 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 30 Oct 2013 13:38:59 -0400 Cc: ahiliation@yahoo.co.in X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.7 (---) --IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline hello , ------------cut-x-here--------- $uname -p unknown $uname -m x86_64 $uname -a Linux debian 3.11-1-amd64 #1 SMP Debian 3.11.5-1 (2013-10-17) x86_64 GNU/Linux $ ---------cut-x-here---------- i will attach the output of cpuid command. http://www.ka9q.net/code/cpuid/ I think it is not a bug to show "unknown" for -p my processor is AMD A-Series is possible to make "unknown" to the correct processor type. Thanks. /Jeffrin. --IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="cpuid-output.txt" CPU 0: vendor_id = "AuthenticAMD" version information (1/eax): processor type = primary processor (0) family = Intel Pentium 4/Pentium D/Pentium Extreme Edition/Celeron/Xeon/Xeon MP/Itanium2, AMD Athlon 64/Athlon XP-M/Opteron/Sempron/Turion (15) model = 0x3 (3) stepping id = 0x1 (1) extended family = 0x6 (6) extended model = 0x1 (1) (simple synth) = AMD A-Series / AMD R-Series / Athlon Dual-Core / Athlon Quad-Core / Sempron Dual-Core / FirePro (Richland RL-A1), 32nm miscellaneous (1/ebx): process local APIC physical ID = 0x0 (0) cpu count = 0x2 (2) CLFLUSH line size = 0x8 (8) brand index = 0x0 (0) brand id = 0x00 (0): unknown feature information (1/edx): x87 FPU on chip = true virtual-8086 mode enhancement = true debugging extensions = true page size extensions = true time stamp counter = true RDMSR and WRMSR support = true physical address extensions = true machine check exception = true CMPXCHG8B inst. = true APIC on chip = true SYSENTER and SYSEXIT = true memory type range registers = true PTE global bit = true machine check architecture = true conditional move/compare instruction = true page attribute table = true page size extension = true processor serial number = false CLFLUSH instruction = true debug store = false thermal monitor and clock ctrl = false MMX Technology = true FXSAVE/FXRSTOR = true SSE extensions = true SSE2 extensions = true self snoop = false hyper-threading / multi-core supported = true therm. monitor = false IA64 = false pending break event = false feature information (1/ecx): PNI/SSE3: Prescott New Instructions = true PCLMULDQ instruction = true 64-bit debug store = false MONITOR/MWAIT = true CPL-qualified debug store = false VMX: virtual machine extensions = false SMX: safer mode extensions = false Enhanced Intel SpeedStep Technology = false thermal monitor 2 = false SSSE3 extensions = true context ID: adaptive or shared L1 data = false FMA instruction = true CMPXCHG16B instruction = true xTPR disable = false perfmon and debug = false process context identifiers = false direct cache access = false SSE4.1 extensions = true SSE4.2 extensions = true extended xAPIC support = false MOVBE instruction = false POPCNT instruction = true time stamp counter deadline = false AES instruction = true XSAVE/XSTOR states = true OS-enabled XSAVE/XSTOR = true AVX: advanced vector extensions = true F16C half-precision convert instruction = true RDRAND instruction = false hypervisor guest status = false cache and TLB information (2): processor serial number: 0061-0F31-0000-0000-0000-0000 MONITOR/MWAIT (5): smallest monitor-line size (bytes) = 0x40 (64) largest monitor-line size (bytes) = 0x40 (64) enum of Monitor-MWAIT exts supported = true supports intrs as break-event for MWAIT = true number of C0 sub C-states using MWAIT = 0x0 (0) number of C1 sub C-states using MWAIT = 0x0 (0) number of C2 sub C-states using MWAIT = 0x0 (0) number of C3/C6 sub C-states using MWAIT = 0x0 (0) number of C4/C7 sub C-states using MWAIT = 0x0 (0) Thermal and Power Management Features (6): digital thermometer = false Intel Turbo Boost Technology = false ARAT always running APIC timer = false PLN power limit notification = false ECMD extended clock modulation duty = false PTM package thermal management = false digital thermometer thresholds = 0x0 (0) ACNT/MCNT supported performance measure = true ACNT2 available = false performance-energy bias capability = false extended feature flags (7): FSGSBASE instructions = false BMI instruction = true SMEP support = false enhanced REP MOVSB/STOSB = false INVPCID instruction = false Direct Cache Access Parameters (9): PLATFORM_DCA_CAP MSR bits = 0 Architecture Performance Monitoring Features (0xa/eax): version ID = 0x0 (0) number of counters per logical processor = 0x0 (0) bit width of counter = 0x0 (0) length of EBX bit vector = 0x0 (0) Architecture Performance Monitoring Features (0xa/ebx): core cycle event not available = false instruction retired event not available = false reference cycles event not available = false last-level cache ref event not available = false last-level cache miss event not avail = false branch inst retired event not available = false branch mispred retired event not avail = false Architecture Performance Monitoring Features (0xa/edx): number of fixed counters = 0x0 (0) bit width of fixed counters = 0x0 (0) 0x0000000c 0x00: eax=0x00000000 ebx=0x00000000 ecx=0x00000000 edx=0x00000000 XSAVE features (0xd/0): XCR0 lower 32 bits valid bit field mask = 0x00000007 bytes required by fields in XCR0 = 0x00000340 (832) bytes required by XSAVE/XRSTOR area = 0x000003c0 (960) XCR0 upper 32 bits valid bit field mask = 0x40000000 YMM features (0xd/2): YMM save state byte size = 0x00000100 (256) YMM save state byte offset = 0x00000240 (576) LWP features (0xd/0x3e): LWP save state byte size = 0x00000080 (128) LWP save state byte offset = 0x00000340 (832) extended processor signature (0x80000001/eax): family/generation = AMD Athlon 64/Opteron/Sempron/Turion (15) model = 0x3 (3) stepping id = 0x1 (1) extended family = 0x6 (6) extended model = 0x1 (1) (simple synth) = AMD A-Series / AMD R-Series / Athlon Dual-Core / Athlon Quad-Core / Sempron Dual-Core / FirePro (Richland RL-A1), 32nm extended feature flags (0x80000001/edx): x87 FPU on chip = true virtual-8086 mode enhancement = true debugging extensions = true page size extensions = true time stamp counter = true RDMSR and WRMSR support = true physical address extensions = true machine check exception = true CMPXCHG8B inst. = true APIC on chip = true SYSCALL and SYSRET instructions = true memory type range registers = true global paging extension = true machine check architecture = true conditional move/compare instruction = true page attribute table = true page size extension = true multiprocessing capable = false no-execute page protection = true AMD multimedia instruction extensions = true MMX Technology = true FXSAVE/FXRSTOR = true SSE extensions = true 1-GB large page support = true RDTSCP = true long mode (AA-64) = true 3DNow! instruction extensions = false 3DNow! instructions = false extended brand id (0x80000001/ebx): raw = 0x20000000 (536870912) BrandId = 0x0 (0) AMD feature flags (0x80000001/ecx): LAHF/SAHF supported in 64-bit mode = true CMP Legacy = true SVM: secure virtual machine = true extended APIC space = true AltMovCr8 = true LZCNT advanced bit manipulation = true SSE4A support = true misaligned SSE mode = true PREFETCH/PREFETCHW instructions = true OS visible workaround = true instruction based sampling = true XOP support = true SKINIT/STGI support = true watchdog timer support = true lightweight profiling support = true 4-operand FMA instruction = true NodeId MSR C001100C = true TBM support = true topology extensions = true brand = "AMD A4-4000 APU with Radeon(tm) HD Graphics " L1 TLB/cache information: 2M/4M pages & L1 TLB (0x80000005/eax): instruction # entries = 0x18 (24) instruction associativity = 0xff (255) data # entries = 0x40 (64) data associativity = 0xff (255) L1 TLB/cache information: 4K pages & L1 TLB (0x80000005/ebx): instruction # entries = 0x30 (48) instruction associativity = 0xff (255) data # entries = 0x40 (64) data associativity = 0xff (255) L1 data cache information (0x80000005/ecx): line size (bytes) = 0x40 (64) lines per tag = 0x1 (1) associativity = 0x4 (4) size (Kb) = 0x10 (16) L1 instruction cache information (0x80000005/edx): line size (bytes) = 0x40 (64) lines per tag = 0x1 (1) associativity = 0x2 (2) size (Kb) = 0x40 (64) L2 TLB/cache information: 2M/4M pages & L2 TLB (0x80000006/eax): instruction # entries = 0x400 (1024) instruction associativity = 8-way (6) data # entries = 0x400 (1024) data associativity = 8-way (6) L2 TLB/cache information: 4K pages & L2 TLB (0x80000006/ebx): instruction # entries = 0x200 (512) instruction associativity = 4-way (4) data # entries = 0x400 (1024) data associativity = 8-way (6) L2 unified cache information (0x80000006/ecx): line size (bytes) = 0x40 (64) lines per tag = 0x1 (1) associativity = 16-way (8) size (Kb) = 0x400 (1024) L3 cache information (0x80000006/edx): line size (bytes) = 0x0 (0) lines per tag = 0x0 (0) associativity = L2 off (0) size (in 512Kb units) = 0x0 (0) Advanced Power Management Features (0x80000007/edx): temperature sensing diode = true frequency ID (FID) control = false voltage ID (VID) control = false thermal trip (TTP) = true thermal monitor (TM) = true software thermal control (STC) = false 100 MHz multiplier control = true hardware P-State control = true TscInvariant = true Physical Address and Linear Address Size (0x80000008/eax): maximum physical address bits = 0x30 (48) maximum linear (virtual) address bits = 0x30 (48) maximum guest physical address bits = 0x0 (0) Logical CPU cores (0x80000008/ecx): number of CPU cores - 1 = 0x1 (1) ApicIdCoreIdSize = 0x4 (4) SVM Secure Virtual Machine (0x8000000a/eax): SvmRev: SVM revision = 0x1 (1) SVM Secure Virtual Machine (0x8000000a/edx): nested paging = true LBR virtualization = true SVM lock = true NRIP save = true MSR based TSC rate control = true VMCB clean bits support = true flush by ASID = true decode assists = true SSSE3/SSE5 opcode set disable = false pause intercept filter = true pause filter threshold = true NASID: number of address space identifiers = 0x10000 (65536): L1 TLB information: 1G pages (0x80000019/eax): instruction # entries = 0x18 (24) instruction associativity = full (15) data # entries = 0x40 (64) data associativity = full (15) L2 TLB information: 1G pages (0x80000019/ebx): instruction # entries = 0x400 (1024) instruction associativity = 8-way (6) data # entries = 0x400 (1024) data associativity = 8-way (6) SVM Secure Virtual Machine (0x8000001a/eax): 128-bit SSE executed full-width = true MOVU* better than MOVL*/MOVH* = true Instruction Based Sampling Identifiers (0x8000001b/eax): IBS feature flags valid = true IBS fetch sampling = true IBS execution sampling = true read write of op counter = true op counting mode = true branch target address reporting = true IbsOpCurCnt and IbsOpMaxCnt extend 7 = true invalid RIP indication supported = true Lightweight Profiling Capabilities: Availability (0x8000001c/eax): lightweight profiling = false LWPVAL instruction = false instruction retired event = false branch retired event = false DC miss event = false core clocks not halted event = false core reference clocks not halted event = false interrupt on threshold overflow = false Lightweight Profiling Capabilities: Supported (0x8000001c/edx): lightweight profiling = true LWPVAL instruction = true instruction retired event = true branch retired event = true DC miss event = false core clocks not halted event = false core reference clocks not halted event = false interrupt on threshold overflow = true Lightweight Profiling Capabilities (0x8000001c/ebx): LWPCB byte size = 0x13 (19) event record byte size = 0x20 (32) maximum EventId = 0x3 (3) EventInterval1 field offset = 0x80 (128) Lightweight Profiling Capabilities (0x8000001c/ecx): latency counter bit size = 0x0 (0) data cache miss address valid = false amount cache latency is rounded = 0x0 (0) LWP implementation version = 0x1 (1) event ring buffer size in records = 0x1 (1) branch prediction filtering = false IP filtering = false cache level filtering = false cache latency filteing = false --- cache 0 --- type = data (1) level = 0x1 (1) self-initializing = true fully associative = false extra cores sharing this cache = 0x0 (0) line size in bytes = 0x3f (63) physical line partitions = 0x0 (0) number of ways = 0x3 (3) number of sets = 63 write-back invalidate = false cache inclusive of lower levels = false extended APIC ID = 16 Extended APIC ID (0x8000001e/ebx): compute unit ID = 0x0 (0) cores per compute unit - 1 = 0x1 (1) Extended APIC ID (0x8000001e/ecx): node ID = 0x0 (0) nodes per processor = 1 node (0) (multi-processing synth): multi-core (c=2) (multi-processing method): AMD (APIC widths synth): CORE_width=1 SMT_width=0 (APIC synth): PKG_ID=0 CORE_ID=0 SMT_ID=0 (synth) = AMD A-Series / AMD R-Series / Athlon Dual-Core / Athlon Quad-Core / Sempron Dual-Core / FirePro (Richland RL-A1), 32nm CPU 1: vendor_id = "AuthenticAMD" version information (1/eax): processor type = primary processor (0) family = Intel Pentium 4/Pentium D/Pentium Extreme Edition/Celeron/Xeon/Xeon MP/Itanium2, AMD Athlon 64/Athlon XP-M/Opteron/Sempron/Turion (15) model = 0x3 (3) stepping id = 0x1 (1) extended family = 0x6 (6) extended model = 0x1 (1) (simple synth) = AMD A-Series / AMD R-Series / Athlon Dual-Core / Athlon Quad-Core / Sempron Dual-Core / FirePro (Richland RL-A1), 32nm miscellaneous (1/ebx): process local APIC physical ID = 0x1 (1) cpu count = 0x2 (2) CLFLUSH line size = 0x8 (8) brand index = 0x0 (0) brand id = 0x00 (0): unknown feature information (1/edx): x87 FPU on chip = true virtual-8086 mode enhancement = true debugging extensions = true page size extensions = true time stamp counter = true RDMSR and WRMSR support = true physical address extensions = true machine check exception = true CMPXCHG8B inst. = true APIC on chip = true SYSENTER and SYSEXIT = true memory type range registers = true PTE global bit = true machine check architecture = true conditional move/compare instruction = true page attribute table = true page size extension = true processor serial number = false CLFLUSH instruction = true debug store = false thermal monitor and clock ctrl = false MMX Technology = true FXSAVE/FXRSTOR = true SSE extensions = true SSE2 extensions = true self snoop = false hyper-threading / multi-core supported = true therm. monitor = false IA64 = false pending break event = false feature information (1/ecx): PNI/SSE3: Prescott New Instructions = true PCLMULDQ instruction = true 64-bit debug store = false MONITOR/MWAIT = true CPL-qualified debug store = false VMX: virtual machine extensions = false SMX: safer mode extensions = false Enhanced Intel SpeedStep Technology = false thermal monitor 2 = false SSSE3 extensions = true context ID: adaptive or shared L1 data = false FMA instruction = true CMPXCHG16B instruction = true xTPR disable = false perfmon and debug = false process context identifiers = false direct cache access = false SSE4.1 extensions = true SSE4.2 extensions = true extended xAPIC support = false MOVBE instruction = false POPCNT instruction = true time stamp counter deadline = false AES instruction = true XSAVE/XSTOR states = true OS-enabled XSAVE/XSTOR = true AVX: advanced vector extensions = true F16C half-precision convert instruction = true RDRAND instruction = false hypervisor guest status = false cache and TLB information (2): processor serial number: 0061-0F31-0000-0000-0000-0000 MONITOR/MWAIT (5): smallest monitor-line size (bytes) = 0x40 (64) largest monitor-line size (bytes) = 0x40 (64) enum of Monitor-MWAIT exts supported = true supports intrs as break-event for MWAIT = true number of C0 sub C-states using MWAIT = 0x0 (0) number of C1 sub C-states using MWAIT = 0x0 (0) number of C2 sub C-states using MWAIT = 0x0 (0) number of C3/C6 sub C-states using MWAIT = 0x0 (0) number of C4/C7 sub C-states using MWAIT = 0x0 (0) Thermal and Power Management Features (6): digital thermometer = false Intel Turbo Boost Technology = false ARAT always running APIC timer = false PLN power limit notification = false ECMD extended clock modulation duty = false PTM package thermal management = false digital thermometer thresholds = 0x0 (0) ACNT/MCNT supported performance measure = true ACNT2 available = false performance-energy bias capability = false extended feature flags (7): FSGSBASE instructions = false BMI instruction = true SMEP support = false enhanced REP MOVSB/STOSB = false INVPCID instruction = false Direct Cache Access Parameters (9): PLATFORM_DCA_CAP MSR bits = 0 Architecture Performance Monitoring Features (0xa/eax): version ID = 0x0 (0) number of counters per logical processor = 0x0 (0) bit width of counter = 0x0 (0) length of EBX bit vector = 0x0 (0) Architecture Performance Monitoring Features (0xa/ebx): core cycle event not available = false instruction retired event not available = false reference cycles event not available = false last-level cache ref event not available = false last-level cache miss event not avail = false branch inst retired event not available = false branch mispred retired event not avail = false Architecture Performance Monitoring Features (0xa/edx): number of fixed counters = 0x0 (0) bit width of fixed counters = 0x0 (0) 0x0000000c 0x00: eax=0x00000000 ebx=0x00000000 ecx=0x00000000 edx=0x00000000 XSAVE features (0xd/0): XCR0 lower 32 bits valid bit field mask = 0x00000007 bytes required by fields in XCR0 = 0x00000340 (832) bytes required by XSAVE/XRSTOR area = 0x000003c0 (960) XCR0 upper 32 bits valid bit field mask = 0x40000000 YMM features (0xd/2): YMM save state byte size = 0x00000100 (256) YMM save state byte offset = 0x00000240 (576) LWP features (0xd/0x3e): LWP save state byte size = 0x00000080 (128) LWP save state byte offset = 0x00000340 (832) extended processor signature (0x80000001/eax): family/generation = AMD Athlon 64/Opteron/Sempron/Turion (15) model = 0x3 (3) stepping id = 0x1 (1) extended family = 0x6 (6) extended model = 0x1 (1) (simple synth) = AMD A-Series / AMD R-Series / Athlon Dual-Core / Athlon Quad-Core / Sempron Dual-Core / FirePro (Richland RL-A1), 32nm extended feature flags (0x80000001/edx): x87 FPU on chip = true virtual-8086 mode enhancement = true debugging extensions = true page size extensions = true time stamp counter = true RDMSR and WRMSR support = true physical address extensions = true machine check exception = true CMPXCHG8B inst. = true APIC on chip = true SYSCALL and SYSRET instructions = true memory type range registers = true global paging extension = true machine check architecture = true conditional move/compare instruction = true page attribute table = true page size extension = true multiprocessing capable = false no-execute page protection = true AMD multimedia instruction extensions = true MMX Technology = true FXSAVE/FXRSTOR = true SSE extensions = true 1-GB large page support = true RDTSCP = true long mode (AA-64) = true 3DNow! instruction extensions = false 3DNow! instructions = false extended brand id (0x80000001/ebx): raw = 0x20000000 (536870912) BrandId = 0x0 (0) AMD feature flags (0x80000001/ecx): LAHF/SAHF supported in 64-bit mode = true CMP Legacy = true SVM: secure virtual machine = true extended APIC space = true AltMovCr8 = true LZCNT advanced bit manipulation = true SSE4A support = true misaligned SSE mode = true PREFETCH/PREFETCHW instructions = true OS visible workaround = true instruction based sampling = true XOP support = true SKINIT/STGI support = true watchdog timer support = true lightweight profiling support = true 4-operand FMA instruction = true NodeId MSR C001100C = true TBM support = true topology extensions = true brand = "AMD A4-4000 APU with Radeon(tm) HD Graphics " L1 TLB/cache information: 2M/4M pages & L1 TLB (0x80000005/eax): instruction # entries = 0x18 (24) instruction associativity = 0xff (255) data # entries = 0x40 (64) data associativity = 0xff (255) L1 TLB/cache information: 4K pages & L1 TLB (0x80000005/ebx): instruction # entries = 0x30 (48) instruction associativity = 0xff (255) data # entries = 0x40 (64) data associativity = 0xff (255) L1 data cache information (0x80000005/ecx): line size (bytes) = 0x40 (64) lines per tag = 0x1 (1) associativity = 0x4 (4) size (Kb) = 0x10 (16) L1 instruction cache information (0x80000005/edx): line size (bytes) = 0x40 (64) lines per tag = 0x1 (1) associativity = 0x2 (2) size (Kb) = 0x40 (64) L2 TLB/cache information: 2M/4M pages & L2 TLB (0x80000006/eax): instruction # entries = 0x400 (1024) instruction associativity = 8-way (6) data # entries = 0x400 (1024) data associativity = 8-way (6) L2 TLB/cache information: 4K pages & L2 TLB (0x80000006/ebx): instruction # entries = 0x200 (512) instruction associativity = 4-way (4) data # entries = 0x400 (1024) data associativity = 8-way (6) L2 unified cache information (0x80000006/ecx): line size (bytes) = 0x40 (64) lines per tag = 0x1 (1) associativity = 16-way (8) size (Kb) = 0x400 (1024) L3 cache information (0x80000006/edx): line size (bytes) = 0x0 (0) lines per tag = 0x0 (0) associativity = L2 off (0) size (in 512Kb units) = 0x0 (0) Advanced Power Management Features (0x80000007/edx): temperature sensing diode = true frequency ID (FID) control = false voltage ID (VID) control = false thermal trip (TTP) = true thermal monitor (TM) = true software thermal control (STC) = false 100 MHz multiplier control = true hardware P-State control = true TscInvariant = true Physical Address and Linear Address Size (0x80000008/eax): maximum physical address bits = 0x30 (48) maximum linear (virtual) address bits = 0x30 (48) maximum guest physical address bits = 0x0 (0) Logical CPU cores (0x80000008/ecx): number of CPU cores - 1 = 0x1 (1) ApicIdCoreIdSize = 0x4 (4) SVM Secure Virtual Machine (0x8000000a/eax): SvmRev: SVM revision = 0x1 (1) SVM Secure Virtual Machine (0x8000000a/edx): nested paging = true LBR virtualization = true SVM lock = true NRIP save = true MSR based TSC rate control = true VMCB clean bits support = true flush by ASID = true decode assists = true SSSE3/SSE5 opcode set disable = false pause intercept filter = true pause filter threshold = true NASID: number of address space identifiers = 0x10000 (65536): L1 TLB information: 1G pages (0x80000019/eax): instruction # entries = 0x18 (24) instruction associativity = full (15) data # entries = 0x40 (64) data associativity = full (15) L2 TLB information: 1G pages (0x80000019/ebx): instruction # entries = 0x400 (1024) instruction associativity = 8-way (6) data # entries = 0x400 (1024) data associativity = 8-way (6) SVM Secure Virtual Machine (0x8000001a/eax): 128-bit SSE executed full-width = true MOVU* better than MOVL*/MOVH* = true Instruction Based Sampling Identifiers (0x8000001b/eax): IBS feature flags valid = true IBS fetch sampling = true IBS execution sampling = true read write of op counter = true op counting mode = true branch target address reporting = true IbsOpCurCnt and IbsOpMaxCnt extend 7 = true invalid RIP indication supported = true Lightweight Profiling Capabilities: Availability (0x8000001c/eax): lightweight profiling = false LWPVAL instruction = false instruction retired event = false branch retired event = false DC miss event = false core clocks not halted event = false core reference clocks not halted event = false interrupt on threshold overflow = false Lightweight Profiling Capabilities: Supported (0x8000001c/edx): lightweight profiling = true LWPVAL instruction = true instruction retired event = true branch retired event = true DC miss event = false core clocks not halted event = false core reference clocks not halted event = false interrupt on threshold overflow = true Lightweight Profiling Capabilities (0x8000001c/ebx): LWPCB byte size = 0x13 (19) event record byte size = 0x20 (32) maximum EventId = 0x3 (3) EventInterval1 field offset = 0x80 (128) Lightweight Profiling Capabilities (0x8000001c/ecx): latency counter bit size = 0x0 (0) data cache miss address valid = false amount cache latency is rounded = 0x0 (0) LWP implementation version = 0x1 (1) event ring buffer size in records = 0x1 (1) branch prediction filtering = false IP filtering = false cache level filtering = false cache latency filteing = false --- cache 0 --- type = data (1) level = 0x1 (1) self-initializing = true fully associative = false extra cores sharing this cache = 0x0 (0) line size in bytes = 0x3f (63) physical line partitions = 0x0 (0) number of ways = 0x3 (3) number of sets = 63 write-back invalidate = false cache inclusive of lower levels = false extended APIC ID = 17 Extended APIC ID (0x8000001e/ebx): compute unit ID = 0x0 (0) cores per compute unit - 1 = 0x1 (1) Extended APIC ID (0x8000001e/ecx): node ID = 0x0 (0) nodes per processor = 1 node (0) (multi-processing synth): multi-core (c=2) (multi-processing method): AMD (APIC widths synth): CORE_width=1 SMT_width=0 (APIC synth): PKG_ID=0 CORE_ID=1 SMT_ID=0 (synth) = AMD A-Series / AMD R-Series / Athlon Dual-Core / Athlon Quad-Core / Sempron Dual-Core / FirePro (Richland RL-A1), 32nm --IJpNTDwzlM2Ie8A6-- From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 30 17:13:33 2013 Received: (at 15757) by debbugs.gnu.org; 30 Oct 2013 21:13:33 +0000 Received: from localhost ([127.0.0.1]:53508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vbd52-0005VX-Jn for submit@debbugs.gnu.org; Wed, 30 Oct 2013 17:13:33 -0400 Received: from moutng.kundenserver.de ([212.227.17.9]:50505) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vbd50-0005VH-1o for 15757@debbugs.gnu.org; Wed, 30 Oct 2013 17:13:31 -0400 Received: from [192.168.1.11] (p5499C6C3.dip0.t-ipconnect.de [84.153.198.195]) by mrelayeu.kundenserver.de (node=mreu3) with ESMTP (Nemesis) id 0M3q7C-1VtqRx0ebi-00rLZS; Wed, 30 Oct 2013 22:13:19 +0100 Message-ID: <5271766E.30809@bernhard-voelker.de> Date: Wed, 30 Oct 2013 22:13:18 +0100 From: Bernhard Voelker User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: Jeffrin Jose Subject: Re: bug#15757: "unknown" for uname -p related References: <20131030172119.GA8541@debian> In-Reply-To: <20131030172119.GA8541@debian> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:HA/ovLut9K/sh0vAvzsoJzFUTBo2I3TwWv/S6mAEk4v /D4aYZO0rET/n6q1Ac2EMAeaFlW5Qv0HDdf0Yt2NAUTCuht9NZ H8FOSjQtYKMGj/oppvMzrGKkSphE2Yb4etPxs7oWggP/lqww2E WRXDjjoi0KTDeQOKNwxgvbw0FGKiDNuIM4PTE+z9Qo+B+xs+gH Kpp67fgeuIZf6XXGH2+qFwn/uF61Q17lZimjRc6VWrLBKIdl4N horrIBhOV0sjWJvP8CvJOmTnrFujFR9J6hzgrtboOxFSbB9S9i sfNyYSou+sUUpXflThhrgVPiskGYhPVEfI/Bvu6k6SYiwg+d+B YMtqrrCOGnaPNVd39zBh4xcfM59ROciWBP0oNhtNl X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 15757 Cc: 15757@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) forcemerge 15757 13001 thanks On 10/30/2013 06:21 PM, Jeffrin Jose wrote: > hello , > > ------------cut-x-here--------- > $uname -p > unknown > $uname -m > x86_64 > $uname -a > Linux debian 3.11-1-amd64 #1 SMP Debian 3.11.5-1 (2013-10-17) x86_64 GNU/Linux > $ > ---------cut-x-here---------- > > i will attach the output of cpuid command. > http://www.ka9q.net/code/cpuid/ > > I think it is not a bug to show "unknown" for -p > my processor is AMD A-Series > > is possible to make "unknown" to the correct processor type. > > Thanks. > /Jeffrin. Thanks for the report. This one has already been discussed: http://bugs.gnu.org/13001 There are several patches maintained in various distributions for retrieving the processor type from /proc/cpuinfo (but not for Debian obviously), e.g. Fedora: http://pkgs.fedoraproject.org/cgit/coreutils.git/tree/coreutils-8.2-uname-processortype.patch Gentoo: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo/src/patchsets/coreutils/8.21/003_all_coreutils-gentoo-uname.patch?revision=1.1 openSUSE: https://build.opensuse.org/package/view_file/Base:System/coreutils/coreutils-sysinfo.patch?expand=1 Unfortunately we didn't come to a conclusion yet on how to maintain this in upstream coreutils. Have a nice day, Berny From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 31 16:16:59 2013 Received: (at 15757) by debbugs.gnu.org; 31 Oct 2013 20:16:59 +0000 Received: from localhost ([127.0.0.1]:55555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vbyfq-0003Pt-8M for submit@debbugs.gnu.org; Thu, 31 Oct 2013 16:16:59 -0400 Received: from nm27-vm4.bullet.mail.sg3.yahoo.com ([106.10.151.131]:34072) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vbyfk-0003PJ-8X for 15757@debbugs.gnu.org; Thu, 31 Oct 2013 16:16:54 -0400 Received: from [106.10.166.119] by nm27.bullet.mail.sg3.yahoo.com with NNFMP; 31 Oct 2013 20:16:44 -0000 Received: from [106.10.167.152] by tm8.bullet.mail.sg3.yahoo.com with NNFMP; 31 Oct 2013 20:16:44 -0000 Received: from [127.0.0.1] by smtp125.mail.sg3.yahoo.com with NNFMP; 31 Oct 2013 20:16:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.in; s=s1024; t=1383250604; bh=zgpqQanjRw73PHgdH1dxeAl6sae/wTgvoP2fzt2MTQA=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type:Content-Disposition:User-Agent; b=4KTk4InJqaha3xvoVTduVpa+CPPdmYChBUJSk5CMdMoE4eI3ZRUu+I/pJ0cjJRHGaTXPhPHRX51UhjiqNxdGli24nOeNJu58kFH+uwjHuf4g8Cq9I9QiS4sEN2xjPJQhv4pTqhquhbIidVUGRArNMKk/7j56Ryj8cFpVxh8r6sc= X-Yahoo-Newman-Id: 584527.56031.bm@smtp125.mail.sg3.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: z9.h5ukVM1keHi8eSh4KwiqYMykMhN77BFt_XtJFalgF3cU CYmqRZpfypKMsGoCqQM49JLeHJHIXXk8Vehw0UIMPW8w3Fx_Yxfjl3AfaeyP dSwkFe7UAUW33EHV2XGNNoDpq5RCR3PKglRqaAovVmP6JlgQDwEt8FwA1eMC ghdQ9z5fT1AyMEka78D7aL4kMta.GdO5.7epHtcvSIyzBkS3bY0sr8ZuOHfS .89gK.3BJoynpWAdEn..LpyFHmR2iUkNTpBPhOnZz35k0vEGwzTmyqUrD7k_ snDr0ST15bnLZ2tj.DqldfUzuHBPjSJemVKgXK5zUfdVGvcg6tmB_uEyA1aL mKVmnFl5ndIpr.5IRO26FQ7sfUdNbhIxLLLoo9g3bexzu1BivCtq8rIcJ02Z ym05VAc06xqbqvG70CW4iqNbMQGzHvnlRgsytS083Ne4MEvup4_nU7kGStdD 7uK1kxO_EeV2HuvXTPR3d8VPlaM1Cf3_qTrK6L71h.n2xlT7JtnUnPkriikk 0ERfApGP268BvLZ540eNyEr9twXIEiRkFUIAMRbPpMmj_7q7rXaRWYmaKL8F xBGXRY6VN56uKMQKtP0PW8U3jb1k- X-Yahoo-SMTP: dNW5aIGswBCf1iV6QK8RWrBgWyjShXs- X-Rocket-Received: from debian (ahiliation@122.174.193.207 with ) by smtp125.mail.sg3.yahoo.com with SMTP; 31 Oct 2013 13:16:44 -0700 PDT Date: Fri, 1 Nov 2013 01:46:33 +0530 From: Jeffrin Jose To: mstone@debian.org Subject: new uname.c for uname -p fix related Message-ID: <20131031201633.GA12609@debian> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="h31gzZEtNLTqOjlF" Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 15757 Cc: ahiliation@yahoo.co.in, 15757@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) --h31gzZEtNLTqOjlF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline hello, i have patched debian source from sid for file uname.c for debian coreutils. it does not show "unknown" for uname -p. hope it is fixed. i have applied a patch from gentoo for this. i have attached the resulting uname.c Thanks. /Jeffrin. -- software engineer rajagiri school of engineering and technology. --h31gzZEtNLTqOjlF Content-Type: text/x-csrc; charset=us-ascii Content-Disposition: attachment; filename="uname-new.c" /* uname -- print system information Copyright (C) 1989-2013 Free Software Foundation, Inc. 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 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ /* Written by David MacKenzie */ #include #include #include #include #include #if HAVE_SYSINFO && HAVE_SYS_SYSTEMINFO_H # include #endif #if HAVE_SYS_SYSCTL_H # if HAVE_SYS_PARAM_H # include /* needed for OpenBSD 3.0 */ # endif # include # ifdef HW_MODEL # ifdef HW_MACHINE_ARCH /* E.g., FreeBSD 4.5, NetBSD 1.5.2 */ # define UNAME_HARDWARE_PLATFORM HW_MODEL # define UNAME_PROCESSOR HW_MACHINE_ARCH # else /* E.g., OpenBSD 3.0 */ # define UNAME_PROCESSOR HW_MODEL # endif # endif #endif #ifdef __APPLE__ # include # include #endif #if defined(__linux__) # define USE_PROCINFO # define UNAME_HARDWARE_PLATFORM #endif #include "system.h" #include "error.h" #include "quote.h" #include "uname.h" /* The official name of this program (e.g., no 'g' prefix). */ #define PROGRAM_NAME (uname_mode == UNAME_UNAME ? "uname" : "arch") #define AUTHORS proper_name ("David MacKenzie") #define ARCH_AUTHORS "David MacKenzie", "Karel Zak" /* Values that are bitwise or'd into 'toprint'. */ /* Kernel name. */ #define PRINT_KERNEL_NAME 1 /* Node name on a communications network. */ #define PRINT_NODENAME 2 /* Kernel release. */ #define PRINT_KERNEL_RELEASE 4 /* Kernel version. */ #define PRINT_KERNEL_VERSION 8 /* Machine hardware name. */ #define PRINT_MACHINE 16 /* Processor type. */ #define PRINT_PROCESSOR 32 /* Hardware platform. */ #define PRINT_HARDWARE_PLATFORM 64 /* Operating system. */ #define PRINT_OPERATING_SYSTEM 128 static struct option const uname_long_options[] = { {"all", no_argument, NULL, 'a'}, {"kernel-name", no_argument, NULL, 's'}, {"sysname", no_argument, NULL, 's'}, /* Obsolescent. */ {"nodename", no_argument, NULL, 'n'}, {"kernel-release", no_argument, NULL, 'r'}, {"release", no_argument, NULL, 'r'}, /* Obsolescent. */ {"kernel-version", no_argument, NULL, 'v'}, {"machine", no_argument, NULL, 'm'}, {"processor", no_argument, NULL, 'p'}, {"hardware-platform", no_argument, NULL, 'i'}, {"operating-system", no_argument, NULL, 'o'}, {GETOPT_HELP_OPTION_DECL}, {GETOPT_VERSION_OPTION_DECL}, {NULL, 0, NULL, 0} }; static struct option const arch_long_options[] = { {GETOPT_HELP_OPTION_DECL}, {GETOPT_VERSION_OPTION_DECL}, {NULL, 0, NULL, 0} }; void usage (int status) { if (status != EXIT_SUCCESS) emit_try_help (); else { printf (_("Usage: %s [OPTION]...\n"), program_name); if (uname_mode == UNAME_UNAME) { fputs (_("\ Print certain system information. With no OPTION, same as -s.\n\ \n\ -a, --all print all information, in the following order,\n\ except omit -p and -i if unknown:\n\ -s, --kernel-name print the kernel name\n\ -n, --nodename print the network node hostname\n\ -r, --kernel-release print the kernel release\n\ "), stdout); fputs (_("\ -v, --kernel-version print the kernel version\n\ -m, --machine print the machine hardware name\n\ -p, --processor print the processor type or \"unknown\"\n\ -i, --hardware-platform print the hardware platform or \"unknown\"\n\ -o, --operating-system print the operating system\n\ "), stdout); } else { fputs (_("\ Print machine architecture.\n\ \n\ "), stdout); } fputs (HELP_OPTION_DESCRIPTION, stdout); fputs (VERSION_OPTION_DESCRIPTION, stdout); emit_ancillary_info (); } exit (status); } #if defined(USE_PROCINFO) # if defined(__s390__) || defined(__s390x__) # define CPUINFO_FILE "/proc/sysinfo" # define CPUINFO_FORMAT "%64[^\t :]%*[ :]%256[^\n]%c" # else # define CPUINFO_FILE "/proc/cpuinfo" # define CPUINFO_FORMAT "%64[^\t:]\t:%256[^\n]%c" # endif # define PROCINFO_PROCESSOR 0 # define PROCINFO_HARDWARE_PLATFORM 1 static void __eat_cpuinfo_space(char *buf) { /* first eat trailing space */ char *tmp = buf + strlen(buf) - 1; while (tmp > buf && isspace(*tmp)) *tmp-- = '\0'; /* then eat leading space */ tmp = buf; while (*tmp && isspace(*tmp)) tmp++; if (tmp != buf) memmove(buf, tmp, strlen(tmp)+1); /* finally collapse whitespace */ tmp = buf; while (tmp[0] && tmp[1]) { if (isspace(tmp[0]) && isspace(tmp[1])) { memmove(tmp, tmp+1, strlen(tmp)); continue; } ++tmp; } } static int __linux_procinfo(int x, char *fstr, size_t s) { FILE *fp; char *procinfo_keys[] = { /* --processor --hardware-platform */ #if defined(__alpha__) "cpu model", "system type" #elif defined(__arm__) "Processor", "Hardware" #elif defined(__avr32__) "processor", "cpu family" #elif defined(__bfin__) "CPU", "BOARD Name" #elif defined(__cris__) "cpu", "cpu model" #elif defined(__frv__) "CPU-Core", "System" #elif defined(__i386__) || defined(__x86_64__) "model name", "vendor_id" #elif defined(__ia64__) "model name", "vendor" #elif defined(__hppa__) "cpu", "model" #elif defined(__m68k__) "CPU", "MMU" #elif defined(__mips__) "cpu model", "system type" #elif defined(__powerpc__) || defined(__powerpc64__) "cpu", "machine" #elif defined(__s390__) || defined(__s390x__) "Type", "Manufacturer" #elif defined(__sh__) "cpu type", "machine" #elif defined(sparc) || defined(__sparc__) "type", "cpu" #elif defined(__vax__) "cpu type", "cpu" #else "unknown", "unknown" #endif }; if ((fp = fopen(CPUINFO_FILE, "r")) != NULL) { char key[65], value[257], eol, *ret = NULL; while (fscanf(fp, CPUINFO_FORMAT, key, value, &eol) != EOF) { __eat_cpuinfo_space(key); if (!strcmp(key, procinfo_keys[x])) { __eat_cpuinfo_space(value); ret = value; break; } if (eol != '\n') { /* we need two fscanf's here in case the previous * length limit caused us to read right up to the * newline ... doing "%*[^\n]\n" wont eat the newline */ fscanf(fp, "%*[^\n]"); fscanf(fp, "\n"); } } fclose(fp); if (ret) { strncpy(fstr, ret, s); return 0; } } return -1; } #endif /* Print ELEMENT, preceded by a space if something has already been printed. */ static void print_element (char const *element) { static bool printed; if (printed) putchar (' '); printed = true; fputs (element, stdout); } /* Set all the option flags according to the switches specified. Return the mask indicating which elements to print. */ static int decode_switches (int argc, char **argv) { int c; unsigned int toprint = 0; if (uname_mode == UNAME_ARCH) { while ((c = getopt_long (argc, argv, "", arch_long_options, NULL)) != -1) { switch (c) { case_GETOPT_HELP_CHAR; case_GETOPT_VERSION_CHAR (PROGRAM_NAME, ARCH_AUTHORS); default: usage (EXIT_FAILURE); } } toprint = PRINT_MACHINE; } else { while ((c = getopt_long (argc, argv, "asnrvmpio", uname_long_options, NULL)) != -1) { switch (c) { case 'a': toprint = UINT_MAX; break; case 's': toprint |= PRINT_KERNEL_NAME; break; case 'n': toprint |= PRINT_NODENAME; break; case 'r': toprint |= PRINT_KERNEL_RELEASE; break; case 'v': toprint |= PRINT_KERNEL_VERSION; break; case 'm': toprint |= PRINT_MACHINE; break; case 'p': toprint |= PRINT_PROCESSOR; break; case 'i': toprint |= PRINT_HARDWARE_PLATFORM; break; case 'o': toprint |= PRINT_OPERATING_SYSTEM; break; case_GETOPT_HELP_CHAR; case_GETOPT_VERSION_CHAR (PROGRAM_NAME, AUTHORS); default: usage (EXIT_FAILURE); } } } if (argc != optind) { error (0, 0, _("extra operand %s"), quote (argv[optind])); usage (EXIT_FAILURE); } return toprint; } int main (int argc, char **argv) { static char const unknown[] = "unknown"; /* Mask indicating which elements to print. */ unsigned int toprint = 0; initialize_main (&argc, &argv); set_program_name (argv[0]); setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); atexit (close_stdout); toprint = decode_switches (argc, argv); if (toprint == 0) toprint = PRINT_KERNEL_NAME; if (toprint & (PRINT_KERNEL_NAME | PRINT_NODENAME | PRINT_KERNEL_RELEASE | PRINT_KERNEL_VERSION | PRINT_MACHINE)) { struct utsname name; if (uname (&name) == -1) error (EXIT_FAILURE, errno, _("cannot get system name")); if (toprint & PRINT_KERNEL_NAME) print_element (name.sysname); if (toprint & PRINT_NODENAME) print_element (name.nodename); if (toprint & PRINT_KERNEL_RELEASE) print_element (name.release); if (toprint & PRINT_KERNEL_VERSION) print_element (name.version); if (toprint & PRINT_MACHINE) print_element (name.machine); } if (toprint & PRINT_PROCESSOR) { char const *element = unknown; #if ( HAVE_SYSINFO && defined SI_ARCHITECTURE ) || defined(USE_PROCINFO) { static char processor[257]; #if defined(USE_PROCINFO) if (0 <= __linux_procinfo (PROCINFO_PROCESSOR, processor, sizeof processor)) #else if (0 <= sysinfo (SI_ARCHITECTURE, processor, sizeof processor)) #endif element = processor; } #endif #ifdef UNAME_PROCESSOR if (element == unknown) { static char processor[257]; size_t s = sizeof processor; static int mib[] = { CTL_HW, UNAME_PROCESSOR }; if (sysctl (mib, 2, processor, &s, 0, 0) >= 0) element = processor; # ifdef __APPLE__ /* This kludge works around a bug in Mac OS X. */ if (element == unknown) { cpu_type_t cputype; size_t s = sizeof cputype; NXArchInfo const *ai; if (sysctlbyname ("hw.cputype", &cputype, &s, NULL, 0) == 0 && (ai = NXGetArchInfoFromCpuType (cputype, CPU_SUBTYPE_MULTIPLE)) != NULL) element = ai->name; /* Hack "safely" around the ppc vs. powerpc return value. */ if (cputype == CPU_TYPE_POWERPC && STRNCMP_LIT (element, "ppc") == 0) element = "powerpc"; } # endif } #endif if (! (toprint == UINT_MAX && element == unknown)) print_element (element); } if (toprint & PRINT_HARDWARE_PLATFORM) { char const *element = unknown; #if HAVE_SYSINFO && defined SI_PLATFORM { static char hardware_platform[257]; if (0 <= sysinfo (SI_PLATFORM, hardware_platform, sizeof hardware_platform)) element = hardware_platform; } #endif #ifdef UNAME_HARDWARE_PLATFORM if (element == unknown) { static char hardware_platform[257]; #if defined(USE_PROCINFO) if (0 <= __linux_procinfo (PROCINFO_HARDWARE_PLATFORM, hardware_platform, sizeof hardware_platform)) #else size_t s = sizeof hardware_platform; static int mib[] = { CTL_HW, UNAME_HARDWARE_PLATFORM }; if (sysctl (mib, 2, hardware_platform, &s, 0, 0) >= 0) #endif element = hardware_platform; } #endif if (! (toprint == UINT_MAX && element == unknown)) print_element (element); } if (toprint & PRINT_OPERATING_SYSTEM) print_element (HOST_OPERATING_SYSTEM); putchar ('\n'); exit (EXIT_SUCCESS); } --h31gzZEtNLTqOjlF-- From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 31 16:26:08 2013 Received: (at 15757) by debbugs.gnu.org; 31 Oct 2013 20:26:08 +0000 Received: from localhost ([127.0.0.1]:55570 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vbyoh-0003eb-6b for submit@debbugs.gnu.org; Thu, 31 Oct 2013 16:26:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:64538) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vbyod-0003eP-NC for 15757@debbugs.gnu.org; Thu, 31 Oct 2013 16:26:04 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r9VKQ1LS007172 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 31 Oct 2013 16:26:02 -0400 Received: from [10.3.113.175] (ovpn-113-175.phx2.redhat.com [10.3.113.175]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r9VKPxjS010917; Thu, 31 Oct 2013 16:26:01 -0400 Message-ID: <5272BCD7.9080108@redhat.com> Date: Thu, 31 Oct 2013 14:25:59 -0600 From: Eric Blake Organization: Red Hat, Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: Jeffrin Jose , mstone@debian.org Subject: Re: bug#15757: new uname.c for uname -p fix related References: <20131030172119.GA8541@debian> <20131031201633.GA12609@debian> In-Reply-To: <20131031201633.GA12609@debian> X-Enigmail-Version: 1.6 OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wl9AGA7L0phCxHdNRiJeo3hrI2rJbCGbu" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Spam-Score: -5.5 (-----) X-Debbugs-Envelope-To: 15757 Cc: 15757@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.5 (-----) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --wl9AGA7L0phCxHdNRiJeo3hrI2rJbCGbu Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 10/31/2013 02:16 PM, Jeffrin Jose wrote: > hello, >=20 > i have patched debian source from sid for file=20 > uname.c for debian coreutils. >=20 > it does not show "unknown" for uname -p. hope it is fixed.=20 > i have applied a patch from gentoo for this. > i have attached the resulting uname.c Thanks for the attempt. However, sending an entire file is not the proper way to submit a patch. For anyone to see what you have changed, we would have to jump through hoops to manually diff the file ourselves. Please read http://git.savannah.gnu.org/cgit/coreutils.git/tree/HACKING for instructions on how to submit a proper diff limited to just the changes you are making plus the context needed to unambiguously apply those changes. Furthermore, if you are copying the patch from somewhere else, you should clearly state the original author of the patch rather than claiming ownership of it yourself (but at least the terms of the GPL mean that you are not violating any laws by reposting someone else's public patch, because their copyright license granted you that right). --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --wl9AGA7L0phCxHdNRiJeo3hrI2rJbCGbu Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJScrzXAAoJEKeha0olJ0NqYuMH/3kQWHcGxiGQMHj2fu4fuFoC 1tyQa2bOXYMvFyv8sLn1OyQykwttfE7/oKPjeBnrpQl9Ol3dNtDSVtXtMvcF518H gBek3M9VO2VN3C2JTIskzER61f99nW6R5MMWPSjcPldXgqKCMCLDfTKPA6LWiB6h hiH98eCBY7mpiDmzpQ27sGSIal62fG+XTt2GMALUa6Q+2c9JPbcu8t/eqXuQRmLF Vk25j4QB5cKY/ZJfBz20vt4ub3wJhlDNxqUsw1HGw/cMCJseETCKdl7eUSieKLwa N+iFJNtAqDpKnFN6ktuoZGl4/QLdRUgJ0SDjnLt/g6pcWJjmYuEnafjatYbK6BA= =2R6o -----END PGP SIGNATURE----- --wl9AGA7L0phCxHdNRiJeo3hrI2rJbCGbu-- From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 31 17:15:58 2013 Received: (at 15757) by debbugs.gnu.org; 31 Oct 2013 21:15:59 +0000 Received: from localhost ([127.0.0.1]:55634 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vbzav-00050a-Iq for submit@debbugs.gnu.org; Thu, 31 Oct 2013 17:15:58 -0400 Received: from nm29-vm8.bullet.mail.sg3.yahoo.com ([106.10.151.167]:43561) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vbzas-000508-C2 for 15757@debbugs.gnu.org; Thu, 31 Oct 2013 17:15:55 -0400 Received: from [106.10.166.62] by nm29.bullet.mail.sg3.yahoo.com with NNFMP; 31 Oct 2013 21:15:46 -0000 Received: from [106.10.167.155] by tm19.bullet.mail.sg3.yahoo.com with NNFMP; 31 Oct 2013 21:15:46 -0000 Received: from [127.0.0.1] by smtp128.mail.sg3.yahoo.com with NNFMP; 31 Oct 2013 21:15:46 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.in; s=s1024; t=1383254146; bh=JJTEnXo2RJ3vuRAKGnnJizN/QFAuloko+vD5tU9FzIg=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type:Content-Disposition:User-Agent; b=xj3Zuh6brfIr3sMJZsk8OV6Soc7kSh66xnp3Ddz1oLjJ1TGY/GZhwxNtKBxyq0Y6QK/ksX/E0qXkhYotgfBvgyc96lLb2GJ+ZQqJm6FWIJy1GTHDmGcWlIdib/xgwT77iP9KRia9G1LCxRih8ETeP5Ozq+FJFiIlFJ/GTI+Ojzc= X-Yahoo-Newman-Id: 787721.44739.bm@smtp128.mail.sg3.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: h1Ryr7AVM1k9uuCr5i67w4v8ygl5HibJNN2y7Fu8uV2XWA0 0MM3QccF4Dfu.0BLdx400VwyhQYivnCWRLNjK1T4EEQ6I3abLCLtw5boZIaY AZUXyz73zTWU8zFj3VZ7pOH9D1gjocwS.OCDaofmFMmewNiZWXSoPZhYx0rT Ukkpj7pPaCuS9uqhrUrI8zO5IR5t.E69ofKwrmn5o9ZOu2mGFkjANXN7KvOL rrj0VRimJIrdRt9.QjqkQsv2jojr3x5kUYDEylYXt7axVfD9PlegulL9hUAQ 33mjSZwIcJN5k3mjdKyspIPI4NaTBNwLR_8XopnHxYle6NGisUvT5CHak7n4 jOpM5MWTZBcFd_6ySqMmD_tEzrmD2cz7DiCoUEiX2xv03U2D1OS6OTK86P5X S6a_7jBHijSXTAORoyvq3BSlUIH8Il4PFUCGFmN.6g.1wI3vtf7aJfuNklpd eucmQYmaUB5RLP8vce8Xks8y8XfwPQYISi8Ny9.j_FR.Dotgs7Y2B2AYrZJP tWM4opxLeIeH66P7ZUPLbldeUFBgjeXgYWQYL33xim1rUMywpgd4rEL14Qjr ANj5ZjaG5K3tKEten32VpjAcjeD_UYyZ.0oyFuvAX6YP70hyiE0wrMdQM5hS TtbaFiKA- X-Yahoo-SMTP: dNW5aIGswBCf1iV6QK8RWrBgWyjShXs- X-Rocket-Received: from debian (ahiliation@122.174.193.207 with ) by smtp128.mail.sg3.yahoo.com with SMTP; 31 Oct 2013 14:15:46 -0700 PDT Date: Fri, 1 Nov 2013 02:45:37 +0530 From: Jeffrin Jose To: eblake@redhat.com Subject: with details related Message-ID: <20131031211537.GA13237@debian> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="Kj7319i9nmIyA2yE" Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 15757 Cc: ahiliation@yahoo.co.in, 15757@debbugs.gnu.org, mstone@debian.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline hello, whatever i did was with good intention. if i have made mistakes,please forgive me. i will attach the patch which i have used to patch debian source of coreutils from sid. actually the file i attached in my previous mail was for debian source from sid and not for upstream coreutils. anyway i will read ... http://git.savannah.gnu.org/cgit/coreutils.git/tree/HACKING Please see the attachment. Thanks. /Jeffrin. -- software engineer rajagiri school of engineering and technology. --Kj7319i9nmIyA2yE Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="003_all_coreutils-gentoo-uname.patch" On linux platforms, grok /proc/cpuinfo for the CPU/vendor info. Prob not suitable for upstream seeing as how it's 100% linux-specific http://lists.gnu.org/archive/html/bug-coreutils/2005-09/msg00063.html Patch originally by Carlos E. Gorges , but heavily reworked to suck less. To add support for additional platforms, check out the show_cpuinfo() func in the linux/arch// source tree of the kernel. --- coreutils/src/uname.c +++ coreutils/src/uname.c @@ -50,6 +50,11 @@ # include #endif +#if defined(__linux__) +# define USE_PROCINFO +# define UNAME_HARDWARE_PLATFORM +#endif + #include "system.h" #include "error.h" #include "quote.h" @@ -138,6 +143,117 @@ exit (status); } +#if defined(USE_PROCINFO) + +# if defined(__s390__) || defined(__s390x__) +# define CPUINFO_FILE "/proc/sysinfo" +# define CPUINFO_FORMAT "%64[^\t :]%*[ :]%256[^\n]%c" +# else +# define CPUINFO_FILE "/proc/cpuinfo" +# define CPUINFO_FORMAT "%64[^\t:]\t:%256[^\n]%c" +# endif + +# define PROCINFO_PROCESSOR 0 +# define PROCINFO_HARDWARE_PLATFORM 1 + +static void __eat_cpuinfo_space(char *buf) +{ + /* first eat trailing space */ + char *tmp = buf + strlen(buf) - 1; + while (tmp > buf && isspace(*tmp)) + *tmp-- = '\0'; + /* then eat leading space */ + tmp = buf; + while (*tmp && isspace(*tmp)) + tmp++; + if (tmp != buf) + memmove(buf, tmp, strlen(tmp)+1); + /* finally collapse whitespace */ + tmp = buf; + while (tmp[0] && tmp[1]) { + if (isspace(tmp[0]) && isspace(tmp[1])) { + memmove(tmp, tmp+1, strlen(tmp)); + continue; + } + ++tmp; + } +} + +static int __linux_procinfo(int x, char *fstr, size_t s) +{ + FILE *fp; + + char *procinfo_keys[] = { + /* --processor --hardware-platform */ + #if defined(__alpha__) + "cpu model", "system type" + #elif defined(__arm__) + "Processor", "Hardware" + #elif defined(__avr32__) + "processor", "cpu family" + #elif defined(__bfin__) + "CPU", "BOARD Name" + #elif defined(__cris__) + "cpu", "cpu model" + #elif defined(__frv__) + "CPU-Core", "System" + #elif defined(__i386__) || defined(__x86_64__) + "model name", "vendor_id" + #elif defined(__ia64__) + "model name", "vendor" + #elif defined(__hppa__) + "cpu", "model" + #elif defined(__m68k__) + "CPU", "MMU" + #elif defined(__mips__) + "cpu model", "system type" + #elif defined(__powerpc__) || defined(__powerpc64__) + "cpu", "machine" + #elif defined(__s390__) || defined(__s390x__) + "Type", "Manufacturer" + #elif defined(__sh__) + "cpu type", "machine" + #elif defined(sparc) || defined(__sparc__) + "type", "cpu" + #elif defined(__vax__) + "cpu type", "cpu" + #else + "unknown", "unknown" + #endif + }; + + if ((fp = fopen(CPUINFO_FILE, "r")) != NULL) { + char key[65], value[257], eol, *ret = NULL; + + while (fscanf(fp, CPUINFO_FORMAT, key, value, &eol) != EOF) { + __eat_cpuinfo_space(key); + if (!strcmp(key, procinfo_keys[x])) { + __eat_cpuinfo_space(value); + ret = value; + break; + } + if (eol != '\n') { + /* we need two fscanf's here in case the previous + * length limit caused us to read right up to the + * newline ... doing "%*[^\n]\n" wont eat the newline + */ + fscanf(fp, "%*[^\n]"); + fscanf(fp, "\n"); + } + } + fclose(fp); + + if (ret) { + strncpy(fstr, ret, s); + return 0; + } + } + + return -1; +} + +#endif + /* Print ELEMENT, preceded by a space if something has already been printed. */ @@ -250,10 +344,14 @@ main (int argc, char **argv) if (toprint & PRINT_PROCESSOR) { char const *element = unknown; -#if HAVE_SYSINFO && defined SI_ARCHITECTURE +#if ( HAVE_SYSINFO && defined SI_ARCHITECTURE ) || defined(USE_PROCINFO) { static char processor[257]; +#if defined(USE_PROCINFO) + if (0 <= __linux_procinfo (PROCINFO_PROCESSOR, processor, sizeof processor)) +#else if (0 <= sysinfo (SI_ARCHITECTURE, processor, sizeof processor)) +#endif element = processor; } #endif @@ -306,9 +404,13 @@ main (int argc, char **argv) if (element == unknown) { static char hardware_platform[257]; +#if defined(USE_PROCINFO) + if (0 <= __linux_procinfo (PROCINFO_HARDWARE_PLATFORM, hardware_platform, sizeof hardware_platform)) +#else size_t s = sizeof hardware_platform; static int mib[] = { CTL_HW, UNAME_HARDWARE_PLATFORM }; if (sysctl (mib, 2, hardware_platform, &s, 0, 0) >= 0) +#endif element = hardware_platform; } #endif --Kj7319i9nmIyA2yE-- From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 01 08:50:42 2013 Received: (at 15757) by debbugs.gnu.org; 1 Nov 2013 12:50:42 +0000 Received: from localhost ([127.0.0.1]:56849 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VcEBV-0005Ki-Pu for submit@debbugs.gnu.org; Fri, 01 Nov 2013 08:50:42 -0400 Received: from harad.mathom.us ([54.218.24.45]:35111) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VcEBS-0005KS-Fx for 15757@debbugs.gnu.org; Fri, 01 Nov 2013 08:50:39 -0400 Received: from osgiliath.mathom.us (osgiliath.mathom.us [IPv6:2001:4830:1614:2341::2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by harad.mathom.us (Postfix) with ESMTPS id 858774001F; Fri, 1 Nov 2013 12:50:31 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by osgiliath.mathom.us (Postfix) with ESMTP id 426D56E4D2; Fri, 1 Nov 2013 08:50:30 -0400 (EDT) Received: from osgiliath.mathom.us ([127.0.0.1]) by localhost (osgiliath.mathom.us [127.0.0.1]) (amavisd-new, port 10024) with LMTP id x-ckW5HlASCY; Fri, 1 Nov 2013 08:50:30 -0400 (EDT) Received: by osgiliath.mathom.us (Postfix, from userid 1000) id 0BDDB6E547; Fri, 1 Nov 2013 08:50:29 -0400 (EDT) Date: Fri, 1 Nov 2013 08:50:29 -0400 From: Michael Stone To: Jeffrin Jose Subject: Re: new uname.c for uname -p fix related Message-ID: References: <20131031201633.GA12609@debian> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20131031201633.GA12609@debian> X-Pgp-Fingerprint: 02D5 315F F11F 1861 860E 1E02 F61A ACDC FA11 FFDE User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 15757 Cc: 15757@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) On Fri, Nov 01, 2013 at 01:46:33AM +0530, Jeffrin Jose wrote: >i have patched debian source from sid for file >uname.c for debian coreutils. For what it's worth, I stand by what I wrote in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=193170 in 2007 and still don't see any reason for -i and -p to exist. They may have made sense on some proprietary architectures in the distant path, but are irrelevant on contemporary systems. Mike Stone From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 21 20:55:16 2015 Received: (at control) by debbugs.gnu.org; 22 Jul 2015 00:55:16 +0000 Received: from localhost ([127.0.0.1]:55821 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZHiJX-00028N-KS for submit@debbugs.gnu.org; Tue, 21 Jul 2015 20:55:15 -0400 Received: from mail1.vodafone.ie ([213.233.128.43]:65340) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZHiJV-000283-Md; Tue, 21 Jul 2015 20:55:14 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlMFAKbprlVtTITg/2dsb2JhbABcDguCKlKCfIEWvmSCXgKBQUwBAQEBAQGBC4QkAQEEIw8BVgsNCwICBRYLAgIJAwIBAgFFBgEMCAEBiC4BtXqFbpBKASuBIooqhQ2CaIFDBZRTlQ2QKyaDPj89gnwBAQE Received: from unknown (HELO localhost.localdomain) ([109.76.132.224]) by mail1.vodafone.ie with ESMTP; 22 Jul 2015 01:54:58 +0100 Message-ID: <55AEE9E2.5070604@draigBrady.com> Date: Wed, 22 Jul 2015 01:54:58 +0100 From: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Paul Eggert , Assaf Gordon , Norbert de Jonge , 21098@debbugs.gnu.org, djm@djmnet.org Subject: Re: bug#21098: uname man page References: <20150720212659.44bedb08@ren> <55AD6538.1060607@gmail.com> <55AE163F.8010704@draigBrady.com> <55AE4A77.7010004@cs.ucla.edu> In-Reply-To: <55AE4A77.7010004@cs.ucla.edu> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) unarchive 13001 unarchive 15757 forcemerge 13001 15757 21098 close 13001 stop On 21/07/15 14:34, Paul Eggert wrote: > Thanks, that patch looks good, except for some nits. POSIX spells the phrase > "non-portable" and we might as well be consistent. The --help lines would look > better as: > > -p, --processor print the processor type (non-portable)\n\ > -i, --hardware-platform print the hardware platform (non-portable)\n\ > > as the period would look funny after a non-capitalized sentence. Done and pushed. I've closed the bugs now since we've discouraged use of these options. Since they're platform specific, any logic changes should be in uname(1) and/or the kernel. thanks, Pádraig. From unknown Wed Jun 18 00:27:13 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 19 Aug 2015 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator